Fetch Fee for Payment
POST /api/payments/get-fee
Get Fees charged for a payment
Header Parameters
- api-key string required
- api-secret string required
- application/json
Request Body required
- paymentType string required
Possible values: [
MPESA
,PESALINK
,RTGS
,SWIFT
]Payment type being
- amount double required
Amount being sent
- currency string required
Currency
Responses
- 200
- 400
Fees fetched successfully
Response Headers
x-request-id any
Request Id for traceability
- */*
- Schema
- Example (from schema)
Schema
- paymentType string
Possible values: [
MPESA
,PESALINK
,RTGS
,SWIFT
]Payment type
- fee double
Fee chargeable
- currency string
Currency
{
"paymentType": "PESALINK",
"fee": 12.2,
"currency": "KES"
}
Error occurred - bad request
- */*
- Schema
- Example (from schema)
Schema
- requestId uuid
Request Id for traceability
- detail string
Detail of the message.
- status string
Possible values: [
API_KEYS_INVALID
,INTERNAL_ERROR
,API_NOT_ACTIVATED
,NOT_SUPPORTED
,CURRENCY_NOT_SUPPORTED
,MOBILE_MONEY_NOT_WHOLE_NUMBER
]Status
{
"requestId": "d4265597-5317-45fd-8d2f-8012870633d5",
"detail": "API key not valid or Internal error",
"status": "INTERNAL_ERROR"
}
Loading...