List customer's payment methods

Changed on
get/customers/{id}/payment_methods

Request

  • Base URL
    https://api.notchpay.co
  • URL
    https://api.notchpay.co/customers/{id}/payment_methods
  • Auth
    • API key in header Authorization
    • or API key in header X-Sync

Path parameters

idstring required

Unique identifier of the customer

Response

Payment methods retrieved

codeinteger required
statusstring required
messagestring required

Example response

{
  "code": 200,
  "status": "OK",
  "message": "Payment methods retrieved",
  "items": [
    {
      "id": "pm_123456789",
      "type": "Mobile Money",
      "channel": "cm.mtn",
      "created_at": "2023-01-01T12:00:00Z"
    }
  ]
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional 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

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status