> For the complete documentation index, see [llms.txt](https://blended.gitbook.io/a1pay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blended.gitbook.io/a1pay/otp-validation.md).

# OTP Validation

You post to this endpoint to authenticate a transaction with the response of a user to the OTP prompt

## OTP Validation

<mark style="color:green;">`POST`</mark> `https://a1pay.net/api/cardpayment/otpvalidate`

#### Request Body

| Name            | Type   | Description                                         |
| --------------- | ------ | --------------------------------------------------- |
| ChargeReference | string | The gateway's charge reference for this transaction |
| OTP             | string | The response of the user to the OTP prompt          |
| TransactionId   | string | Id of the current transaction                       |

{% tabs %}
{% tab title="200 Regardless of what you get here, you should then query the transaction to get the correct update on the status of the transaction." %}

```javascript
```

{% endtab %}
{% endtabs %}
