> 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/card-issuing/create-card-customer/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # Create Card Customer POST https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer Content-Type: application/json Registers a customer with the card issuing provider. Do this once per customer before issuing a card. **Body (JSON)** — all fields required (presence check only; no Joi schema): | Field | Type | Notes | | ------------ | ------ | ------------------------------------------------------- | | `customerId` | string | ID of an existing customer that belongs to your company | | `street` | string | Billing address line 1 | | `lga` | string | Sent to provider as billing address line 2 | | `city` | string | | | `state` | string | | | `country` | string | e.g. `NG` | | `postalCode` | string | | The customer's first/last name, email and mobile number are taken from the customer record. Call once per customer; a second call returns 400 `Customer already exist, proceed to generate a card...`. Returns **201** with no `data` object. > All errors from this folder use `{ "status": "error", "message": "..." }` and are returned as **HTTP 400** (including "Card not found" — there is no 404). Success bodies use `status: "success"` (not `success: true` like the VTU endpoints). Reference: https://docs.shimi.cash/api-reference/shimi-api/card-issuing/create-card-customer ## 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) - `state` (string, optional) - `country` (string, optional) - `city` (string, optional) - `street` (string, optional) - `postalCode` (string, optional) - `lga` (string, optional) ## Response ### 201 Created - `status` (string, optional) - `message` (string, optional) ## Errors ### 400 Bad Request Error Missing fields / Customer not found / Already registered / Provider error - `status` (string, optional) - `message` (string, optional) ### 401 Unauthorized Error Unauthorized - `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) ## Examples ### 201 Created **Response** ```json { "status": "success", "message": "Customer created successfully, proceed to generate a card" } ``` **SDK Code** ```python 201 Created import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer" headers = {"Authorization": "Bearer "} response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript 201 Created const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer'; 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 201 Created package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer" 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 201 Created require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer") 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 201 Created 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/card/create-customer") .header("Authorization", "Bearer ") .asString(); ``` ```php 201 Created request('POST', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 201 Created using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 201 Created import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer")! 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() ``` ### Card Issuing_createCardCustomer_example **Request** ```json { "customerId": "{{customer_id}}", "state": "Lagos", "country": "NG", "city": "Ikeja", "street": "1 Example Street", "postalCode": "100001", "lga": "Ikeja" } ``` **Response** ```json { "status": "success", "message": "Customer created successfully, proceed to generate a card" } ``` **SDK Code** ```python Card Issuing_createCardCustomer_example import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer" payload = { "customerId": "{{customer_id}}", "state": "Lagos", "country": "NG", "city": "Ikeja", "street": "1 Example Street", "postalCode": "100001", "lga": "Ikeja" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Card Issuing_createCardCustomer_example const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"customerId":"{{customer_id}}","state":"Lagos","country":"NG","city":"Ikeja","street":"1 Example Street","postalCode":"100001","lga":"Ikeja"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Card Issuing_createCardCustomer_example package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer" payload := strings.NewReader("{\n \"customerId\": \"{{customer_id}}\",\n \"state\": \"Lagos\",\n \"country\": \"NG\",\n \"city\": \"Ikeja\",\n \"street\": \"1 Example Street\",\n \"postalCode\": \"100001\",\n \"lga\": \"Ikeja\"\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 Card Issuing_createCardCustomer_example require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer") 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 \"state\": \"Lagos\",\n \"country\": \"NG\",\n \"city\": \"Ikeja\",\n \"street\": \"1 Example Street\",\n \"postalCode\": \"100001\",\n \"lga\": \"Ikeja\"\n}" response = http.request(request) puts response.read_body ``` ```java Card Issuing_createCardCustomer_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/card/create-customer") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"customerId\": \"{{customer_id}}\",\n \"state\": \"Lagos\",\n \"country\": \"NG\",\n \"city\": \"Ikeja\",\n \"street\": \"1 Example Street\",\n \"postalCode\": \"100001\",\n \"lga\": \"Ikeja\"\n}") .asString(); ``` ```php Card Issuing_createCardCustomer_example request('POST', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer', [ 'body' => '{ "customerId": "{{customer_id}}", "state": "Lagos", "country": "NG", "city": "Ikeja", "street": "1 Example Street", "postalCode": "100001", "lga": "Ikeja" }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Card Issuing_createCardCustomer_example using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/card/create-customer"); 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 \"state\": \"Lagos\",\n \"country\": \"NG\",\n \"city\": \"Ikeja\",\n \"street\": \"1 Example Street\",\n \"postalCode\": \"100001\",\n \"lga\": \"Ikeja\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Card Issuing_createCardCustomer_example import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "customerId": "{{customer_id}}", "state": "Lagos", "country": "NG", "city": "Ikeja", "street": "1 Example Street", "postalCode": "100001", "lga": "Ikeja" ] 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/card/create-customer")! 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() ```