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
headerrequired

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
results
object[]
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.