View Categories

Resend Phone verification code

< 1 min read

Resend Phone Verification Code #

Resends the one-time SMS code to a user whose phone number is not yet verified.

Endpoint #

POST https://api-test.10npay.com/User/{id}/phone-number/resend-code

Headers #

  • Authorization: Bearer <access_token>
  • Content-Length: 0

Path Parameters #

Name Type Description
id integer (int32) User identifier returned by POST /User.

Responses #

  • 204 No Content — SMS resend accepted.
  • 400 Bad Request — throttling hit or phone not eligible (already verified / missing).
  • 401 Unauthorized — missing/expired Bearer token.
  • 404 Not Found — unknown userId.
  • 5xx — transient server error.

Notes #

  • No body is required; the server uses the registered phone number for the user.
  • Implement UI cooldowns to avoid spamming SMS traffic.
  • If the phone number was already confirmed, the endpoint is idempotent (204) but no SMS is sent.