CardsAPI provides endpoints for card management, including retrieving card details and processing debit/credit transactions. It ensures secure processing of card data and provides a unified interface for applications that interact with card-based systems.
Here is the list of internal error codes. These errors only appear in the context of an HTTP 500 status.
| Code | HTTP status |
|---|---|
| CARD-1 | 500 |
| CARD-4 | 500 |
| CARD-10 | 500 |
| CARD-11 | 500 |
Here is the list of error codes
| Code | Description | HTTP status |
|---|---|---|
| CARD-2 | Invalid path | 404 |
| CARD-3 | A parameter is missing or invalid in the body of the request (e.g., parameter sent as a string instead of an integer) | 422 |
| CARD-5 | Missing token | 401 |
| CARD-6 | Invalid token signature | 400 |
| CARD-7 | Token expired | 400 |
| CARD-8 | Invalid token | 400 |
| CARD-9 | Unauthorized access to the service | 403 |
| CARD-14 | Pass not found | 404 |
Search for card by NFC number, barcode, or manual input. - search_mode + q + group_id - search_mode + q + store_id + point_of_sale_id
SearchByGroup (object) or SearchByStorePos (object) The different research methodologies |
{- "type": "CASHBACK",
- "pass": {
- "type": "CASHBACK",
- "service_id": 3,
- "payment_method_id": 2,
- "balance": 6.54,
- "currency": "EUR",
- "expiration_date": "2050-08-24T14:15:22Z",
- "id": "string",
- "serial_number": "string",
- "number": "string",
- "nfc_number": "string",
- "consumer": {
- "id": 7,
- "given_name": "string",
- "family_name": "string"
}
}
}Debiting a cashback card on the ‘pass’ with ‘type‘=‘CASHBACK‘ obtained via the GET ‘/cards’ route.
The ticket id, the cashback pass and necessary debit data.
| ticket_id required | string <uuid> The ticket’s lifetime unique ID in |
| ticket_number | string Your ticket number |
| point_of_sale_id required | integer Point of Sale ID |
| device_id required | string Device ID |
required | object Payment movement |
{- "ticket_id": "9ffa8d1d-0765-11f1-88b3-0cc47a065898",
- "ticket_number": "string",
- "point_of_sale_id": 65,
- "device_id": "string",
- "payment_row": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "movement_type": "DEBIT",
- "payment_method_id": 2,
- "type": "CASHBACK_CARD",
- "currency": "EUR",
- "amount": 5.16,
- "pass": {
- "type": "CASHBACK",
- "service_id": 3,
- "payment_method_id": 2,
- "balance": 6.54,
- "currency": "EUR",
- "expiration_date": "2050-08-24T14:15:22Z",
- "id": "string",
- "serial_number": "string",
- "number": "string",
- "nfc_number": "string",
- "consumer": {
- "id": 5,
- "given_name": "string",
- "family_name": "string"
}
}
}
}{- "ticket_id": "9ffa8d1d-0765-11f1-88b3-0cc47a065898",
- "payment_row": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reference_id": "bfaa556c-0765-11f1-88b3-0cc47a065898",
- "movement_type": "DEBIT",
- "payment_method_id": 2,
- "type": "CASHBACK_CARD",
- "status": "SUCCESS",
- "currency": "EUR",
- "amount": 5.16,
- "pass": {
- "type": "CASHBACK",
- "service_id": 3,
- "payment_method_id": 2,
- "balance": 1.38,
- "currency": "EUR",
- "expiration_date": "2050-08-24T14:15:22Z",
- "id": "string",
- "serial_number": "string",
- "number": "string",
- "nfc_number": "string",
- "consumer": {
- "id": 5,
- "given_name": "string",
- "family_name": "string"
}
}
}, - "receipt_row": {
- "type": "PAYMENT",
- "consumer_receipt": "string",
- "merchant_receipt": "string"
}
}