Skip to main content
PUT
/
virtual-accounts
/
{account_id}
Update virtual account
curl --request PUT \
  --url https://prod-api.pcxpay.com/v1/virtual-accounts/{account_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pcxpay.com/llms.txt

Use this file to discover all available pages before exploring further.

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"

Path Parameters

account_id
string
required

Body

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

"active"

Response

Account updated

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

"success"

message
string
Example:

"Operation completed successfully"

data
object