Skip to main content
GET
/
pay
/
v02
/
debitotp
/
{phone_number}
/
{amount}
Send LigdiCash Wallet OTP
curl --request GET \
  --url https://app.ligdicash.com/pay/v02/debitotp/{phone_number}/{amount} \
  --header 'Accept: <accept>' \
  --header 'Apikey: <apikey>' \
  --header 'Authorization: <authorization>'
{
  "error": true,
  "message": "<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. For all other mobile money operators, use POST /pay/v01/straight/checkout-invoice/create.

Headers

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

Path parameters

phone_number
string
required
Customer’s phone number linked to their LigdiCash account. Format: country code + local number, no + or spaces. Example: 22670000000.
amount
integer
required
Amount in XOF (integer, no decimals).

Response

error
boolean
false = OTP sent successfully. true = failure.
message
string
Descriptive message. Example: "OTP sent. Please check your phone."
{
  "error": false,
  "message": "OTP sent. Please check your phone."
}
Check that error is false before displaying the OTP input field to the customer. If error is true, do not prompt for the OTP.

Next step in the flow

After the customer receives the OTP, submit the transaction with POST /pay/v02/debitwallet/withotp. LigdiCash Wallet — full two-step flow.