Skip to content

Get Payment Gateway Fees

POST https://api.staging.sawfish.com.au/graphql

Get a list of fee calculations based on the payment amount and card types.

Header Type Required
x-jwt-token string

Requires a valid token (expires every 10 minutes - refresh required).

query paymentGatewayFeesCalc($amount: Float!) {
paymentGatewayFeesCalc(amount: $amount) {
amount
fees
total_settlement_amount
card_type
}
}
Terminal window
curl --request POST \
--url https://api.staging.sawfish.com.au/graphql \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-jwt-token: your-jwt-token' \
--data '
{
"query": "query paymentGatewayFeesCalc($amount: Float!) { paymentGatewayFeesCalc(amount: $amount) { amount fees total_settlement_amount card_type } }",
"variables": {
"amount": 100
}
}
'
{
"data": {
"paymentGatewayFeesCalc": [
{
"amount": 100,
"fees": 1.75,
"total_settlement_amount": 101.75,
"card_type": "visa"
},
{
"amount": 100,
"fees": 2.2,
"total_settlement_amount": 102.2,
"card_type": "amex"
}
]
}
}