> ## 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.

# Send LigdiCash Wallet OTP

> Triggers the sending of an SMS OTP to the customer to authenticate a payment via their LigdiCash wallet. First step of the wallet flow.

<Note>
  This endpoint is **exclusive to the LigdiCash Wallet**. For all other mobile money operators, use [POST /pay/v01/straight/checkout-invoice/create](/en/reference/endpoints/payin-straight-create).
</Note>

## Headers

<ParamField header="Apikey" type="string" required>
  API key of the LigdiCash project.
</ParamField>

<ParamField header="Authorization" type="string" required>
  `Bearer {API_TOKEN}`
</ParamField>

<ParamField header="Accept" type="string" required>
  `application/json`
</ParamField>

## Path parameters

<ParamField path="phone_number" type="string" required>
  Customer's phone number linked to their LigdiCash account. Format: country code + local number, no `+` or spaces. Example: `22670000000`.
</ParamField>

<ParamField path="amount" type="integer" required>
  Amount in XOF (integer, no decimals).
</ParamField>

## Response

<ResponseField name="error" type="boolean">
  `false` = OTP sent successfully. `true` = failure.
</ResponseField>

<ResponseField name="message" type="string">
  Descriptive message. Example: `"OTP sent. Please check your phone."`
</ResponseField>

<CodeGroup>
  ```json Success theme={null}
  {
    "error": false,
    "message": "OTP sent. Please check your phone."
  }
  ```

  ```json Failure theme={null}
  {
    "error": true,
    "message": "..."
  }
  ```
</CodeGroup>

<Warning>
  Check that `error` is `false` before displaying the OTP input field to the customer. If `error` is `true`, do not prompt for the OTP.
</Warning>

## Next step in the flow

After the customer receives the OTP, submit the transaction with [POST /pay/v02/debitwallet/withotp](/en/reference/endpoints/debit-wallet-with-otp).

## Related guide

[LigdiCash Wallet](/en/payment-api/direct-payin/operators/ligdicash-wallet) — full two-step flow.
