v1
latestOpenAPI 3.1.02026-07-26500375.1 KBFetch Virtual Account by ID
The following endpoint retrieves the details of a single Virtual Account
get/payments/va/{id}
Path parameters
idstring required
Unique identifier of the Virtual Account to be retrieved
Response
200
Example response
{
"data": {
"virtual_account": {
"id": "va_sample_6YBBiGRAPa0943",
"bank_code": "PERMATA",
"account_number": "8856500451311212",
"name": "Ardi Hanan Durian",
"currency": "IDR",
"customer_id": "cus_akA2FwrR5B2217",
"is_sandbox": true,
"created_at": "2022-06-27T02:42:28.753671Z",
"expiry_at": "2022-06-27T13:54:27.333786Z",
"is_reusable": true,
"min_amount": 50000
},
"virtual_account_status": "VirtualAccountExpired",
"customer": {
"id": "cus_akA2FwrR5B2217",
"email": "p.ardi.h@gmail.com",
"mobile": "+628978678578"
},
"payments": [
{
"id": "pay_D3yQ1WWSu12492",
"order_id": "ord_5mVIixYOlL6710",
"payment_ref_id": "1234",
"payment_ds_ref_id": "62340733-c1ce-4fd3-9090-ab89a6",
"amount": "10000.00",
"status": "completed",
"is_live": true,
"expiration_date": "2022-12-08T09:28:33.756474Z",
"payment_details_type": "va_details",
"method_id": "BNI",
"created_at": "2022-12-08T09:28:33.756474Z",
"updated_at": "2022-12-08T09:28:33.756474Z",
"paid_amount": "10000.00",
"provider_id": "MCPAYMENT"
}
],
"total_payment": 1,
"total_page": 1,
"current_page": 1
}
}