Resend Code
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Bearer authentication of the form Bearer <token>, where token is your auth token.
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.
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.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.
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.