POST
/v1/customers/{id}/virtual-account/deactivate
Bearer
Idempotent
Deactivate customer bank account
Sets the customer's active dedicated VA to INACTIVE so further Omni credits are rejected.
Path parameters
-
idrequired string
Headers
-
Idempotency-Keyrequired string -
Required for money-moving and session/mandate creates; replays must use the same body.
POST https://omni.mojo-pay.com/v1/customers/{id}/virtual-account/deactivate
[]
curl -X POST "https://omni.mojo-pay.com/v1/customers/{id}/virtual-account/deactivate" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '[]'
Response
{
"object": "virtual_account",
"customer_id": "MC_PAYMENTS01",
"virtual_account": {
"account_number": "6200889900",
"account_name": "Ama Customer",
"account_type": "STATIC",
"bank_code": "300325",
"bank_name": "UNITED BANK FOR AFRICA (GH) LTD",
"status": "INACTIVE",
"expires_at": null,
"single_deposit_limit": null
}
}