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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idFilter by the identifier of the card.
Return every card except the one with this identifier.
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.
Return the cards of every bank except the one with this identifier.
Filter by the identifier of the card type. An identifier that matches no card type fails the request rather than returning an empty page.
Return the cards of every card type except the one with this identifier.
Filter by payment type.
creditPossible values: Return the cards whose payment type is not the given one.
debitPossible values: A page of cards.
A paginated list of cards.
Total number of cards matching the request.
URL of the next page, or null if this is the last page.
URL of the previous page, or null if this is the first page.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested page of the card list does not exist — the page number is beyond the last page or is not a number.
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?

