Skip to main content
PUT
/
virtual-accounts
/
fees
/
{fee_id}
Update fee configuration
curl --request PUT \
  --url https://prod-api.pcxpay.com/v1/virtual-accounts/fees/{fee_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "currency": "USD",
  "transaction_type": "withdrawal",
  "fee_type": "<string>",
  "fee_structure": "percentage",
  "fee_value": 1.5,
  "min_fee": 123,
  "max_fee": 123
}
'
{
  "status": "success",
  "message": "Operation completed successfully",
  "data": {
    "currency": "USD",
    "transaction_type": "withdrawal",
    "fee_type": "<string>",
    "fee_structure": "percentage",
    "fee_value": 1.5,
    "fee_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "min_fee": 123,
    "max_fee": 123
  }
}

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

fee_id
string
required

Body

application/json
currency
string
required
Example:

"USD"

transaction_type
enum<string>
required
Available options:
crypto_deposit,
crypto_withdrawal,
withdrawal,
deposit,
transfer
Example:

"withdrawal"

fee_type
string
required

Fee category label (e.g. platform_fee, provider_fee)

fee_structure
enum<string>
required
Available options:
percentage,
fixed_amount
Example:

"percentage"

fee_value
number<float>
required

Percentage (0–100) when fee_structure is percentage; flat amount in the account currency when fixed_amount.

Example:

1.5

min_fee
number<float>

Minimum fee amount (applies to percentage-based structures)

max_fee
number<float>

Maximum fee cap (applies to percentage-based structures)

Response

Updated fee configuration

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

"success"

message
string
Example:

"Operation completed successfully"

data
object