> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kollo.ng/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kollo.ng/_mcp/server.

# Resend Code

POST https://auth/resend_code
Content-Type: application/json

## 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.

Reference: https://docs.kollo.ng/kollo-ap-is/authentication/resend-code

## Authentication

- `Authorization` header (bearer token, required)

## Request

### Body (application/json)

- `customer_id` (string, required)

## Response

### 200

OK

- `message` (string, required)
- `body` (object, required)
  - `customer` (object, required)
    - `customerId` (string, required)
    - `firstName` (string, required)
    - `lastName` (string, required)
    - `email` (string, required)
    - `emailVerified` (boolean, required)
    - `phone` (string, required)
    - `referralCode` (string, required)
    - `createdAt` (datetime, required)
    - `updatedAt` (datetime, required)
    - `onboardingStage` (string, required)
    - `fullName` (string, required)
    - `name` (string, required)
    - `avatar` (string, required)
    - `address` (any, optional, nullable)
    - `username` (any, optional, nullable)
    - `bvn` (any, optional, nullable)
    - `nin` (any, optional, nullable)

## Examples

**Request**

```json
{
  "customer_id": "539a5534-bc55-4afb-b7ff-72e7191bc47b"
}
```

**Response**

```json
{
  "message": "Verification Code resent to email",
  "body": {
    "customer": {
      "customerId": "539a5534-bc55-4afb-b7ff-72e7191bc47b",
      "firstName": "John",
      "lastName": "Doe",
      "email": "rasheed.rahman@kolocore.com",
      "emailVerified": false,
      "phone": "+44785163202",
      "referralCode": "JohnL522U",
      "createdAt": "2025-08-12T21:19:46Z",
      "updatedAt": "2025-08-12T21:25:38Z",
      "onboardingStage": "verify_email",
      "fullName": "John Doe",
      "name": "John",
      "avatar": "https://ui-avatars.com/api/?name=John+Doe&background=random"
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://https/auth/resend_code"

payload = { "customer_id": "539a5534-bc55-4afb-b7ff-72e7191bc47b" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://https/auth/resend_code';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"customer_id":"539a5534-bc55-4afb-b7ff-72e7191bc47b"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/auth/resend_code"

	payload := strings.NewReader("{\n  \"customer_id\": \"539a5534-bc55-4afb-b7ff-72e7191bc47b\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://https/auth/resend_code")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"customer_id\": \"539a5534-bc55-4afb-b7ff-72e7191bc47b\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/auth/resend_code")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"customer_id\": \"539a5534-bc55-4afb-b7ff-72e7191bc47b\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/auth/resend_code', [
  'body' => '{
  "customer_id": "539a5534-bc55-4afb-b7ff-72e7191bc47b"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://https/auth/resend_code");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"customer_id\": \"539a5534-bc55-4afb-b7ff-72e7191bc47b\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["customer_id": "539a5534-bc55-4afb-b7ff-72e7191bc47b"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/auth/resend_code")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```