OK
Common causes: Request succeeded.
Process the response body.
LakiConnect
All errors follow a consistent structure:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "The request body is invalid.",
"details": [
{
"field": "business.tin",
"issue": "TIN must be 10 digits."
}
]
},
"request_id": "req_1a2b3c4d5e6f"
}Request completed as expected.
Common causes: Request succeeded.
Process the response body.
Common causes: Resource created successfully.
Store the returned resource ID if needed.
Fix the request — retries will not help without changes.
Common causes: Missing required fields or invalid format.
Fix the request payload before retrying.
Common causes: Missing or invalid API key.
Verify your X-API-Key header.
Common causes: API key lacks required permissions.
Check RBAC scopes or contact support.
Common causes: Resource ID does not exist or does not belong to this master.
Confirm the ID and connected-merchant context.
Common causes: Duplicate idempotency key with different parameters.
Reuse the same key with identical params, or use a new key.
Common causes: Request is well-formed but semantically invalid.
Review field values against API constraints.
Common causes: Rate limit exceeded.
Wait for Retry-After, then retry with backoff.
Transient failures — safe to retry with backoff.
Common causes: Unexpected server-side error.
Retry with exponential backoff; log request_id.
Issues with API keys or access scopes.
UNAUTHORIZEDAPI key is missing or invalid.
Send a valid X-API-Key header with every request.
FORBIDDENInsufficient RBAC permissions.
Use a key with the required scope or contact your account admin.
Missing or unlinked entities in your platform.
NOT_FOUNDThe requested resource does not exist.
Verify the resource ID and that it belongs to your master account.
CONNECTED_MERCHANT_NOT_FOUNDX-Connected-Merchant-ID is not linked to this master.
Onboard the merchant or use the correct connected-merchant header value.
Request or account state does not meet API requirements.
VALIDATION_ERROROne or more request fields failed validation.
Inspect error.details for field-level issues and correct the payload.
KYC_NOT_APPROVEDPayment attempted on a connected account that is not KYC-approved.
Wait for KYC approval or block payments until status is approved.
FEE_CONFIG_NOT_SETNo fee config found for master or connected account.
Configure a default or per-connected fee rule before processing payments.
Retryable or idempotency-related request issues.
RATE_LIMITEDRequest rate limit exceeded; retry after the indicated interval.
Honor Retry-After when present; otherwise back off and retry.
IDEMPOTENCY_CONFLICTSame idempotency key reused with different request parameters.
Use a new idempotency key, or replay with identical request body.
Retry-After header if present. Otherwise wait at least 1 second before retrying.request_id for debugging.