v1

latestOpenAPI 3.1.02026-07-26500375.1 KB

Patch Virtual Accounts By ID

The following endpoint is used to override Expiry Time of a single Virtual Account.

patch/payments/va/{id}

Path parameters

idstring required

Unique identifier of the Virtual Account to be retrieved

Request body

expiry_minutesinteger

Number of minutes left till expiry from now. Set to 0 to expire VA Example: 10000

min_amountinteger

Modify minimum amount which can be paid to an open VA. Example: 10000

max_amountinteger

Modify maximum amount which can be paid to an open VA. Example: 10000

amountinteger

Modify maximum amount which can be paid to a closed VA. Example: 10000

is_disabledboolean

Modify enabling/disabling payments to a VA while still reserving it. Example: true

va_ref_idstring

Modify a reference ID which the merchant wants to use for a specific VA. Example: "VA_XYZ_1234"

Response

200

Example response

{
  "data": {
    "virtual_account": {
      "id": "va_sample_EwCm3LrPqE5184",
      "bank_code": "PERMATA",
      "account_number": "88565004532522",
      "name": "Ardi Hanan Durian",
      "is_closed": true,
      "amount": 123456,
      "currency": "IDR",
      "customer_id": "cus_akA2FwrR5B2217",
      "is_sandbox": true,
      "created_at": "2022-06-27T02:52:30.236901Z",
      "expiry_at": "2022-06-29T05:40:59.795448Z",
      "is_disabled": true,
      "is_reusable": true,
      "min_amount": 50000,
      "va_ref_id": "1234412"
    },
    "virtual_account_status": "VirtualAccountSuccess",
    "customer": {
      "id": "cus_akA2FwrR5B2217",
      "email": "p.ardi.h@gmail.com",
      "mobile": "+628978678578"
    }
  }
}