post
https://api.sandbox.midtrans.com/v2//deactivate-1
Deactivate VA directly using VA numbers.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Deactivate VA API is called to remove any existing VA that already created using Charge API with payment type = "bank_transfer"/"echannel". Currently deactivate VA API are only available for Core API integrations.
Deactivate VA API Method
| HTTP Method | Endpoint | Definition |
|---|---|---|
| POST | v2/virtual-account/va-number/deactivate | Delete VA using VA number as identifier. |
Request
{
"request_id": "DA12345ZXCV",
"payment_type": "bank_transfer",
"acquirer" : "BCA",
"reason" : "Customer Request",
}Request Header
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | application/json |
Authorization | string | Yes | Basic [Base64({Server_Key}:)] |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
request_id | string | Yes | Unique identifier from the merchants. Acceptable length are 10-50 character. |
payment_type | string | Yes | Midtrans payment type for the VA transaction. Possible value : bank_transfer or echannel |
acquirer | string | Yes | Acquiring bank that issued the VA. |
reason | string | Yes | Reason for VA deactivation. |
Response
{
"status_code": 200,
"status_message": "Success, VA number is deactivated",
"merchant_id": "G123456",
"va_number": "X123456",
"request_id": "X123456",
"transaction_time": "2026-01-01 01:01:01",
"id": "82af6041-deca-4da7"
}{
"status_code": 401,
"status_message": "Unkown Merchant server_key/id",
"id": "82af6041-deca-4da7"
}{
"status_code": 401,
"status_message": "One or more parameters in the payload is invalid",
"id": "82af6041-deca-4da7",
"validation_message": "request_id must be between 10 and 50 characters",
}Response Body
| Field | Type | Description |
|---|---|---|
status_code | string | HTTP status code from the request. |
status_message | string | Status response message information |
merchant_id | string | Merchant identifier. |
va_number | string | VA number that requested to be deactivated based on the request payload. |
request_id | string | Request ID from the merchant. |
transaction_time | string | Date-time when deactivation VA completed on Midtrans system. Format : yyyy-MM-dd HH:mm:ss |
id | string | Unique identifier from Midtrans. |
validation_message | string | Response message for validation error. Will be only exist for validation error response. |