Payments

Create Virtual Account

Creates a bank virtual account payment (BRI, BNI, MANDIRI, BSI, BCA, PERMATA, CIMB, DANAMON or MAYBANK) with no payment link. Returns the VA number.

POST
/payments/va

Creates a bank virtual account payment (BRI, BNI, MANDIRI, BSI, BCA, PERMATA, CIMB, DANAMON or MAYBANK) with no payment link. Returns the VA number.

Authorization

secretKey
AuthorizationBearer <token>

Sandbox try-it accepts sk_test_… only.

In: header

Header Parameters

Idempotency-Key?string

A unique value per logical operation, so retries are safe. Retained for 24 hours, scoped to your API key.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Same fields as the QRIS request, plus a required bank.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/payments/va" \  -H "Idempotency-Key: 8f14e45f-ceea-467a-9575-8f14e45fceea" \  -H "Content-Type: application/json" \  -d '{    "amount": 150000,    "bank": "MANDIRI",    "reference_id": "ORDER-2026-1042"  }'
{  "data": {    "id": "0b9c1f3e-6d2a-4c58-9e71-3a5d8f2b7c10",    "reference_id": "ORDER-2026-1042",    "type": "API Payment",    "created_by": {      "type": "API",      "id": "7d1e4a92-3b6c-4f08-a5d2-9c8b1e0f6a34",      "name": "Production server"    },    "title": "Mandiri VA - 0819189101901",    "status": "pending",    "amount": 150000,    "fee": {      "total": 4000,      "transaction": 4000,      "instant_settlement": 0,      "paid_by": "me"    },    "payer_amount": 150000,    "net_amount": 146000,    "payment_method": "VA_MANDIRI",    "category": {      "id": "3c2b1a09-8d7e-4f6a-9b5c-4d3e2f1a0b9c",      "name": "Money In"    },    "instructions": {      "type": "virtual_account",      "bank": "MANDIRI",      "va_number": "0819189101901",      "qr_string": null,      "qr_image_url": null    },    "settlement_account_id": "9f8e7d6c-5b4a-3210-fedc-ba9876543210",    "expires_at": "2026-09-16T03:30:00Z",    "paid_at": null,    "settle_at": null,    "settled_at": null,    "created_at": "2026-09-15T03:30:00Z"  },  "meta": {    "request_id": "req_01J8Z3K9QW"  }}