post https://sandbox-id.xfers.com/api/v4/payment_methods/
Available banks
Bank | bankShortCode |
---|---|
BCA | BCA |
BNI | BNI |
BRI | BRI |
CIMB Niaga | CIMB_NIAGA |
Danamon | DANAMON |
Hana | HANA |
Mandiri | MANDIRI |
Permata | PERMATA |
Bank Sahabat Sampoerna | SAHABAT_SAMPOERNA |
Bank Syariah Indonesia | BSI |
Example of Virtual Account Payment Method request
# /api/v4/payment_methods/virtual_bank_accounts
{
"data": {
"attributes": {
"bankShortCode": "BRI",
"referenceId": "virtual_account_ref_id",
"displayName": "Your virtual account display name"
}
}
}
# Virtual Account
{
"data": {
"id": "va_ab2fae95a6e2d223b133821e80b82916",
"type": "virtual_bank_account",
"attributes": {
"referenceId": "virtual_account_ref_id",
"instructions": {
"bankShortCode": "BRI",
"accountNo": "1234567812345678",
"displayName": "Your virtual account display name"
}
}
}
}