Get Payments

GET /payment-history

Get all client's payments using JWT.

Responses

  • 200 application/json

    Successful retrieval of payments.

    Hide response attributes Show response attributes object
  • 401 application/json

    User is not unauthorized or permissions are missing.

    Hide response attributes Show response attributes object
  • 429 application/json

    Rate limit exceeded - 100 queries per 15 minutes.

    Hide response attributes Show response attributes object
GET /payment-history
curl \
 -X GET http://63.141.232.244:25540/v0/payment-history \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "payment_history": [
    {
      "type": "membership",
      "client_id": 1,
      "created_at": "2024-10-10T18:36:47Z",
      "level_type": "SIMPLE",
      "payment_history_id": 1
    }
  ]
}
Response examples (401)
{
  "success": false,
  "error": "Unauthorized"
}
Response examples (429)
{
  "success": false,
  "error": "Too many requests, please try again later"
}