Skip to main content
POST
/
pay
/
v02
/
debitwallet
/
withotp
Submit a LigdiCash Wallet payment
curl --request POST \
  --url https://app.ligdicash.com/pay/v02/debitwallet/withotp \
  --header 'Accept: <accept>' \
  --header 'Apikey: <apikey>' \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "commande": {
    "invoice": {
      "items": [
        {}
      ],
      "total_amount": 123,
      "devise": "<string>",
      "description": "<string>",
      "customer": "<string>",
      "customer_firstname": "<string>",
      "customer_lastname": "<string>",
      "customer_email": "<string>",
      "external_id": "<string>",
      "otp": "<string>"
    },
    "store": {
      "name": "<string>",
      "website_url": "<string>"
    },
    "actions": {
      "cancel_url": "<string>",
      "return_url": "<string>",
      "callback_url": "<string>"
    },
    "custom_data": {}
  }
}
'
{
  "response_code": "<string>",
  "token": "<string>",
  "response_text": "<string>",
  "wiki": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developers.ligdicash.com/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint is exclusive to the LigdiCash Wallet, to be called after GET /pay/v02/debitotp which triggers the OTP being sent to the customer.

Headers

Apikey
string
required
API key of the LigdiCash project.
Authorization
string
required
Bearer {API_TOKEN}
Accept
string
required
application/json
Content-Type
string
required
application/json

Body

Same structure as POST /pay/v01/straight/checkout-invoice/create, with customer filled and otp containing the code received by the customer.
commande
object
required

Response

response_code
string
"00" = success, "01" = error.
token
string
Transaction token. Store it immediately — required for confirm.
response_text
string
Success: "Votre requête est en cours de traitement". Failure: Echec (CodeXX).
wiki
string
URL to the sub-codes documentation.
{
  "response_code": "00",
  "token": "eyJ0eXAiOiJKV1Qi...",
  "response_text": "Votre requête est en cours de traitement",
  "wiki": "https://client.ligdicash.com/wiki/createInvoice"
}

Error codes

Wiki: https://client.ligdicash.com/wiki/createInvoice — see Sub-codes per endpoint. LigdiCash Wallet — full two-step flow.