cURL
curl --request POST \ --url https://api.pcxpay.com/v1/virtual-accounts/fees/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "transaction_type": "withdrawal", "amount": 500, "currency": "USD" } '
{ "status": "success", "message": "Operation completed successfully", "data": { "fee_amount": 2.5, "currency": "USD", "transaction_type": "withdrawal", "amount": 500 } }
Calculates and returns the estimated fee for a transaction before it is executed. Useful for showing users the cost breakdown upfront.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
crypto_deposit
crypto_withdrawal
withdrawal
deposit
transfer
"withdrawal"
500
"USD"
Fee preview
success
error
"success"
"Operation completed successfully"
Show child attributes