Skip to main content

Errors & Status Codes

LaikiPayuses standard HTTP status codes combined with a structured JSON error envelope to describe error conditions.

Standard Error Response Format

Every error response returned by the API adheres to the following JSON schema:

Parameter Validation Errors

When a request payload fails schema validation, message will be an array of specific constraint violation strings:

HTTP Status Code Reference


Common Error Scenarios & Responses

1. Insufficient Vault Balance (400 Bad Request)

Occurs when issuing a card or funding a card with an amount greater than your available vault balance:

2. Missing or Expired Bearer Token (401 Unauthorized)

Occurs when an API endpoint is called without an Authorization: Bearer <accessToken> header, or after the 15-minute token expires:

3. Invalid Credentials During Token Exchange (401 Unauthorized)

Occurs when exchanging credentials at POST /v1/merchant/auth/token with an incorrect Secret Key or mismatched Merchant ID:

4. IP Address Not Whitelisted (403 Forbidden)

Occurs when the calling server IP address is not included in the merchant’s IP Whitelist for that environment:

5. Card Not Found (404 Not Found)

Occurs when requesting a card ID that does not exist or belongs to another merchant: