Bank Transfer (Virtual Account) Object

For more details on customizing VA number, go here.

"bank_transfer":{
  "bank": "bca",
  "va_number": "111111",
  "free_text": {
       "inquiry": [
             {
                 "id": "Free Text ID Free Text ID Free Text ID",
                 "en": "Free Text EN Free Text EN Free Text EN"
             }
       ],
       "payment": [
             {
                 "id": "Free Text ID Free Text ID Free Text ID",
                 "en": "Free Text EN Free Text EN Free Text EN"
             }
       ]
  },
  "bca": {
    "sub_company_code": "00000"
  }
}
"bank_transfer":{
  "bank": "permata",
  "va_number": "111111",
  "permata": {
    "recipient_name": "SUDARSONO"
  }
}
"bank_transfer":{
     "bank": "bni",
     "va_number": "111111"
  }
JSON AttributeDescriptionTypeRequired
bankBank name which processes bank transfer transaction. Possible values are permata, bni, bri, and bca.String(255)Required
va_numberCustom VA number assigned by you. If shorter than minimum then Midtrans will add trailing 0s as most significant bits. If longer than maximum then Midtrans will trim the remaining least significant bits.
  • BCA VA: Accepts 6-18 digits
  • Permata VA: Accepts 12 digits.
  • BNI VA: Accepts 8 (For 5 digits Client ID) or 12 digits (For 3 digits Client ID).
  • BRI VA: Accepts 18 digits.
  • CIMB VA: Accepts 12 digits.
String(255)Optional
free_textList of free texts.
Note: Right now only used for BCA VA.
JSON Object ArrayOptional
bcaSpecific parameters for BCA VA.JSON ObjectOptional
permataSpecific parameters for Permata VA.JSON ObjectOptional



Free Text Object

JSON AttributeDescriptionTypeRequired
inquiryFree texts shown during inquiry.JSON Object Array(10)Optional
paymentFree texts shown during payment.JSON Object Array(10)Optional



Inquiry/Payment Object

JSON AttributeDescriptionTypeRequired
idFree text message in Bahasa Indonesia.String(50)Required
enFree text message in English.String(50)Required



BCA VA Object

JSON AttributeDescriptionTypeRequired
sub_company_codeBCA sub company code directed for this transactions.
Note: Default is 00000.
StringOptional



Permata VA Object

JSON AttributeDescriptionTypeRequired
recipient_nameRecipient name shown on the payment details. It is shown as 20 characters uppercase string.
Note: Default is merchant name.
StringOptional



BNI VA Object

JSON AttributeDescriptionTypeRequired
bankThe name of the bank which processes the transaction using Bank Transfer payment method.String(255)Required
va_numberCustom VA number assigned by merchant. Min length 1, max length 8String(255)Optional