Skip to main content
This guide walks you through authenticating, finding a product, placing an order, and retrieving your codes. Start in the sandbox with a kal_test_… key.
1

Get your API key

Your Kalixo account manager issues a sandbox and a production key, and whitelists your egress IP addresses. Keep keys secret and send them in the x-api-key header on every request. See Authentication.
Using Postman? Import the Kalixo API v2 collection and an environment (Sandbox or Production), then set your apiKey variable. For local dev against split services, use the Local environment.
2

Verify connectivity (optional)

Once your key is issued and your IP is whitelisted, confirm the API is reachable:
cURL
A 200 response with { "status": "ok", "timestamp": "..." } means the API is up.
3

Find a product in your catalog

List your catalog and pick a row. Each row is one product in one country (market):
  • productCode: a stable 14-digit catalog identifier, identical in sandbox and production.
  • countryCode: the market of this row. You send it as country when you order.
  • availableCountries: every market the product can be ordered for. A regional product appears once per country, with the same productCode.
Filter by country, brand, category, and more.
4

Place an order

For each line, send the productCode, the row’s countryCode as country, the unit price and the quantity. Add a unique externalOrderCode for the order. Prices are in minor units: 10000 is GBP 100.00.
  • country is required when the product’s availableCountries has more than one entry. Sending it on every line is always safe.
  • The optional top-level price is the order total. If you send it, it must equal the sum of (line price × quantity).
  • externalOrderCode is your idempotency key: a retry with the same code returns the existing order instead of creating a second one. See Idempotency.
The order is accepted immediately (202) with processing, estimatedReadyAt, and a wallet snapshot.
Response (202)
Leaving out country for a product with several markets fails with 400: Product 10001000227724 is available in multiple countries (DE, FR, IT); pass country (or a market sku) on the line.
5

Poll until a terminal status

After estimatedReadyAt, fetch the order by orderId or externalOrderCode. Codes are returned when the status is completed (every unit) or partially_completed (the delivered units).
cURL
Response (completed)
While the order is still working you get "status": "processing" and "message": "Order is still processing". Wait until estimatedReadyAt before polling. See the polling example, what to do with a partial delivery, or use the Node reference client.
When you go live, switch the base URL to https://api.kalixo.io/v2 and use your kal_live_… key. productCodes are the same in both environments.

Next steps

Order lifecycle

Understand processing, completed, partially_completed, and failed.

Filtering

Narrow your catalog by country, language, brand, category, and tag.

Sell with Checkout

Take the shopper’s payment with Kalixo Checkout, then deliver codes with this API.

Postman collection

Postman collection

Download the v2 collection and import the Sandbox or Production environment.