Skip to main content
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.
The LigdiCash Wallet uses distinct endpoints (/pay/v02/debitotp and /pay/v02/debitwallet/withotp). See the LigdiCash Wallet page for its specific integration.

Headers

string
required
The API key of your LigdiCash project.
string
required
Your API TOKEN prefixed with Bearer . Example: Bearer eyJ0eXAiOiJKV1Qi...
string
required
Must be application/json.
string
required
Must be application/json.

Body

object
required
Root object of the request.

Request examples

The examples below show two cases depending on the validation mode. Only the otp field changes.

Response

string
"00" if the transaction was created successfully, "01" on error.
string
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.
string
On success: "Votre requête est en cours de traitement". On failure: the error sub-code in the form Echec (CodeXX).
string
URL to the documentation of error codes for this endpoint. Consult when response_code is "01".

Response example

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.