GET
/
clients
/
{id}
/
recurring_tokens
curl --request GET \
  --url https://gate.chip-in.asia/api/v1/clients/{id}/recurring_tokens/ \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "type": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_on": 1619740800,
      "updated_on": 1619740800,
      "payment_method": "<string>",
      "description": "<string>"
    }
  ],
  "next": "<string>",
  "previous": "<string>"
}

List recurring tokens saved for a client.

All of these tokens will be available in a checkout (see Purchase.checkout_url) if you create a Purchase with this client’s ID in client_id field.

You can use one in POST /purchases/{id}/charge/, too. Note that you can use one client’s recurring_token to pay a Purchase created for a different client_id or created with no client_id at all; it’s not recommended to do this.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Object ID (UUID)

Response

200 - application/json
OK
results
object[]

A record of one of recurring_token-s saved for a specific client. id of this object will be the same as the recurring_token saved.

next
string | null

The next page of pagination results. null if there are no more results.

previous
string | null

The previous page of pagination results. null if there was no previous page.