Skip to main content
When response_code is 01, the response_text field contains a sub-code in the form Echec (CodeXX). This sub-code is specific to the endpoint you called. This page lists every possible sub-code for each endpoint.
In production, you don’t need to hardcode these tables. Every API response contains a wiki field with the URL of the sub-codes page for the endpoint you called. See The wiki field.

createInvoice

Endpoint: POST /pay/v01/redirect/checkout-invoice/create and POST /pay/v01/straight/checkout-invoice/create Wiki: https://client.ligdicash.com/wiki/createInvoice

confirmInvoice

Endpoint: GET /pay/v01/redirect/checkout-invoice/confirm and POST /pay/v01/withdrawal/confirm Wiki: https://client.ligdicash.com/wiki/confirmInvoice
Echec (Code02) — Invoice not found is the most frequent error on this endpoint. It happens when you use the token received in the callback payload instead of the token returned at transaction creation. These two tokens are different. See Callback security.

createWithdrawal

Endpoint: POST /pay/v01/withdrawal/create (payout to LigdiCash wallet) Wiki: https://client.ligdicash.com/wiki/createWithdrawal
Echec (Code07) — Transaction_id already exists confirms the importance of the transaction_id pattern: every call must carry a unique identifier, including retries. See transaction_id pattern.

createStraightWithdrawal

Endpoint: POST /pay/v01/straight/payout (direct payout to mobile money) Wiki: https://client.ligdicash.com/wiki/createStraightWithdrawal