Endpoint POST /pay/v01/straight/checkout-invoice/create — parameters, examples per validation mode, and response.
This endpoint initiates a payment directly from your interface. You provide the customer’s phone number and, depending on the validation mode of the operator, either the OTP or an empty field. LigdiCash returns a token to store and triggers the validation process on the operator’s side.
POST https://app.ligdicash.com/pay/v01/straight/checkout-invoice/create
The LigdiCash Wallet uses distinct endpoints (/pay/v02/debitotp and /pay/v02/debitwallet/withotp). See the LigdiCash Wallet page for its specific integration.
Identifier of the transaction on the LigdiCash side. Store it in your database immediately — required to call the confirm endpoint and re-verify the status.
{ "response_code": "00", "token": "eyJ0eXAiOiJKV1Qi...", "response_text": "Votre requête est en cours de traitement", "wiki": "https://client.ligdicash.com/wiki/createInvoice"}
Store the token returned at creation. This is the one you will use to call confirm and check the final status — never rely on the token in the callback payload.