Authentication
Every API request is authorized with a partner API key. Send it in the Authorization header using the Bearer scheme:
Authorization: Bearer ldg_live_…API-key requests are for partner-level integration. This is different from the session (JWT/OTP) authorization used in the customer panel and must not be confused with it.
Key format
Section titled “Key format”Keys start with a prefix:
| Prefix | Usage |
|---|---|
ldg_live_… |
Live (prod) environment |
ldg_test_… |
Test environment |
Key management
Section titled “Key management”- The key is shown in full only once, at creation time. Store it securely.
- If lost, it cannot be recovered; you must generate a new key.
- Only a visible identifier of the key (e.g., the last few characters) appears in listings.
Unauthorized requests
Section titled “Unauthorized requests”Requests with an invalid, missing, or revoked key are rejected with 401 Unauthorized and a standard error response.
Effect of the account status
Section titled “Effect of the account status”If your account is closed (closed), every request made with your key, queries (GET) included, is rejected with 403 and the partner_not_active code. When the account is reopened, the same key works again without further action; you do not need to generate a new key. If the account is suspended (suspended), queries keep working, while new payment, new payment link and refund requests receive 403 and partner_not_active.