Virtual Account
Static Virtual Account (Closed)
API ini digunakan untuk generate Static Virtual Account (Closed) untuk kebutuhan transaksi VA.
POST
https://staging-gateway.paprika.co.id/api/snap/v1.0/transfer-va/create-vaAPI ini digunakan untuk generate Static Virtual Account (Closed) untuk kebutuhan transaksi VA. Static Virtual Account adalah nomor virtual akun yang bersifat tetap dan tidak berubah-ubah setiap kali request dibuat. Penjelasan detail mengenai pembuatan VA bisa dilihat pada halaman Create Virtual Account.
Response Codes
| Code | Message | Keterangan |
|---|---|---|
| 2004700 | Successful | VA berhasil di generate. |
| 4094701 | Duplicate partner reference no | Nomor reference no terduplikasi. |
| 4014701 | Invalid Token (B2B) | Invalid token B2B. |
| 4014700 | Unauthorized signature | Unauthorized signature. |
| 4004702 | Invalid Mandatory Field [Authorization] | Field authentication belum terisi. |
| 4044708 | Invalid Merchant [Suspended] | Merchant id inactive. |
| 4004701 | Invalid Field Format [X-EXTERNAL-ID] | Terdapat kesalahan pada format X-External-id. |
Parameters
6 parameters accepted on this request.
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| string | header | Required | application/json | |
| datetime | header | Required | YYYY-MM-DDTHH:mm:ssZ | |
| string | header | Required | Signature untuk verifikasi. | |
| string | header | Required | Partner ID merchant. | |
| string | header | Required | Channel ID yang digunakan. | |
| string | header | Required | Bearer access token (B2B). |
Request
Content-Type application/json
{
"virtualAccountName": "John Doe",
"virtualAccountEmail": "john.doe@example.com",
"virtualAccountPhone": "081234567890",
"trxId": "TRX-20260701-0002",
"totalAmount": {
"value": "10000.00",
"currency": "IDR"
},
"virtualAccountTrxType": "C",
"expiredDate": "2026-12-31T23:59:59+07:00",
"additionalInfo": {
"bankCode": "013"
}
}Response Samples
200 OKSuccessful
{
"responseCode": "2002700",
"responseMessage": "Successful",
"virtualAccountData": {
"partnerServiceId": " 123",
"customerNo": "",
"virtualAccountNo": "759112321568987",
"virtualAccountName": "John Doe",
"virtualAccountEmail": "john.doe@example.com",
"virtualAccountPhone": "081234567890",
"trxId": "TRX-20260701-0002",
"totalAmount": {
"value": "10000.00",
"currency": "IDR"
},
"virtualAccountTrxType": "C",
"expiredDate": "2026-12-31T23:59:59+07:00",
"additionalInfo": {
"bankCode": "013"
}
}
}409 ConflictConflict
{
"responseCode": "4092701",
"responseMessage": "Duplicate partner reference no"
}