Skip to main content
POST
/
virtual-accounts
/
withdraw
/
crypto
Withdraw funds to crypto
curl --request POST \
  --url https://prod-api.pcxpay.com/v1/virtual-accounts/withdraw/crypto \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "account_id": "<string>",
  "amount": 100,
  "payment_rail": "ethereum",
  "currency": "usdc",
  "to_address": "<string>",
  "user_id": "<string>",
  "description": "<string>"
}
'
{
  "status": "success",
  "message": "Operation completed successfully",
  "data": {}
}

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"

Body

application/json
account_id
string
required
amount
number<float>
required
Example:

100

payment_rail
string
required
Example:

"ethereum"

currency
string
required
Example:

"usdc"

to_address
string
required

Destination wallet address

user_id
string
required
description
string

Response

Crypto withdrawal initiated

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

"success"

message
string
Example:

"Operation completed successfully"

data
object