Skip to main content
POST
/
v2
/
giftcards
/
customers
/
otp
/
send
Sendcustomerotp
curl --request POST \
  --url https://api.loyalty.dog/v2/giftcards/customers/otp/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "error": "<string>",
  "otpType": "<string>",
  "mockCode": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Body

application/json

Request to send an OTP to an email or phone number.

target
string
required

Email address or phone number to send OTP to

Required string length: 1 - 255

Response

Successful Response

success
boolean
required
message
string | null
error
string | null
otpType
string | null
mockCode
string | null