Get Payment Gateway Fees
POST https://api.staging.sawfish.com.au/graphqlGet a list of fee calculations based on the payment amount and card types.
Headers
Section titled “Headers”| 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 }}Example Request
Section titled “Example Request”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 }}'Response
Section titled “Response”{ "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" } ] }}
