Skip to main content
PUT
/
virtual-accounts
/
status
/
{account_id}
Update account status
curl --request PUT \
  --url https://api.pcxpay.com/v1/virtual-accounts/status/{account_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "active"
}
'
{
  "status": "success",
  "message": "Operation completed successfully",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

Body

application/json
status
enum<string>
required
Available options:
active,
inactive,
suspended
Example:

"active"

Response

Status updated

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

"success"

message
string
Example:

"Operation completed successfully"

data
object