Customer's phone number: 7 to 15 digits, optionally starting with + and the country code (e.g. +2348031234567). Spaces, dashes and brackets are allowed. Required for USD cards. For USD cards, save it in international format, such as +2348031234567; a number without its country code is read as one from the billing country.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sudo Developer Documentation","colors":{"primary":"#000","light":"#FFF","dark":"#737373"},"logo":{"light":"https://mintcdn.com/sudoafricainc/0rYEZ-verRngCGW6/images/333e137-small-sudo-black.png?fit=max\u0026auto=format\u0026n=0rYEZ-verRngCGW6\u0026q=85\u0026s=f1abf960ebbfc77f55d8421c9fdbfe16","dark":"https://mintcdn.com/sudoafricainc/0rYEZ-verRngCGW6/images/logo-white.svg?fit=max\u0026auto=format\u0026n=0rYEZ-verRngCGW6\u0026q=85\u0026s=90e01bf5d44d3867db97f52970f543ec"},"favicon":"https://mintcdn.com/sudoafricainc/0rYEZ-verRngCGW6/favicon.svg?fit=max\u0026auto=format\u0026n=0rYEZ-verRngCGW6\u0026q=85\u0026s=b913c1ed730c4061e789e41fe2862ed2","api":{"openapi":["openapi.json"],"mdx":{"auth":{"method":"bearer"},"server":["https://api.sandbox.sudo.cards"]}},"navbar":{"links":[{"href":"mailto:root@sudo.africa","label":"Support"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.sudo.africa"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sudoafricainc","hasAudioNarration":false,"actualSubdomain":"sudoafricainc","customDomains":["docs.sudo.africa"],"gitSource":{"type":"github","owner":"sudoafrica","repo":"developer-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ada1cb71cd014c88d98c536","collectionId":"3e34d7da-5153-46e7-9c5f-d145ff205d52","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ada1cb71cd014c88d98c536"},"feedback":{"edits":true},"entitlements":{},"buildId":"6ada1cb71cd014c88d98c536","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":60},{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"Cards","count":16},{"language":"default","tag":"Webhooks","count":9},{"language":"default","tag":"Overview","count":8},{"language":"default","tag":"Accounts","count":8},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"Simulator (Sandbox Only)","count":6},{"language":"default","tag":"Card Programs","count":6},{"language":"default","tag":"Customers","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".mdx-content :not(pre)>code{margin:0;padding:1px 3px;border-radius:4px}"}],"page":{"pagePath":"reference/create-customer","slug":"/reference/create-customer","pageMetadata":{"openapi":"openapi.json post /customers","title":"Create Customer","description":"Creates a new customer.","href":"/reference/create-customer"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a new customer.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"openapi.json post /customers","title":"Create Customer","description":"Creates a new customer.","href":"/reference/create-customer"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Customer","description":"Creates a new customer.","operationId":"create-customer","requestBody":"2d390eff-0cfa-4be3-834f-926fa7ce640c","responses":{"201":"71899752-6bfe-4edc-b516-7398f3a958ae","400":"2d6452ba-cdc8-4870-b7ed-77143317dba4","401":"f360f8f2-54f1-42ef-97a5-da8ea39eeccd"},"deprecated":false,"method":"post","type":"path","servers":["cf545e2d-d094-497e-b3d3-01d65265413d"],"security":["382c7c40-6f98-4695-a479-e95030640a06"],"path":"/customers","baseUrlOptions":["https://api.sandbox.sudo.cards"],"title":"Create Customer","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","name","phoneNumber","status","billingAddress"],"properties":{"type":{"type":"string","description":"This is the customer type.","default":"individual","enum":["individual","company"],"example":"individual","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"The customer's full name.","example":"Jane Smith","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"phoneNumber":{"type":"string","description":"Customer's phone number: 7 to 15 digits, optionally starting with + and the country code (e.g. +2348031234567). Spaces, dashes and brackets are allowed. Required for USD cards. For USD cards, save it in international format, such as +2348031234567; a number without its country code is read as one from the billing country.","example":"+2348012345678","isRequired":true,"uniqueKey":"phoneNumber","typeLabel":"string"},"status":{"type":"string","description":"This is the initial status of the customer.","default":"active","enum":["active","inactive"],"example":"active","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"billingAddress":{"type":"object","description":"This is the billing address","required":["line1","city","state","postalCode","country"],"properties":{"line1":{"type":"string","description":"Street address line 1","example":"42 Corporate Tower, Marina","isRequired":true,"uniqueKey":"billingAddress.line1","typeLabel":"string"},"city":{"type":"string","description":"City","example":"Lagos","isRequired":true,"uniqueKey":"billingAddress.city","typeLabel":"string"},"state":{"type":"string","description":"State","example":"Lagos","isRequired":true,"uniqueKey":"billingAddress.state","typeLabel":"string"},"postalCode":{"type":"string","example":"100221","isRequired":true,"uniqueKey":"billingAddress.postalCode","typeLabel":"string"},"country":{"type":"string","description":"Billing country: a country name or ISO code, e.g. `Nigeria`, `NG` or `NGA`.","example":"Nigeria","isRequired":true,"uniqueKey":"billingAddress.country","typeLabel":"string"},"line2":{"type":"string","description":"Street Address line 2","example":"Floor 8","uniqueKey":"billingAddress.line2","typeLabel":"string"}},"isRequired":true,"uniqueKey":"billingAddress","typeLabel":"object"},"emailAddress":{"type":"string","description":"Customer's email address. Must be a valid email address. Required for USD cards.","example":"jane.smith@example.com","uniqueKey":"emailAddress","typeLabel":"string"},"individual":{"type":"object","description":"Individual details. Required if customer type is `individual`.","required":["firstName","lastName","dob"],"example":{"firstName":"Jane","lastName":"Smith","otherNames":"Maria","dob":"1985-05-15","identity":{"type":"PASSPORT","number":"A12345678"},"documents":{"idFrontUrl":"https://your-bucket.s3.amazonaws.com/\u003cbusinessId>/customers/\u003ccustomerId>/passport-front.jpg","idBackUrl":"https://your-bucket.s3.amazonaws.com/\u003cbusinessId>/customers/\u003ccustomerId>/passport-back.jpg"}},"properties":{"firstName":{"type":"string","description":"Customer's first name, 2 to 20 characters (spaces at either end are not counted).","example":"Jane","isRequired":true,"uniqueKey":"individual.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Customer's last name, 2 to 20 characters (spaces at either end are not counted).","example":"Smith","isRequired":true,"uniqueKey":"individual.lastName","typeLabel":"string"},"dob":{"type":"string","description":"Date of birth in the format `YYYY-MM-DD` (`YYYY/MM/DD` is also accepted). Must be a real date and not in the future. Required for USD cards.","example":"1985-05-15","isRequired":true,"uniqueKey":"individual.dob","typeLabel":"string"},"otherNames":{"type":"string","description":"Customer's other names.","example":"Maria","uniqueKey":"individual.otherNames","typeLabel":"string"},"identity":{"type":"object","description":"Customer's identity data.","required":["type","number"],"properties":{"type":{"type":"string","description":"Identity type. USD cards accept `BVN`, `NIN`, `PASSPORT`, `DL` (driver's licence), `VC` (voter's card) and `RC` (resident card). A company can instead use its `CAC` number on `company.identity`. `TIN` can't be used for USD cards.","enum":["BVN","NIN","CAC","TIN","PASSPORT","VC","DL","RC"],"example":"PASSPORT","isRequired":true,"uniqueKey":"individual.identity.type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","description":"Identity number issued by the regulator. A `BVN` must be 11 digits, a Nigerian `NIN` 11 digits, and a `PASSPORT` number 6 to 9 letters or digits.","example":"A12345678","isRequired":true,"uniqueKey":"individual.identity.number","typeLabel":"string"}},"uniqueKey":"individual.identity","typeLabel":"object"},"documents":{"type":"object","description":"Customer's KYC documents.","properties":{"idFrontUrl":{"type":"string","description":"Public https link to the front of the ID document: a JPEG, PNG or WebP image of up to 10 MB. The link must point straight to the file (no redirects) and stay accessible: it is checked when saved and downloaded again when a USD card is created. Upload with [Generate Customer Document Url](/reference/generate-customer-document-url) or use your own storage.","example":"https://your-bucket.s3.amazonaws.com/\u003cbusinessId>/customers/\u003ccustomerId>/passport-front.jpg","uniqueKey":"individual.documents.idFrontUrl","typeLabel":"string"},"idBackUrl":{"type":"string","description":"Public https link to the back of the ID document: a JPEG, PNG or WebP image of up to 10 MB, checked when saved.","example":"https://your-bucket.s3.amazonaws.com/\u003cbusinessId>/customers/\u003ccustomerId>/passport-back.jpg","uniqueKey":"individual.documents.idBackUrl","typeLabel":"string"},"incorporationCertificateUrl":{"type":"string","description":"Public https link to an image of the company's CAC (incorporation) certificate. Needed for a USD card when the company uses its `CAC` number: a JPEG, PNG or WebP image of up to 10 MB that stays reachable, since it is downloaded when the card is created.","uniqueKey":"individual.documents.incorporationCertificateUrl","typeLabel":"string"},"addressVerificationUrl":{"type":"string","description":"Customer address verification document url.","uniqueKey":"individual.documents.addressVerificationUrl","typeLabel":"string"}},"uniqueKey":"individual.documents","typeLabel":"object"}},"uniqueKey":"individual","typeLabel":"object"},"company":{"type":"object","description":"Company details. Required if customer type is `company`.","required":["name"],"properties":{"name":{"type":"string","description":"Company name.","isRequired":true,"uniqueKey":"company.name","typeLabel":"string"},"identity":{"type":"object","description":"Company identity details.","required":["type","number"],"properties":{"type":{"type":"string","description":"Identity type.","enum":["BVN","NIN","CAC","TIN","PASSPORT","VC","DL","RC"],"isRequired":true,"uniqueKey":"company.identity.type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","description":"Identity number issued by the regulator.","isRequired":true,"uniqueKey":"company.identity.number","typeLabel":"string"}},"uniqueKey":"company.identity","typeLabel":"object"},"officer":{"type":"object","description":"Company officer information.","required":["firstName","lastName","dob"],"properties":{"firstName":{"type":"string","description":"Customer's first name, 2 to 20 characters (spaces at either end are not counted).","isRequired":true,"uniqueKey":"company.officer.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Customer's last name, 2 to 20 characters (spaces at either end are not counted).","isRequired":true,"uniqueKey":"company.officer.lastName","typeLabel":"string"},"dob":{"type":"string","description":"Date of birth in the format `YYYY-MM-DD` (`YYYY/MM/DD` is also accepted). Must be a real date and not in the future. Required for USD cards.","isRequired":true,"uniqueKey":"company.officer.dob","typeLabel":"string"},"otherNames":{"type":"string","description":"Customer's other names.","uniqueKey":"company.officer.otherNames","typeLabel":"string"},"identity":{"type":"object","description":"Customer's identity data.","required":["type","number"],"properties":{"type":{"type":"string","description":"Identity type. USD cards accept `BVN`, `NIN`, `PASSPORT`, `DL` (driver's licence), `VC` (voter's card) and `RC` (resident card). A company can instead use its `CAC` number on `company.identity`. `TIN` can't be used for USD cards.","enum":["BVN","NIN","CAC","TIN","PASSPORT","VC","DL","RC"],"isRequired":true,"uniqueKey":"company.officer.identity.type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","description":"Identity number issued by the regulator. A `BVN` must be 11 digits, a Nigerian `NIN` 11 digits, and a `PASSPORT` number 6 to 9 letters or digits.","isRequired":true,"uniqueKey":"company.officer.identity.number","typeLabel":"string"}},"uniqueKey":"company.officer.identity","typeLabel":"object"},"documents":{"type":"object","description":"Customer's KYC documents.","properties":{"idFrontUrl":{"type":"string","description":"Public https link to the front of the ID document: a JPEG, PNG or WebP image of up to 10 MB. The link must point straight to the file (no redirects) and stay accessible: it is checked when saved and downloaded again when a USD card is created. Upload with [Generate Customer Document Url](/reference/generate-customer-document-url) or use your own storage.","uniqueKey":"company.officer.documents.idFrontUrl","typeLabel":"string"},"idBackUrl":{"type":"string","description":"Public https link to the back of the ID document: a JPEG, PNG or WebP image of up to 10 MB, checked when saved.","uniqueKey":"company.officer.documents.idBackUrl","typeLabel":"string"},"incorporationCertificateUrl":{"type":"string","description":"Public https link to an image of the company's CAC (incorporation) certificate. Needed for a USD card when the company uses its `CAC` number: a JPEG, PNG or WebP image of up to 10 MB that stays reachable, since it is downloaded when the card is created.","uniqueKey":"company.officer.documents.incorporationCertificateUrl","typeLabel":"string"},"addressVerificationUrl":{"type":"string","description":"Customer address verification document url.","uniqueKey":"company.officer.documents.addressVerificationUrl","typeLabel":"string"}},"uniqueKey":"company.officer.documents","typeLabel":"object"}},"uniqueKey":"company.officer","typeLabel":"object"},"documents":{"type":"object","description":"Customer's KYC documents.","properties":{"idFrontUrl":{"type":"string","description":"ID Card front page url.","uniqueKey":"company.documents.idFrontUrl","typeLabel":"string"},"idBackUrl":{"type":"string","description":"ID Card back page url.","uniqueKey":"company.documents.idBackUrl","typeLabel":"string"},"incorporationCertificateUrl":{"type":"string","description":"Public https link to an image of the company's CAC (incorporation) certificate. Needed for a USD card when the company uses its `CAC` number: a JPEG, PNG or WebP image of up to 10 MB that stays reachable, since it is downloaded when the card is created.","uniqueKey":"company.documents.incorporationCertificateUrl","typeLabel":"string"},"addressVerificationUrl":{"type":"string","description":"Customer address verification document url.","uniqueKey":"company.documents.addressVerificationUrl","typeLabel":"string"}},"uniqueKey":"company.documents","typeLabel":"object"}},"uniqueKey":"company","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"individual","name":"Jane Smith","phoneNumber":"+2348012345678","status":"active","billingAddress":{"line1":"42 Corporate Tower, Marina","city":"Lagos","state":"Lagos","postalCode":"100221","country":"Nigeria","line2":"Floor 8"},"emailAddress":"jane.smith@example.com","individual":{"firstName":"Jane","lastName":"Smith","otherNames":"Maria","dob":"1985-05-15","identity":{"type":"PASSPORT","number":"A12345678"},"documents":{"idFrontUrl":"https://your-bucket.s3.amazonaws.com/\u003cbusinessId>/customers/\u003ccustomerId>/passport-front.jpg","idBackUrl":"https://your-bucket.s3.amazonaws.com/\u003cbusinessId>/customers/\u003ccustomerId>/passport-back.jpg"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"71899752-6bfe-4edc-b516-7398f3a958ae":{"description":"Customer created successfully.","headers":{"X-Powered-By":{"schema":{"type":"string"},"example":"Express"},"Access-Control-Allow-Origin":{"schema":{"type":"string"},"example":"*"},"X-RateLimit-Limit":{"schema":{"type":"integer"},"example":"250000"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"example":"249999"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"example":"0"},"Content-Type":{"schema":{"type":"string"},"example":"application/json; charset=utf-8"},"ETag":{"schema":{"type":"string"},"example":"W/\"2dd-sfRBgLV2BqnKnzwqFCi2UGdBgUQ\""},"Connection":{"schema":{"type":"string"},"example":"keep-alive"},"Keep-Alive":{"schema":{"type":"string"},"example":"timeout=5"}},"content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","description":"HTTP status code returned by the API.","uniqueKey":"statusCode","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable description of the result.","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","description":"Response payload.","properties":{"_id":{"type":"string","description":"Unique identifier of the object.","uniqueKey":"data._id","typeLabel":"string"},"business":{"type":"string","description":"Identifier of the business that owns this object.","uniqueKey":"data.business","typeLabel":"string"},"type":{"type":"string","description":"Type of the object.","uniqueKey":"data.type","typeLabel":"string"},"name":{"type":"string","description":"Display name.","uniqueKey":"data.name","typeLabel":"string"},"status":{"type":"string","description":"Current status of the object.","uniqueKey":"data.status","typeLabel":"string"},"isApproved":{"type":"boolean","description":"Whether the customer has passed KYC and is approved.","uniqueKey":"data.isApproved","typeLabel":"boolean"},"phoneNumber":{"type":"string","description":"Customer's phone number in international format.","uniqueKey":"data.phoneNumber","typeLabel":"string"},"emailAddress":{"type":"string","description":"Customer's email address.","uniqueKey":"data.emailAddress","typeLabel":"string"},"individual":{"type":"object","description":"Details for an individual customer.","properties":{"firstName":{"type":"string","description":"First name.","uniqueKey":"data.individual.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Last name.","uniqueKey":"data.individual.lastName","typeLabel":"string"},"otherNames":{"type":"string","description":"Other names, if any.","uniqueKey":"data.individual.otherNames","typeLabel":"string"},"dob":{"type":"string","description":"Date of birth (YYYY/MM/DD).","uniqueKey":"data.individual.dob","typeLabel":"string"},"identity":{"type":"object","description":"Customer's verified identity record.","properties":{"type":{"type":"string","description":"Type of the object.","uniqueKey":"data.individual.identity.type","typeLabel":"string"},"number":{"type":"string","description":"Identity / card number value.","uniqueKey":"data.individual.identity.number","typeLabel":"string"}},"uniqueKey":"data.individual.identity","typeLabel":"object"},"documents":{"type":"object","description":"Uploaded KYC document URLs.","properties":{"idFrontUrl":{"type":"string","description":"URL of the front of the customer's ID document.","uniqueKey":"data.individual.documents.idFrontUrl","typeLabel":"string"},"idBackUrl":{"type":"string","description":"URL of the back of the customer's ID document.","uniqueKey":"data.individual.documents.idBackUrl","typeLabel":"string"},"addressVerificationUrl":{"type":"string","description":"URL of the customer's address verification document.","uniqueKey":"data.individual.documents.addressVerificationUrl","typeLabel":"string"}},"uniqueKey":"data.individual.documents","typeLabel":"object"}},"uniqueKey":"data.individual","typeLabel":"object"},"billingAddress":{"type":"object","description":"Customer's billing address.","properties":{"line1":{"type":"string","description":"Address line 1.","uniqueKey":"data.billingAddress.line1","typeLabel":"string"},"line2":{"type":"string","description":"Address line 2.","uniqueKey":"data.billingAddress.line2","typeLabel":"string"},"city":{"type":"string","description":"City.","uniqueKey":"data.billingAddress.city","typeLabel":"string"},"state":{"type":"string","description":"State / region.","uniqueKey":"data.billingAddress.state","typeLabel":"string"},"postalCode":{"type":"string","description":"Postal / ZIP code.","uniqueKey":"data.billingAddress.postalCode","typeLabel":"string"},"country":{"type":"string","description":"Country.","uniqueKey":"data.billingAddress.country","typeLabel":"string"}},"uniqueKey":"data.billingAddress","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the object was created.","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the object was last updated.","uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"},"__v":{"type":"integer","description":"Internal document version (Mongo).","uniqueKey":"data.__v","typeLabel":"integer"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":200,"message":"Customer created successfully.","data":{"_id":"64a1b2c3d4e5f6a7b8c9d0e1","business":"63f0a1b2c3d4e5f6a7b8c9d0","type":"individual","name":"John Doe","status":"active","isApproved":true,"phoneNumber":"+2348000000000","emailAddress":"johndoe@example.com","individual":{"firstName":"John","lastName":"Doe","otherNames":"","dob":"1990-01-01","identity":{"type":"BVN","number":"22212345678"},"documents":{"idFrontUrl":"https://sudo-documents.s3.amazonaws.com/customers/64a1b2c3d4e5f6a7b8c9d0e1/id-front.png","idBackUrl":"https://sudo-documents.s3.amazonaws.com/customers/64a1b2c3d4e5f6a7b8c9d0e1/id-back.png","addressVerificationUrl":"https://sudo-documents.s3.amazonaws.com/customers/64a1b2c3d4e5f6a7b8c9d0e1/utility-bill.pdf"}},"billingAddress":{"line1":"4 Barnawa Close","line2":"Off Challawa Crescent","city":"Barnawa","state":"Kaduna","postalCode":"800243","country":"Nigeria"},"createdAt":"2024-09-06T12:34:56.789Z","updatedAt":"2024-09-06T12:34:56.789Z","__v":0}},"examples":{"Example":{"title":"Example","value":{"statusCode":200,"message":"Customer created successfully.","data":{"_id":"64a1b2c3d4e5f6a7b8c9d0e1","business":"63f0a1b2c3d4e5f6a7b8c9d0","type":"individual","name":"John Doe","status":"active","isApproved":true,"phoneNumber":"+2348000000000","emailAddress":"johndoe@example.com","individual":{"firstName":"John","lastName":"Doe","otherNames":"","dob":"1990-01-01","identity":{"type":"BVN","number":"22212345678"},"documents":{"idFrontUrl":"https://sudo-documents.s3.amazonaws.com/customers/64a1b2c3d4e5f6a7b8c9d0e1/id-front.png","idBackUrl":"https://sudo-documents.s3.amazonaws.com/customers/64a1b2c3d4e5f6a7b8c9d0e1/id-back.png","addressVerificationUrl":"https://sudo-documents.s3.amazonaws.com/customers/64a1b2c3d4e5f6a7b8c9d0e1/utility-bill.pdf"}},"billingAddress":{"line1":"4 Barnawa Close","line2":"Off Challawa Crescent","city":"Barnawa","state":"Kaduna","postalCode":"800243","country":"Nigeria"},"createdAt":"2024-09-06T12:34:56.789Z","updatedAt":"2024-09-06T12:34:56.789Z","__v":0}}}},"exampleType":"examples"}},"exampleType":"examples"},"2d6452ba-cdc8-4870-b7ed-77143317dba4":{"description":"Validation error — a required field is missing or invalid.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code for the failed request.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"null","description":"No response payload is returned for an error.","uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":400,"message":"\"individual.dob\" is required","data":null},"examples":{"Example":{"title":"Example","value":{"statusCode":400,"message":"\"individual.dob\" is required","data":null}}},"exampleType":"examples"}},"exampleType":"examples"},"f360f8f2-54f1-42ef-97a5-da8ea39eeccd":{"description":"Authentication failed — missing or invalid API key.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code for the failed request.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"null","description":"No response payload is returned for an error.","uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":401,"message":"Unauthorized. Provide a valid API key in the Authorization header.","data":null},"examples":{"Example":{"title":"Example","value":{"statusCode":401,"message":"Unauthorized. Provide a valid API key in the Authorization header.","data":null}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"382c7c40-6f98-4695-a479-e95030640a06":{"sec0":{"type":"apiKey","in":"header","name":"Authorization","x-bearer-format":"bearer","x-default":"{{APIKey}}","scopes":[],"schemeName":"sec0"}}},"servers":{"cf545e2d-d094-497e-b3d3-01d65265413d":{"url":"https://api.sandbox.sudo.cards","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","x-bearer-format":"bearer","x-default":"{{APIKey}}","scopes":[],"schemeName":"sec0"},"schema":{"title":"Authorization","type":"string","isRequired":true,"default":"{{APIKey}}","typeLabel":"string","deprecated":false},"schemeName":"sec0","name":"Authorization"}],"title":"sec0"}]},"originalFileLocation":"openapi.json"},"subdomain":"sudoafricainc","siteName":"Sudo Developer Documentation","title":"Create Customer - Sudo Developer Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-25T20:39:41.708Z","originalFileLocation":"reference/create-customer.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new customer.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sudo Developer Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Customer - Sudo Developer Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new customer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sudo Developer Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sudo.africa/reference/create-customer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sudoafricainc.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+Customer\u0026amp;description=Creates+a+new+customer.\u0026amp;theme=41b0407a45f05dc9293b858a\u0026amp;signature=ed4128bb5cc7e1d4a43ddabe9f1618e712103d987e1f29bcfa130ade713d558d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Customer - Sudo Developer Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new customer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sudoafricainc.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+Customer\u0026amp;description=Creates+a+new+customer.\u0026amp;theme=41b0407a45f05dc9293b858a\u0026amp;signature=ed4128bb5cc7e1d4a43ddabe9f1618e712103d987e1f29bcfa130ade713d558d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sudoafricainc/oq71R5vBAPrTjBZS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sudo Developer Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sudo.africa/reference/create-customer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/create-customer.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sudo.africa/#organization\",\"name\":\"Sudo Developer Documentation\",\"url\":\"https://docs.sudo.africa\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sudoafricainc/0rYEZ-verRngCGW6/images/333e137-small-sudo-black.png?fit=max\u0026auto=format\u0026n=0rYEZ-verRngCGW6\u0026q=85\u0026s=f1abf960ebbfc77f55d8421c9fdbfe16\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sudo.africa#website\",\"name\":\"Sudo Developer Documentation\",\"url\":\"https://docs.sudo.africa\",\"publisher\":{\"@id\":\"https://docs.sudo.africa/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sudo.africa/reference/create-customer#webpage\",\"url\":\"https://docs.sudo.africa/reference/create-customer\",\"name\":\"Create Customer\",\"description\":\"Creates a new customer.\",\"dateModified\":\"2025-09-25T20:39:41.708Z\",\"isPartOf\":{\"@id\":\"https://docs.sudo.africa#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sudo.africa/reference/create-customer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sudo.africa/reference/create-customer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://docs.sudo.africa/reference/customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Customer\",\"item\":\"https://docs.sudo.africa/reference/create-customer\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sudo.africa/reference/create-customer#apireference\",\"headline\":\"Create Customer\",\"name\":\"Create Customer\",\"description\":\"Creates a new customer.\",\"url\":\"https://docs.sudo.africa/reference/create-customer\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sudo.africa/reference/create-customer#webpage\"},\"dateModified\":\"2025-09-25T20:39:41.708Z\",\"publisher\":{\"@id\":\"https://docs.sudo.africa/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sudo.africa#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sudo Developer Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Sudo Developer Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/docs/getting-started"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/reference/introduction"}]},{"group":"Customers","pages":[{"title":"Overview","description":"Use the Customers API to manage cardholders and their KYC details.","href":"/reference/customers"},{"openapi":"openapi.json post /customers","title":"Create Customer","href":"/reference/create-customer"},{"openapi":"openapi.json get /customers","title":"Get Customers","description":"Fetches existing customer objects according to query parameters.","href":"/reference/get-customers"},{"openapi":"openapi.json get /customers/{id}","title":"Get Customer","href":"/reference/get-customer"},{"openapi":"openapi.json put /customers/{id}","title":"Update Customer","href":"/reference/update-customer"},{"openapi":"openapi.json put /customers/{id}/documents/url","title":"Generate Customer Document URL","href":"/reference/generate-customer-document-url"}]},{"group":"Funding Sources","pages":[{"title":"Overview","href":"/reference/funding-sources"},{"openapi":"openapi.json post /fundingsources","title":"Create Funding Source","href":"/reference/create-funding-source"},{"openapi":"openapi.json get /fundingsources","title":"Get Funding Sources","href":"/reference/get-funding-sources"},{"openapi":"openapi.json get /fundingsources/{id}","title":"Get Funding Source","href":"/reference/get-funding-source"},{"openapi":"openapi.json put /fundingsources/{id}","title":"Update Funding Source","href":"/reference/update-funding-source"}]},{"group":"Card Programs","pages":[{"title":"Overview","href":"/reference/card-programs"},{"openapi":"openapi.json post /card-programs","title":"Create Card Program","href":"/reference/create-card-program"},{"openapi":"openapi.json get /card-programs","title":"Get Card Programs","href":"/reference/get-card-programs"},{"openapi":"openapi.json get /card-programs/{id}","title":"Get a Card Program","href":"/reference/get-card-program"},{"openapi":"openapi.json get /card-programs/{id}/cards","title":"Get Cards By a Program","href":"/reference/get-card-program-cards"},{"openapi":"openapi.json patch /card-programs/{id}","title":"Update a Card Program","href":"/reference/update-card-program"}]},{"group":"Cards","pages":[{"title":"Overview","href":"/reference/cards"},{"openapi":"openapi.json post /cards","title":"Create Card","href":"/reference/create-card"},{"openapi":"openapi.json get /cards","title":"Get Cards","href":"/reference/get-cards"},{"openapi":"openapi.json get /cards/customer/{id}","title":"Get Customer Cards","href":"/reference/get-customer-cards"},{"openapi":"openapi.json get /cards/{id}","title":"Get Card","href":"/reference/get-card"},{"openapi":"openapi.json get /cards/{id}/balance","title":"Get Card Balance","href":"/reference/get-card-balance"},{"openapi":"openapi.json put /cards/{id}/send-pin","title":"Send Default Card PIN","href":"/reference/send-default-card-pin"},{"openapi":"openapi.json put /cards/{id}/pin","title":"Change Card PIN","href":"/reference/change-card-pin"},{"openapi":"openapi.json put /cards/{id}/enroll2fa","title":"Enroll Card for 2FA","href":"/reference/enroll-card-for-2fa"},{"openapi":"openapi.json put /cards/{id}","title":"Update Card","href":"/reference/update-card"},{"openapi":"openapi.json get /cards/{id}/token","title":"Generate Card Token","href":"/reference/generate-card-token"},{"openapi":"openapi.json put /cards/digitalize/{id}","title":"Digitalize Card","href":"/reference/card-digitalization"},{"openapi":"openapi.json post /cards/order","title":"Order Cards","href":"/reference/order-cards"}]},{"group":"Accounts","pages":[{"title":"Overview","href":"/reference/accounts"},{"openapi":"openapi.json post /accounts","title":"Create Account","href":"/reference/create-account"},{"openapi":"openapi.json get /accounts","title":"Get Accounts","href":"/reference/get-accounts"},{"openapi":"openapi.json get /accounts/{id}","title":"Get Account","href":"/reference/get-account"},{"openapi":"openapi.json get /accounts/{id}/balance","title":"Get Account Balance","href":"/reference/get-account-balance"},{"openapi":"openapi.json get /accounts/{id}/transactions","title":"Get Account Transactions","href":"/reference/get-account-transactions"},{"openapi":"openapi.json post /accounts/transfer","title":"Fund Transfer","href":"/reference/fund-transfer"},{"openapi":"openapi.json get /accounts/transfer/rate/{currencyPair}","title":"Transfer Rate","href":"/reference/transfer-rate"}]},{"group":"Authorizations","pages":[{"title":"Overview","href":"/reference/authorizations"},{"openapi":"openapi.json get /cards/authorizations","title":"Get Authorizations","href":"/reference/get-authorizations"},{"openapi":"openapi.json get /cards/{id}/authorizations","title":"Get Card Authorizations","href":"/reference/get-card-authorizations"},{"openapi":"openapi.json get /cards/authorizations/{id}","title":"Get Authorization","href":"/reference/get-authorization"},{"openapi":"openapi.json put /cards/authorizations/{id}","title":"Update Authorization","href":"/reference/update-authorization"}]},{"group":"Transactions","pages":[{"title":"Overview","href":"/reference/transactions"},{"openapi":"openapi.json get /cards/transactions","title":"Get Transactions","href":"/reference/get-transactions"},{"openapi":"openapi.json get /cards/{id}/transactions","title":"Get Card Transactions","href":"/reference/get-card-transactions"},{"openapi":"openapi.json get /cards/transactions/{id}","title":"Get Transaction","href":"/reference/get-transaction"},{"openapi":"openapi.json put /cards/transactions/{id}","title":"Update Transaction","href":"/reference/update-transaction"}]},{"group":"Disputes","pages":[{"title":"Overview","href":"/reference/disputes"},{"openapi":"openapi.json post /cards/disputes","title":"Create Dispute","href":"/reference/create-dispute"},{"openapi":"openapi.json get /cards/disputes","title":"Get Disputes","href":"/reference/get-disputes"},{"openapi":"openapi.json get /cards/disputes/{id}","title":"Get Dispute","href":"/reference/get-dispute"},{"openapi":"openapi.json put /cards/disputes/{id}","title":"Update Dispute","href":"/reference/update-dispute"}]},{"group":"Simulator (Sandbox Only)","pages":[{"title":"Overview","href":"/reference/simulators"},{"openapi":"openapi.json post /accounts/simulator/fund","title":"Fund Account","href":"/reference/fund-account"},{"openapi":"openapi.json get /cards/simulator/generate","title":"Generate Test Physical Card","href":"/reference/generate-test-card"},{"openapi":"openapi.json post /cards/simulator/balance_enqiry","title":"Balance Enquiry","href":"/reference/balance-enquiry"},{"openapi":"openapi.json post /cards/simulator/authorization","title":"Simulate Authorization","href":"/reference/simulate-authorization"},{"openapi":"openapi.json get /cards/simulator/authorization/{id}/reversal","title":"Simulate Authorization Reversal","href":"/reference/simulate-authorization-reversal"}]}]}]},"basePath":"","title":"Create Customer - Sudo Developer Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}