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:

