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

Retrieve a card

Returns a single card by its identifier. The bank, the card type and the four terminal fields are returned as identifiers rather than nested objects.

get
/cards/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the card.

Responses
200

The requested card.

application/json

A card returned by the API — the record that describes a payment card the store accepts and states which POS terminal each kind of payment made with it is sent through. The bank, the card type and the four terminal fields are returned as identifiers rather than nested objects.

pkintegerRead-onlyRequired

Unique identifier of the card.

namestring · max: 64Required

Display name of the card.

Example: Example Card
slugstring · max: 64Required

The code that identifies the card within its bank. Unique among the cards of the same bank, but the same code may be used by cards of other banks.

Example: example-card
bankintegerRequired

Identifier of the bank the card belongs to.

Example: 3
card_typeintegerRequired

Identifier of the card type — the scheme or programme of the card.

Example: 1
card_payment_typestring · enumRequired

Whether a card is a credit or a debit card.

  • credit — a credit card. A card stored without a payment type is treated as one.
  • debit — a debit card. While THREE_D_REDIRECT_DEBIT is on, which is the default, every payment matched to a card marked this way is redirected to 3D secure verification.
Example: creditPossible values:
cash_paymentintegerRequired

Identifier of the POS terminal a single, non-installment payment is sent through.

Example: 5
installment_paymentintegerRequired

Identifier of the POS terminal an installment payment is sent through.

Example: 5
three_d_paymentinteger · nullableRequired

Identifier of the POS terminal used when a single payment is redirected to 3D secure verification, or null when the card has none. Never used while THREE_D_SECURE_ENABLED is off.

Example: 6
installment_three_d_paymentinteger · nullableRequired

Identifier of the POS terminal used when an installment payment is redirected to 3D secure verification, or null when the card has none.

Example: 6
is_commerce_cardboolean · nullableRequired

Whether the card is the store's own commerce card. Read by the commerce-card installment filters, and without effect while none of them is configured through INSTALLMENT_FILTERS.

Example: false
get/cards/{id}/
GET /api/v1/remote/1/cards/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "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?