Resend Code

View as Markdown
## Resend Verification Code This endpoint allows you to resend a verification code to a customer based on their unique identifier. It is primarily used in scenarios where a customer has not received their initial verification code. ### Request - **Method**: POST - **Endpoint**: `{{host}}/auth/resend_code` - **Request Body**: The request expects a JSON payload with the following parameter: - `customer_id` (string): The unique identifier of the customer to whom the verification code will be resent. #### Example Request Body ``` json { "customer_id": "539a5534-bc55-4afb-b7ff-72e719 ..." } ``` ### Response On a successful request, the API will return a `200` status code along with a JSON response that includes the following structure: - `message` (string): A message indicating the status of the request. - `body` (object): Contains details about the customer: - `customer` (object): - `customerId` (string): The unique identifier of the customer. - `firstName` (string): The first name of the customer. - `lastName` (string): The last name of the customer. - `email` (string): The email address of the customer. - `emailVerified` (boolean): Indicates whether the customer's email has been verified. - `phone` (string): The phone number of the customer. - `address` (null or object): The address of the customer, which can be null. - `username` (null or string): The username of the customer, which can be null. - `bvn` (null or string): The Bank Verification Number, which can be null. - `nin` (null or string): The National Identification Number, which can be null. - `referralCode` (string): The referral code associated with the customer. - `createdAt` (string): The timestamp when the customer was created. - `updatedAt` (string): The timestamp when the customer was last updated. - `onboardingStage` (string): The current stage of the customer's onboarding process. - `fullName` (string): The full name of the customer. - `name` (string): The display name of the customer. - `avatar` (string): The URL to the customer's avatar image. ### Related Responses The response format is similar to other endpoints that return customer information along with authentication tokens. These related endpoints can provide additional context for handling customer-related data.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
customer_idstringRequiredformat: "uuid"

Response

OK
messagestring
bodyobject