Skip to main content
POST
/
v2
/
public
/
checkout
/
otp
/
resend
Resend OTP
curl --request POST \
  --url https://api.flexype.io/v2/public/checkout/otp/resend \
  --header 'Content-Type: application/json' \
  --data '
{
  "context_id": "550e8400-e29b-41d4-a716-446655440000",
  "session_id": "5223aec7-bb78-4344-be18-8023eb8f22ae",
  "method": "WHATSAPP"
}
'
{
  "status": "SUCCESS",
  "data": {
    "context_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
Use this when the customer doesn’t receive the OTP or it expires. A new OTP is sent, invalidating the previous one, and the same context_id is returned.
MethodDescriptionProvider
SMSSend via SMS (default)Configured merchant SMS provider
WHATSAPPSend via WhatsAppConfigured merchant WhatsApp provider
Resend is rate-limited and typically offered 30 seconds after the initial send. If you switch delivery method, update the client UI accordingly.

Body

application/json
context_id
string<uuid>
required

UUID from a previous Send OTP call.

Example:

"550e8400-e29b-41d4-a716-446655440000"

session_id
string<uuid>
required

Checkout session UUID.

Example:

"5223aec7-bb78-4344-be18-8023eb8f22ae"

method
enum<string>
default:SMS

Delivery method. Defaults to SMS.

Available options:
SMS,
WHATSAPP
Example:

"WHATSAPP"

Response

OTP resent successfully.

status
string
Example:

"SUCCESS"

data
object