cURL
curl --request GET \ --url https://api.pay.staging.mynkwa.com/payments/{id} \ --header 'X-API-Key: <api-key>'
{ "amount": 123, "createdAt": "2023-11-07T05:31:56Z", "currency": "<string>", "description": "<string>", "fee": 123, "id": "<string>", "merchantId": 123, "paymentType": "collection", "phoneNumber": "<string>", "status": "pending", "telecomOperator": "mtn", "updatedAt": "2023-11-07T05:31:56Z" }
Get the payment (collection or disbursement) with the specified ID.
ID of payment to fetch
Payment retrieved successfully
The response is of type object.
object