Skip to main content
DELETE
/
virtual-accounts
/
link
Unlink external bank account
curl --request DELETE \
  --url https://prod-api.pcxpay.com/v1/virtual-accounts/link \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "customer_id": "<string>",
  "external_account_id": "<string>"
}
'
{
  "status": "success",
  "message": "<string>"
}

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Body

application/json
customer_id
string
required
external_account_id
string
required

Response

Account unlinked

status
enum<string>
Available options:
success,
error
Example:

"success"

message
string