Skip to main content
PUT
/
virtual-accounts
/
fees
/
{fee_id}
Update fee configuration
curl --request PUT \
  --url https://api.pcxpay.com/v1/virtual-accounts/fees/{fee_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --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
  }
}

Authorizations

Authorization
string
header
required

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

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