Retrieve fees
Changed onThis endpoint allows you to retrieve the fees associated with a payment intent. Fees are applied per payment and this endpoints will group all the fees in an array.
Request
- The document declares no server URL.
- Authnone declared. Required headers: ApiKey, MerchantId, Environment
Path parameters
Identifier of the PaymentIntent on which to retrieve PaymentFees.
Query parameters
Two-letter ISO country code. Represents the country where the provider selected by the customer is localized.
The name of the provider selected by the customer, in lowercase. The list of supported providers can be found at /data/providers. Required for every method except instant_payment, which has a single provider: for that method the parameter is optional and ignored, and any value (for example PI SPI) is accepted.
The method selected by the customer to make this Payment.
Headers
Your api key. To create a key, please get into our dashboard. If you don't have access to it, please reach the Support team.
Your merchant ID. This information is available in our dashboard. If you don't have access to it, please reach the Support team.
Allow you to choose between the sandbox mode to perform some tests or the live mode for real world transactions.
Response
Example response
[
{
"id": "fee_lAe5HnFpvOjwdT9vSIgPA",
"amount": 5,
"currency": "XOF",
"taxes": [
{
"id": "tax_lAe5HnFpvOjwdT9vSIgPA",
"feeId": "fee_lAe5HnFpvOjwdT9vSIgPA",
"taxType": "tva",
"type": "percent",
"value": 3.813559322033896
}
]
}
]Changes
- breaking
the
//response's property type changed fromstringtoobjectfor status - info
the
queryrequest parameterproviderbecame optional - info
added the new enum value
instant_paymentto thequeryrequest parameterpaymentMethod - info
added the non-success response with the status
- info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status
- breaking