Virtual Accounts Fetch By ID API
The following endpoint retrieves the details of a single Virtual Account
/payments/va/:id
Path parameters
id
Integer
Mandatory
Unique identifier of the Virtual Account to be retrieved
Path Attributes
page
Integer
Optional
Page of the payment want to go to
Example
curl --location --request GET 'https://api.durianpay.id/v1/payments/va/va_sample_6YBBiGRAPa0943' \
--header 'Authorization: [Base64({Your_Server_Key}:)]'
Response Code
200 - Success
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
{ "data": { "virtual_account": { "id": "va_sample_6YBBiGRAPa0943", "bank_code": "PERMATA", "account_number": "8856500451311212", "name": "Ardi Hanan Durian", "is_closed": false, "amount": 0, "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", "metadata": {}, "is_disabled": false, "is_paid": false, "is_reusable": true, "min_amount": 50000, "max_amount": null, "va_ref_id": "", "auto_disable_after_payment": false }, "virtual_account_status": "VirtualAccountExpired", "customer": { "id": "cus_akA2FwrR5B2217", "customer_ref_id": "", "given_name": "", "middle_name": "", "sur_name": "", "email": "p.ardi.h@gmail.com", "mobile": "+628978678578" }, "payments": [ { "id": "pay_D3yQ1WWSu12492", "order_id": "ord_5mVIixYOlL6710", "payment_ref_id": "1234", "settlement_id": "", "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", "metadata": null, "retry_count": 0, "discount": "", "paid_amount": "10000.00", "provider_id": "MCPAYMENT", "total_fee": "", "promo_id": "", "shipping_fee": "", "ds_error_metadata": null, "failure_reason": {}, "settlement_status": "" } ], "total_payment": 1, "total_page": 1, "current_page": 1 } }
401 - Unauthorized Access
404 - Not Found