Calculate Total w/ Fee
Calculate Total w/ Fee
### Calculate Total with Fee
The **Calculate Total with Fee** endpoint lets you pre-calculate the payment channel's fee before generating a transaction. This is useful if you want to display a UI confirmation showing the total amount including fees on your platform.
This endpoint is optional and depends on how you design your payment flow. It is recommended if your credentials apply an additional fee on top of the original amount.
Authentication
AuthorizationBearer
Bearer token obtained from the Create Token endpoint. Tokens are valid for ~60 minutes — cache and reuse a token for its full lifetime instead of re-authenticating per request.
Query parameters
channel_code
Values are available via the Get Channels endpoint. Refer to the code parameter in the response.
amount
Must be between 0.01 and 50,000.
Response
OK
message
data
Errors
401
Unauthorized Error
422
Unprocessable Entity Error