Generate OTP
POST
/api/pay/v1/otp/generateGenerate a One-Time Password (OTP) for card payment authentication. This API is called after a card payment is created and the card requires OTP-based verification (native OTP flow).
Requires
Bearer token. Get token →Request Body
| Name | Type | Description |
|---|---|---|
payment_id | stringrequired | Unique identifier of the payment requiring OTP verification. |
Response
| Name | Type | Description |
|---|---|---|
next | string[] | Available next actions. |
meta_data | object | Additional metadata for OTP handling. |
resend_after | string | Minimum wait time in seconds before OTP can be resent. |
Status Codes
200 | OTP generated successfully. |
400 | |
422 | Unprocessable entity — payment not eligible for OTP generation. |
500 | |
503 | Service temporarily unavailable. |
Request
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/otp/generate \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"payment_id": "v1-5757575757-aa-hU1rUd-cc-l"
}'Run this request
200 OK
{
"next": [
"SUBMIT_OTP",
"RESEND_OTP"
],
"meta_data": {
"resend_after": "180"
}
}