On an inbound payment, LigdiCash sends two POST requests to yourDocumentation Index
Fetch the complete documentation index at: https://developers.ligdicash.com/llms.txt
Use this file to discover all available pages before exploring further.
callback_url — one in application/json, one in application/x-www-form-urlencoded. Both contain the same data. This page details the JSON structure.
Full example
Main fields
Event timestamp in the format
YYYY-MM-DD HH:MM:SS+TZ.Result code.
"00" = success. Any other value indicates an error — consult wiki for details.Transaction status:
"completed", "pending", or "notcompleted". Base your business logic on this field.Transaction amount in XOF.
Same as
amount. Both fields coexist in all LigdiCash responses.Payer’s phone number, with country code, no
+ or spaces.Unique request identifier generated by LigdiCash. Use it for deduplication when
custom_data is empty or unavailable.Concatenation of the values of all
custom_data fields whose key contains "id". Can be reliable if you only have one field with "id" in the name — but parse custom_data directly for a guaranteed result.Always empty (
""). This field cannot be used for verification — use the token stored at transaction creation.Identifier of the operator that processed the payment (e.g.
"11" for Orange Burkina).Operator name (e.g.
"ORANGE BURKINA").Transaction description. Can be empty.
Operator reference. Can be empty.
Textual label of the result. Can be empty.
URL to the documentation of error codes for this endpoint. Consult when
response_code !== "00".The custom_data array
Array of custom data associated with the transaction. Contains your merchant fields plus the fields automatically added by LigdiCash.
custom_data:
keyof_customdata | Origin | Description |
|---|---|---|
hash | LigdiCash | Transaction hash generated by LigdiCash |
logfile | LigdiCash | Internal LigdiCash log reference |
keyof_customdata to extract your own fields. See Parse custom_data.
Customer information
Payer information when available.
