cURL
curl --request PUT \ --url https://api.pcxpay.com/v1/virtual-accounts/{account_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "virtual_account_name": "<string>", "status": "active" } '
{ "status": "success", "message": "Operation completed successfully", "data": { "account_id": "<string>", "org_id": "<string>", "user_id": "<string>", "customer_id": "<string>", "virtual_account_name": "<string>", "currency": "USD", "balance": 1000, "status": "active", "account_type": "currency", "provider": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Updates account metadata such as the display name. Requires internal-admin role.
internal-admin
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
active
inactive
suspended
"active"
Account updated
success
error
"success"
"Operation completed successfully"
Show child attributes