Gift Card Customers

Sendcustomerotp

Send OTP to Customer

Generate and send a one-time password to a customer's email or phone number. The OTP is stored in Redis with a 5-minute expiry.

Rate Limiting:

  • Maximum 5 requests per hour per target
  • Maximum 10 requests per day per target

Security:

  • OTP codes are 6 digits, cryptographically secure
  • Codes expire after 5 minutes
  • Maximum 3 verification attempts per code
  • OTP codes are never returned in production (only in dev/test mode)

Request Body:

  • target: Email address or phone number

Status Codes:

  • 200: OTP sent successfully
  • 400: Invalid target format
  • 429: Rate limit exceeded
post/v2/giftcards/customers/otp/send

Request

Request body

targetstring required

Email address or phone number to send OTP to

Response

Successful Response

successboolean required
messagestring nullable
errorstring nullable
otpTypestring nullable
mockCodestring nullable

Changes

No recorded changes to this operation across all 7 revisions of this API.