Commerce Engine is now in beta. We're working hard to make it better for you.
cURL
curl --request POST \ --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/generate-otp \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "channel": "sms", "country_code": "<string>", "phone": "<string>", "otp_action": "register" }'
{ "message": "<string>", "success": true, "content": { "otp_token": "<string>", "otp_action": "<string>" } }
Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
Access token
The body is of type object.
object
OK
The response is of type object.
Was this page helpful?