GET
/
payments
/
{orderReference}
curl --request GET \
  --url https://api.clickpesa.com/third-parties/payments/{orderReference} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "status": "SUCCESS",
    "paymentReference": "<string>",
    "orderReference": "<string>",
    "collectedAmount": 123,
    "collectedCurrency": "<string>",
    "message": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "customer": {
      "customerName": "<string>",
      "customerPhoneNumber": "<string>",
      "customerEmail": "jsmith@example.com"
    }
  }
]

Authorizations

Authorization
string
header
required

Authorization header in the form of Bearer <token>, where <token> is a valid JWT from generate token endpoint

Path Parameters

orderReference
string
required

Unique identifier for the payment order

Response

200
application/json
Query Payments by order reference response

The response is of type object[].