Payments

Find Payment Charges

Retrieve the fee and tax breakdown applied to a payment.

get/v1/aggregators/{raast-aggregator-id}/payments/{payment-id}/charges

Request

  • Base URL: https://api.getsafepay.com/raastwire
  • URL: https://api.getsafepay.com/raastwire/v1/aggregators/{raast-aggregator-id}/payments/{payment-id}/charges
  • Auth: API key in header X-SFPY-AGGREGATOR-SECRET-KEY

Response

This response contains the fee and tax breakdown of a payment

api_versionstring

The current version of the API spec

Example response

{
  "api_version": "v1",
  "data": {
    "payment_id": "pm_8084eaf1-0f1b-43ef-bd27-23743d9c37f6",
    "gross_amount": "500",
    "currency": "PKR",
    "fee_amount": "2",
    "net_amount": "483",
    "sales_tax_on_fee_amount": "0",
    "sales_tax_withholding_amount": "10",
    "income_tax_withholding_amount": "5",
    "digital_tax_amount": "0"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.