Skip to main content
POST
/
auth
/
resend-otp
Resend verification code
curl --request POST \
  --url https://store.salesive.com/api/v1/auth/resend-otp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-shop-id: <api-key>' \
  --data '
{
  "email": "[email protected]"
}
'
{
  "status": 123,
  "success": true,
  "message": "<string>",
  "data": {
    "email": "[email protected]"
  }
}

Request

POST /auth/resend-otp
Content-Type: application/json
x-shop-id: {shopId}
{
  "email": "[email protected]"
}

Headers

HeaderTypeDescription
Content-TypestringAlways set to application/json.
x-shop-idstringShop identifier to associate the user with your store.

Body parameters

FieldTypeRequiredDescription
emailstringYesEmail address associated with the shopper account.

Successful response

{
    "status": 200,
    "success": true,
    "message": "New verification code sent to your email",
    "data": {
        "email": "[email protected]"
    }
}
You see success: true, confirming that the resend request was accepted and the new code is on the way.

Error responses

{
    "status": 404,
    "success": false,
    "message": "User not found",
    "data": {}
}
{
    "status": 500,
    "success": false,
    "message": "Failed to send verification email. Please try again.",
    "data": {}
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Body

application/json
email
string<email>
required

Email address associated with the shopper account.

Response

Verification code resent successfully.

status
integer
required
success
boolean
required
message
string
required
data
object
required