Skip to main content

Prepare a device

Create a location and API key in the dashboard. Assign your employee to the location, create a card template, and have an activated card available for redemption. Set these variables in your terminal. Use a stable device id: the first request binds the key to it.

1. Log in

The response includes employee, token, sessionExpiresAt, and message. Save the token:

2. Fetch a card

Replace the sample card id with your card’s identifier. The timestamp query parameter is required.
Check cardType and activated before choosing an operation. A blank card needs a template.

3. Stamp a loyalty card

Give the reward when rewardEarned is true. A renewed card can already show a reset stamp count in that same response.

4. Charge a coupon card

Use a coupon card for this operation. amount: 500 deducts €5.00.
For points or status cards, amount represents points instead of cents. See add points, status cards, and reward redemption. Before issuing a card, fetch client configuration for mandatory customer fields, subscription status, and test limits.