---
title: "Patch Virtual Accounts By ID"
method: PATCH
path: "/payments/va/{id}"
---

# Patch Virtual Accounts By ID

`PATCH /payments/va/{id}`

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

## Path parameters

- `id` string, required

## Request body

- object
  - `expiry_minutes` integer — Number of minutes left till expiry from now. Set to 0 to expire VA Example: 10000
  - `min_amount` integer — Modify minimum amount which can be paid to an open VA. Example: 10000
  - `max_amount` integer — Modify maximum amount which can be paid to an open VA. Example: 10000
  - `amount` integer — Modify maximum amount which can be paid to a closed VA. Example: 10000
  - `is_disabled` boolean — Modify enabling/disabling payments to a VA while still reserving it. Example: true
  - `va_ref_id` string — Modify a reference ID which the merchant wants to use for a specific VA. Example: "VA_XYZ_1234"

## Response `200`

200

- object
  - `data` object
    - `virtual_account` object
      - `id` string
      - `bank_code` string
      - `account_number` string
      - `name` string
      - `is_closed` boolean
      - `amount` integer
      - `currency` string
      - `customer_id` string
      - `is_sandbox` boolean
      - `created_at` string
      - `expiry_at` string
      - `metadata` object
      - `is_disabled` boolean
      - `is_paid` boolean
      - `is_reusable` boolean
      - `min_amount` integer
      - `max_amount` unknown
      - `va_ref_id` string
      - `auto_disable_after_payment` boolean
    - `virtual_account_status` string
    - `customer` object
      - `id` string
      - `customer_ref_id` string
      - `given_name` string
      - `middle_name` string
      - `sur_name` string
      - `email` string
      - `mobile` string

## Other responses

- `400` — 400
- `401` — 401
- `404` — 404

---

[API](https://skmtc.net/durianpay/apis/durianpay-api.md) · [All operations](https://skmtc.net/durianpay/apis/durianpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/durianpay/durianpay-api/versions/ffc0e7e8a227/schema)
