Skip to main content
Every call from your server to lite uses the same base URL and the same API key header. This page covers what all integrations share: the base URL, API keys, authentication errors, retries and limits.

Base URL and test mode

There is no separate sandbox URL and no mode header. To go live, swap the key once your live setup is ready: see Go live.
Send only x-api-key. The API refuses a dashboard login token (Authorization: Bearer …), and it refuses a request that sends both headers.

API keys

Create keys in the dashboard under Settings → Developers → API Keys. Select Create API Key, enter a name and a description, then select Create.
  • The dashboard shows the key once. Copy it when it appears and store it on your server. Never put it in a website, an app or version control.
  • A key acts on its own business account and can do everything the API allows there. Use a separate key for each system, so you can replace one without touching the others.
  • Keys don’t expire. To revoke a key, open it under Settings → Developers → API Keys and select Delete API Key. It stops working at once. Only the account owner and Admins can delete keys. To rotate a key, create a new one, deploy it, then delete the old one.
  • Leave out x-business-account-id. Without it, the key acts on its own business account. Send it only to act on another business account your key has access to. Any other value returns 403.

Authentication errors

A missing or bad key gets 401 from lite’s gateway, with a body that differs from the API’s other errors:
reason tells you what to fix: If the authentication service is briefly unavailable, the gateway returns 503 with Retry-After: 5. Retry after that many seconds.

Retries and duplicate requests

The create endpoints protect against retries in different ways: order.reference also guards against paying an order twice, with no time limit. If your account already has a payment for the same order.reference that isn’t FAILED, EXPIRED, VOIDED or AUTHORIZATION_REVERSED, POST /payments returns that payment instead of creating a new one. Use a unique order.reference for each order.

Limits

The 403 filter reads the whole request body, so it can catch free-text fields such as product names, customer names, addresses and descriptions. Strip markup from them before you send them.