> ## Documentation Index
> Fetch the complete documentation index at: https://developer.nomba.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit card OTP

> Send the OTP from the customer's bank to complete the card-saving payment.

> [card] [Submit customer card OTP](https://developer.nomba.com/nomba-api-reference/charge/submit-customer-card-otp.md)

**Step 3 of 7.** Send the OTP the customer received from their bank, with the `orderReference` from [Create a checkout order](https://developer.nomba.com/docs/products/accept-payment/recurring-payments/api/create-checkout-order.md) and the `transactionId` from [Submit card details](https://developer.nomba.com/docs/products/accept-payment/recurring-payments/api/submit-card-details.md).

When the payment succeeds, Nomba saves the card and sends you its token in the [next step](https://developer.nomba.com/docs/products/accept-payment/recurring-payments/api/store-the-card-token.md).

# `POST /v1/checkout/checkout-card-otp`

#### Headers

This call doesn't need an `Authorization` or `accountId` header.

#### Request body

**otp** `string` *required*

The OTP the customer received from their bank

**orderReference** `string` *required*

`data.orderReference` from the create-order response

**transactionId** `string` *required*

`data.transactionId` from Submit card details

#### Response body

**code** `string` *required*

Response code

**description** `string` *required*

Response description

**data** `object` *required*

**object**

**status** `boolean` *required*

`true` when the payment was completed

**message** `string` *required*

More detail about the result

If the OTP is wrong, `data.status` is `false`. The customer can try 3 times.

```bash Request theme={null}
curl --request POST \
  --url https://api.nomba.com/v1/checkout/checkout-card-otp \
  --header 'Content-Type: application/json' \
  --data '{
    "otp": "975005",
    "orderReference": "be727ded-aa6e-4b6e-beea-898d4428740a",
    "transactionId": "0b572789-0770-44f8-b400-99164ef2712b"
  }'
```

```json Success response (200) theme={null}
{
  "code": "00",
  "description": "checkout otp processed successfully",
  "status": true,
  "data": {
    "status": true,
    "message": "SUCCESS"
  }
}
```

> [card] [Next: Store the card token](https://developer.nomba.com/docs/products/accept-payment/recurring-payments/api/store-the-card-token.md)
>
> Read the token from the webhook and save it with your customer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.