> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.shimi.cash/api-reference/shimi-api/customers/resend-customer-otp/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # Resend Customer OTP POST https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp Content-Type: application/json Re-triggers BVN validation and issues a fresh OTP for a customer who hasn't completed **Generate Customer Account** yet. Fails if the customer already has a dedicated account, or has no prior BVN/KYC record. **Body (JSON)** | Field | Type | Required | Notes | |---|---|---|---| | `customerId` | string | yes | Customer ID (or the customer's email) | **Behaviour notes** - Re-runs BVN validation with the provider, which sends a new OTP, and replaces the customer's KYC record. `data` is the new KYC verification record. - A missing `customerId` returns **401** (not 400) with `all fields required`. Reference: https://docs.shimi.cash/api-reference/shimi-api/customers/resend-customer-otp ## Authentication - `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes). ## Request ### Body (application/json) This endpoint expects an object. - `customerId` (string, optional) ## Response ### 200 OK - `status` (string, optional) - `message` (string, optional) - `data` (CustomerRegenerateOtpPostResponsesContentApplicationJsonSchemaData, optional) ## Errors ### 400 Bad Request Error Account already generated / No existing BVN entry / Invalid BVN - `status` (string, optional) - `message` (string, optional) ### 401 Unauthorized Error Missing customerId / Access token missing - `status` (string, optional) - `message` (string, optional) ### 403 Forbidden Error Invalid or expired access token / KYB not approved / Account deactivated - `message` (string, optional) - `code` (string, optional) - `kybStatus` (string, optional) ### 404 Not Found Error Not Found - `status` (string, optional) - `message` (string, optional) ## Types ### CustomerRegenerateOtpPostResponsesContentApplicationJsonSchemaData - `id` (integer, optional) - `type` (string, optional) - `companyId` (string, optional) - `customerId` (string, optional) - `status` (string, optional) - `reference` (string, optional) - `number` (string, optional, nullable) - `createdAt` (string, optional) - `updatedAt` (string, optional, nullable) ## Examples ### 200 Success **Response** ```json { "status": "success", "message": "KYC re-validation successful", "data": { "id": 4182, "type": "BVN", "companyId": "cmg1a7r2k0000ab12cd34ef56", "customerId": "cmg8x2k4p0001qz7h3n9d5v2a", "status": "SUCCESS", "reference": "6702f3c19a8e4b0012d7c5a1", "number": null, "createdAt": "2026-10-04T09:21:37.512Z", "updatedAt": null } } ``` **SDK Code** ```python 200 Success import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp" headers = {"Authorization": "Bearer "} response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript 200 Success const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp'; const options = {method: 'POST', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Success package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Success require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Success import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success request('POST', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers 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() ``` ### Customers_resendCustomerOTP_example **Request** ```json { "customerId": "{{customer_id}}" } ``` **Response** ```json { "status": "success", "message": "KYC re-validation successful", "data": { "id": 4182, "type": "BVN", "companyId": "cmg1a7r2k0000ab12cd34ef56", "customerId": "cmg8x2k4p0001qz7h3n9d5v2a", "status": "SUCCESS", "reference": "6702f3c19a8e4b0012d7c5a1", "number": null, "createdAt": "2026-10-04T09:21:37.512Z", "updatedAt": null } } ``` **SDK Code** ```python Customers_resendCustomerOTP_example import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp" payload = { "customerId": "{{customer_id}}" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Customers_resendCustomerOTP_example const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"customerId":"{{customer_id}}"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Customers_resendCustomerOTP_example package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp" payload := strings.NewReader("{\n \"customerId\": \"{{customer_id}}\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") 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 Customers_resendCustomerOTP_example require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"customerId\": \"{{customer_id}}\"\n}" response = http.request(request) puts response.read_body ``` ```java Customers_resendCustomerOTP_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"customerId\": \"{{customer_id}}\"\n}") .asString(); ``` ```php Customers_resendCustomerOTP_example request('POST', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp', [ 'body' => '{ "customerId": "{{customer_id}}" }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Customers_resendCustomerOTP_example using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"customerId\": \"{{customer_id}}\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Customers_resendCustomerOTP_example import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["customerId": "{{customer_id}}"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/regenerate-otp")! 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() ```