The LigdiCash API distinguishes between two levels of errors that must not be confused: the immediate rejection of a malformed request, and the failure of a transaction that was successfully initiated. This guide explains how to handle each one.Documentation Index
Fetch the complete documentation index at: https://developers.ligdicash.com/llms.txt
Use this file to discover all available pages before exploring further.
The two error levels
Level 1 — Request rejection (response_code)
Happens immediately on the HTTP call. LigdiCash has read your payload and rejected it.response_code | Meaning |
|---|---|
00 | Valid payload — the transaction is initiated |
01 | Invalid payload or authentication error — nothing was created |
response_code is 01, the response_text field contains a technical sub-code in the form Echec (CodeXX). Read the wiki field to get the human-readable description.
Level 2 — Transaction failure (callback / confirm)
Happens afterresponse_code: "00". The transaction was initiated but did not complete on the operator side.
| Field | Value on failure |
|---|---|
status in the callback | notcompleted |
response_code from confirm | 01 with a sub-code in response_text |
Error categories
| Category | When | Examples |
|---|---|---|
| Authentication | Immediate | Invalid Apikey, expired token |
| Invalid payload | Immediate | Missing field, wrong phone number format, non-integer amount |
| Operator error | Deferred (callback) | Cancellation |
| Merchant business error | Immediate | Payout not enabled on the account, limit exceeded |
| Technical error | Immediate | Timeout, service unavailable |
General handling strategy
Check response_code immediately
If
response_code === "01": log response_text, follow the URL in wiki to read the human description. Do not retry immediately — fix the root cause first.Store the creation token
If
response_code === "00": store the returned token in your database, linked to your transaction_id. You will need it to re-verify the callback.Complete handling example
Node.js
Related pages
- The wiki field — how to decode
Echec (CodeXX)into a human-readable message - Sub-codes reference — full list by endpoint
- Common errors — causes and solutions
- Response codes and statuses — full reference for
response_code - Callback security — re-verification via
confirm
