The two error levels
Level 1 — Request rejection (response_code)
Happens immediately on the HTTP call. LigdiCash has read your payload and rejected it.
When
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.
These failures indicate business issues: insufficient balance, wrong OTP, ineligible number, etc.
Error categories
General handling strategy
1
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.2
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.3
Handle the callback defensively
Never trust the callback payload alone. Always call
confirm with the token stored in the previous step to validate the real outcome.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
