Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

List cards

Returns a paginated list of cards, ordered by identifier ascending unless the sort parameter says otherwise.

Only the identifier, the bank, the card type and the payment type can be filtered on, and each matches the whole value. Every one of those filters also has a negated form, written by appending an exclamation mark to the parameter name. A parameter that is not one of them is ignored and the unfiltered page is returned, so check the response count before assuming a filter was applied.

The bank, the card type and the four terminal fields are returned as identifiers rather than nested objects; retrieve those records separately if their details are needed.

get
/cards/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
idintegerOptional

Filter by the identifier of the card.

id!integerOptional

Return every card except the one with this identifier.

bankintegerOptional

Filter by the identifier of the bank the card belongs to. An identifier that matches no bank fails the request rather than returning an empty page.

bank!integerOptional

Return the cards of every bank except the one with this identifier.

card_typeintegerOptional

Filter by the identifier of the card type. An identifier that matches no card type fails the request rather than returning an empty page.

card_type!integerOptional

Return the cards of every card type except the one with this identifier.

card_payment_typestring · enumOptional

Filter by payment type.

Example: creditPossible values:
card_payment_type!string · enumOptional

Return the cards whose payment type is not the given one.

Example: debitPossible values:
Responses
200

A page of cards.

application/json

A paginated list of cards.

countintegerOptional

Total number of cards matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/cards/
GET /api/v1/remote/1/cards/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "pk": 1,
      "name": "Example Card",
      "slug": "example-card",
      "bank": 3,
      "card_type": 1,
      "card_payment_type": "credit",
      "cash_payment": 5,
      "installment_payment": 5,
      "three_d_payment": 6,
      "installment_three_d_payment": 6,
      "is_commerce_card": false
    }
  ]
}

Last updated

Was this helpful?