{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Busha Developer Documentation","colors":{"primary":"#12A232","light":"#12A232","dark":"#12A232"},"logo":{"light":"https://mintcdn.com/busha-36f167ef/bqGQAc9YwZBzW1ju/logo/light.svg?fit=max\u0026auto=format\u0026n=bqGQAc9YwZBzW1ju\u0026q=85\u0026s=08cf983a0716b1e5e0ccf2eabf9408a5","dark":"https://mintcdn.com/busha-36f167ef/bqGQAc9YwZBzW1ju/logo/dark.svg?fit=max\u0026auto=format\u0026n=bqGQAc9YwZBzW1ju\u0026q=85\u0026s=209a532c93e641a4ad79e0d7ef0ebbe3"},"favicon":"https://mintcdn.com/busha-36f167ef/bqGQAc9YwZBzW1ju/images/svg/favicon.svg?fit=max\u0026auto=format\u0026n=bqGQAc9YwZBzW1ju\u0026q=85\u0026s=3d0baa4107dcc1b7208265c241435f89","navbar":{"links":[{"href":"mailto:developers@busha.co","label":"Support"}],"primary":{"type":"button","label":"Visit Busha","href":"https://busha.io"}},"footer":{"socials":{"x":"https://twitter.com/getbusha","github":"https://github.com/bushaHQ","linkedin":"https://linkedin.com/company/getbusha"}},"seo":{"metatags":{"og:description":"Busha API documentation for developers. Integrate crypto trading, wallets, and payments into your app with our comprehensive guides and API references.","description":"Busha API documentation for developers. Integrate crypto trading, wallets, and payments into your app with our comprehensive guides and API references.","og:title":"Busha Developer Documentation","og:site_name":"Busha Developer Documentation","og:image":"/images/meta-image.png"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Guides","icon":"book-open-cover","href":"https://docs.busha.io/guides"},{"anchor":"Blog","icon":"newspaper","href":"https://busha.io/blog"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://docs.busha.io/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"busha-36f167ef","hasAudioNarration":false,"actualSubdomain":"busha-36f167ef","customDomains":["docs.busha.io"],"gitSource":{"type":"github","owner":"bushahq","repo":"developers","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf63bed9cce1ec7365aa4c","collectionId":"d9702e48-9fe5-4a2a-bdbc-490fe3092d07","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf63bed9cce1ec7365aa4c"},"entitlements":{},"buildId":"6adf63bed9cce1ec7365aa4c","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"API reference","count":68},{"language":"default","tag":"Guides","count":51},{"language":"default","tag":"Examples","count":20},{"language":"default","tag":"Pledges","count":11},{"language":"default","tag":"Reference","count":10},{"language":"default","tag":"Overview","count":10},{"language":"default","tag":"Customers","count":10},{"language":"default","tag":"Miscellaneous","count":9},{"language":"default","tag":"OAuth2","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/customers/create-a-new-customer","slug":"/api-reference/customers/create-a-new-customer","pageMetadata":{"title":"Create a new customer","description":"Creates a new customer entry in the system. The required fields depend on the `type` of customer being created ('individual' or 'business').","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/customers","href":"/api-reference/customers/create-a-new-customer","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a new customer entry in the system. The required fields depend on the \", _jsx(_components.code, {\n children: \"type\"\n }), \" of customer being created (‘individual’ or ‘business’).\"]\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":{"title":"Create a new customer","description":"Creates a new customer entry in the system. The required fields depend on the `type` of customer being created ('individual' or 'business').","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/customers","href":"/api-reference/customers/create-a-new-customer","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"x-rate-limit":20,"x-internal":false,"security":["aec50138-02a6-4846-846e-b728346dcc43"],"summary":"Create a new customer","description":"Creates a new customer entry in the system. The required fields depend on the `type` of customer being created ('individual' or 'business').","operationId":"createCustomer","tags":["Customers"],"parameters":["05985426-bba9-417a-bb2d-ae9cbfac4cdf"],"requestBody":"fbde716e-4e65-459c-897c-761c4a17abfd","responses":{"201":"3665751a-3228-46b8-b0f8-420a735c1b0f","4XX":"806db3a0-8642-4fc6-bbbf-493425426270","5XX":"e72a0ac7-4395-4092-b1ce-4edd30888caf"},"method":"post","type":"path","servers":["da7e1349-896d-4d44-bf50-5095dca769ae","0117cc31-430c-47bd-9d4e-ad2e7f6fba80"],"path":"/v1/customers","baseUrlOptions":["https://api.sandbox.busha.so","https://api.busha.io"],"title":"Create a new customer","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"05985426-bba9-417a-bb2d-ae9cbfac4cdf":{"in":"header","name":"X-BU-PROFILE-ID","required":false,"description":"User profile header","schema":{"type":"string","example":"BUS_YOK8tp5Zga01qOKEsqp07","isRequired":false,"description":"User profile header","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"description":"Customer details needed to create a new customer.","required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Individual name requirements","required":["first_name","last_name","email","has_accepted_terms","country_id","phone","address","birth_date","type"],"x-order":2,"properties":{"email":{"type":"string","example":"bCnW7@example.com","format":"email","description":"A valid email address","x-oapi-codegen-extra-tags":{"validate":"required|email|check_temp_email","filter":"trim|lower"},"x-go-type":"string","isRequired":true,"uniqueKey":"oneOf.0.email","typeLabel":"string\u003cemail>"},"has_accepted_terms":{"type":"boolean","description":"Indicates whether the customer has explicitly accepted the terms and conditions","isRequired":true,"uniqueKey":"oneOf.0.has_accepted_terms","typeLabel":"boolean"},"type":{"type":"string","enum":["individual","business"],"isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"oneOf.0.country_id","typeLabel":"string\u003calpha2>"},"phone":{"type":"string","example":"+2348012345678","format":"phone","description":"A valid phone number. format `{{calling_code}}{{number}}`","x-oapi-codegen-extra-tags":{"validate":"phone","filter":"phone","mapstructure":"phone_number,omitempty"},"isRequired":true,"uniqueKey":"oneOf.0.phone","typeLabel":"string\u003cphone>"},"birth_date":{"type":"string","example":"24-12-2000","description":"date of birth of the user","isRequired":true,"uniqueKey":"oneOf.0.birth_date","typeLabel":"string"},"address":{"type":"object","description":"Address of the business.","required":["address_line_1","country_id"],"properties":{"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","x-oapi-codegen-extra-tags":{"validate":"alpha2","mapstructure":"country_id"},"isRequired":true,"uniqueKey":"oneOf.0.address.country_id","typeLabel":"string\u003calpha2>"},"address_line_1":{"type":"string","example":"RT Lawal","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_1"},"isRequired":true,"uniqueKey":"oneOf.0.address.address_line_1","typeLabel":"string"},"city":{"type":"string","example":"Lekki","x-oapi-codegen-extra-tags":{"mapstructure":"city"},"uniqueKey":"oneOf.0.address.city","typeLabel":"string"},"state":{"type":"string","example":"Lagos","x-oapi-codegen-extra-tags":{"mapstructure":"state"},"uniqueKey":"oneOf.0.address.state","typeLabel":"string"},"county":{"type":"string","example":"Mombasa","x-oapi-codegen-extra-tags":{"mapstructure":"county"},"uniqueKey":"oneOf.0.address.county","typeLabel":"string"},"address_line_2":{"type":"string","example":"","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_2"},"uniqueKey":"oneOf.0.address.address_line_2","typeLabel":"string"},"province":{"type":"string","example":"province","x-oapi-codegen-extra-tags":{"mapstructure":"province"},"uniqueKey":"oneOf.0.address.province","typeLabel":"string"},"postal_code":{"type":"string","example":"12345","x-oapi-codegen-extra-tags":{"mapstructure":"postal_code"},"uniqueKey":"oneOf.0.address.postal_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.address","typeLabel":"object"},"first_name":{"type":"string","example":"John","description":"A valid name","isRequired":true,"uniqueKey":"oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","example":"John","description":"A valid name","isRequired":true,"uniqueKey":"oneOf.0.last_name","typeLabel":"string"},"identifying_information":{"type":"array","description":"List of identification documents provided by the customer","minItems":0,"maxItems":5,"items":{"type":"object","required":["type","number","country"],"description":"Contains identification document details and related images for customer verification","properties":{"type":{"type":"string","enum":["passport","national-id","drivers-license","selfie_video","selfie","bvn"],"description":"The category of identification document provided by the customer","isRequired":true,"uniqueKey":"oneOf.0.identifying_information.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","maxLength":50,"description":"The unique identifier or serial number on the identification document","isRequired":true,"uniqueKey":"oneOf.0.identifying_information.items.[INDEX].number","typeLabel":"string"},"country":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"oneOf.0.identifying_information.items.[INDEX].country","typeLabel":"string\u003calpha2>"},"expiry_date":{"type":"string","format":"date","description":"The date when the identification document becomes invalid or expires","uniqueKey":"oneOf.0.identifying_information.items.[INDEX].expiry_date","typeLabel":"string\u003cdate>"},"image_front":{"type":"string","format":"base64","description":"URL or Base64 encoded image of the front side of the identification document. The maximum file size is 4MB.","uniqueKey":"oneOf.0.identifying_information.items.[INDEX].image_front","typeLabel":"file"},"image_back":{"type":"string","format":"base64","description":"URL or Base64 encoded image of the reverse side of the identification document. The maximum file size is 4MB.","uniqueKey":"oneOf.0.identifying_information.items.[INDEX].image_back","typeLabel":"file"}},"uniqueKey":"oneOf.0.identifying_information.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.identifying_information","typeLabel":"object[]"},"documents":{"type":"array","description":"Additional supporting documents provided by the customer","minItems":0,"maxItems":10,"uniqueItems":true,"items":{"type":"object","required":["purposes","file"],"properties":{"purposes":{"type":"array","items":{"type":"string","enum":["certificate_of_incorporation","corporate_registry_extract","memart","corporate_structure_chart","board_resolution","aml_policy","regulatory_licenses","proof_of_funds","proof_of_wealth","proof_of_address","selfie_video","selfie","others"],"uniqueKey":"oneOf.0.documents.items.[INDEX].purposes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Purposes for which the document is being submitted","isRequired":true,"uniqueKey":"oneOf.0.documents.items.[INDEX].purposes","typeLabel":"enum\u003cstring>[]"},"file":{"type":"string","description":"URL or Document file content in base64 format. The maximum file size is 4MB.","isRequired":true,"uniqueKey":"oneOf.0.documents.items.[INDEX].file","typeLabel":"string"}},"uniqueKey":"oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.documents","typeLabel":"object[]"},"middle_name":{"oneOf":[{"type":"string","description":"A field representing a name that can be null or absent.","example":"Smith","uniqueKey":"oneOf.0.middle_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"A field representing a name that can be null or absent.","example":"Smith","uniqueKey":"oneOf.0.middle_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.middle_name","typeLabel":"string | null"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Business name requirements","required":["business_name","business_industry","business_incorporation_date","email","has_accepted_terms","country_id","phone","address","birth_date","type"],"x-order":2,"properties":{"email":{"type":"string","example":"bCnW7@example.com","format":"email","description":"A valid email address","x-oapi-codegen-extra-tags":{"validate":"required|email|check_temp_email","filter":"trim|lower"},"x-go-type":"string","isRequired":true,"uniqueKey":"oneOf.1.email","typeLabel":"string\u003cemail>"},"has_accepted_terms":{"type":"boolean","description":"Indicates whether the customer has explicitly accepted the terms and conditions","isRequired":true,"uniqueKey":"oneOf.1.has_accepted_terms","typeLabel":"boolean"},"type":{"type":"string","enum":["individual","business"],"isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"oneOf.1.country_id","typeLabel":"string\u003calpha2>"},"phone":{"type":"string","example":"+2348012345678","format":"phone","description":"A valid phone number. format `{{calling_code}}{{number}}`","x-oapi-codegen-extra-tags":{"validate":"phone","filter":"phone","mapstructure":"phone_number,omitempty"},"isRequired":true,"uniqueKey":"oneOf.1.phone","typeLabel":"string\u003cphone>"},"birth_date":{"type":"string","example":"24-12-2000","description":"date of birth of the user","isRequired":true,"uniqueKey":"oneOf.1.birth_date","typeLabel":"string"},"address":{"type":"object","description":"Address of the business.","required":["address_line_1","country_id"],"properties":{"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","x-oapi-codegen-extra-tags":{"validate":"alpha2","mapstructure":"country_id"},"isRequired":true,"uniqueKey":"oneOf.1.address.country_id","typeLabel":"string\u003calpha2>"},"address_line_1":{"type":"string","example":"RT Lawal","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_1"},"isRequired":true,"uniqueKey":"oneOf.1.address.address_line_1","typeLabel":"string"},"city":{"type":"string","example":"Lekki","x-oapi-codegen-extra-tags":{"mapstructure":"city"},"uniqueKey":"oneOf.1.address.city","typeLabel":"string"},"state":{"type":"string","example":"Lagos","x-oapi-codegen-extra-tags":{"mapstructure":"state"},"uniqueKey":"oneOf.1.address.state","typeLabel":"string"},"county":{"type":"string","example":"Mombasa","x-oapi-codegen-extra-tags":{"mapstructure":"county"},"uniqueKey":"oneOf.1.address.county","typeLabel":"string"},"address_line_2":{"type":"string","example":"","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_2"},"uniqueKey":"oneOf.1.address.address_line_2","typeLabel":"string"},"province":{"type":"string","example":"province","x-oapi-codegen-extra-tags":{"mapstructure":"province"},"uniqueKey":"oneOf.1.address.province","typeLabel":"string"},"postal_code":{"type":"string","example":"12345","x-oapi-codegen-extra-tags":{"mapstructure":"postal_code"},"uniqueKey":"oneOf.1.address.postal_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.address","typeLabel":"object"},"business_name":{"type":"string","description":"Name of the business","maxLength":100,"x-oapi-codegen-extra-tags":{"validate":"required|maxlen:100","filter":"trim|lower|ucFirst"},"isRequired":true,"uniqueKey":"oneOf.1.business_name","typeLabel":"string"},"business_industry":{"type":"string","minLength":16,"maxLength":24,"description":"ID Industry or sector the business operates in","isRequired":true,"uniqueKey":"oneOf.1.business_industry","typeLabel":"string"},"business_incorporation_date":{"type":"string","format":"date","description":"Business incorporation date","isRequired":true,"uniqueKey":"oneOf.1.business_incorporation_date","typeLabel":"string\u003cdate>"},"identifying_information":{"type":"array","description":"List of identification documents provided by the customer","minItems":0,"maxItems":5,"items":{"type":"object","required":["type","number","country"],"description":"Contains identification document details and related images for customer verification","properties":{"type":{"type":"string","enum":["passport","national-id","drivers-license","selfie_video","selfie","bvn"],"description":"The category of identification document provided by the customer","isRequired":true,"uniqueKey":"oneOf.1.identifying_information.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","maxLength":50,"description":"The unique identifier or serial number on the identification document","isRequired":true,"uniqueKey":"oneOf.1.identifying_information.items.[INDEX].number","typeLabel":"string"},"country":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"oneOf.1.identifying_information.items.[INDEX].country","typeLabel":"string\u003calpha2>"},"expiry_date":{"type":"string","format":"date","description":"The date when the identification document becomes invalid or expires","uniqueKey":"oneOf.1.identifying_information.items.[INDEX].expiry_date","typeLabel":"string\u003cdate>"},"image_front":{"type":"string","format":"base64","description":"URL or Base64 encoded image of the front side of the identification document. The maximum file size is 4MB.","uniqueKey":"oneOf.1.identifying_information.items.[INDEX].image_front","typeLabel":"file"},"image_back":{"type":"string","format":"base64","description":"URL or Base64 encoded image of the reverse side of the identification document. The maximum file size is 4MB.","uniqueKey":"oneOf.1.identifying_information.items.[INDEX].image_back","typeLabel":"file"}},"uniqueKey":"oneOf.1.identifying_information.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.identifying_information","typeLabel":"object[]"},"documents":{"type":"array","description":"Additional supporting documents provided by the customer","minItems":0,"maxItems":10,"uniqueItems":true,"items":{"type":"object","required":["purposes","file"],"properties":{"purposes":{"type":"array","items":{"type":"string","enum":["certificate_of_incorporation","corporate_registry_extract","memart","corporate_structure_chart","board_resolution","aml_policy","regulatory_licenses","proof_of_funds","proof_of_wealth","proof_of_address","selfie_video","selfie","others"],"uniqueKey":"oneOf.1.documents.items.[INDEX].purposes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Purposes for which the document is being submitted","isRequired":true,"uniqueKey":"oneOf.1.documents.items.[INDEX].purposes","typeLabel":"enum\u003cstring>[]"},"file":{"type":"string","description":"URL or Document file content in base64 format. The maximum file size is 4MB.","isRequired":true,"uniqueKey":"oneOf.1.documents.items.[INDEX].file","typeLabel":"string"}},"uniqueKey":"oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.documents","typeLabel":"object[]"},"business_owners":{"type":"array","items":{"type":"object","required":["first_name","last_name","role","nationality","percentage_ownership","is_pep"],"properties":{"first_name":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].first_name","typeLabel":"string"},"last_name":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].last_name","typeLabel":"string"},"role":{"type":"array","items":{"type":"string","enum":["director","owner","shareholder"],"uniqueKey":"oneOf.1.business_owners.items.[INDEX].role.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].role","typeLabel":"enum\u003cstring>[]"},"percentage_ownership":{"type":"number","minimum":0,"maximum":100,"x-go-type":"decimal.Decimal","x-go-type-import":{"path":"github.com/shopspring/decimal","name":"decimal"},"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].percentage_ownership","typeLabel":"number"},"is_pep":{"type":"boolean","default":false,"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].is_pep","typeLabel":"boolean"},"nationality":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].nationality","typeLabel":"string\u003calpha2>"},"pep_type":{"type":"string","uniqueKey":"oneOf.1.business_owners.items.[INDEX].pep_type","typeLabel":"string"},"address":{"type":"object","description":"Address of the business.","required":["address_line_1","country_id"],"properties":{"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","x-oapi-codegen-extra-tags":{"validate":"alpha2","mapstructure":"country_id"},"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.country_id","typeLabel":"string\u003calpha2>"},"address_line_1":{"type":"string","example":"RT Lawal","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_1"},"isRequired":true,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.address_line_1","typeLabel":"string"},"city":{"type":"string","example":"Lekki","x-oapi-codegen-extra-tags":{"mapstructure":"city"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.city","typeLabel":"string"},"state":{"type":"string","example":"Lagos","x-oapi-codegen-extra-tags":{"mapstructure":"state"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.state","typeLabel":"string"},"county":{"type":"string","example":"Mombasa","x-oapi-codegen-extra-tags":{"mapstructure":"county"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.county","typeLabel":"string"},"address_line_2":{"type":"string","example":"","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_2"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.address_line_2","typeLabel":"string"},"province":{"type":"string","example":"province","x-oapi-codegen-extra-tags":{"mapstructure":"province"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.province","typeLabel":"string"},"postal_code":{"type":"string","example":"12345","x-oapi-codegen-extra-tags":{"mapstructure":"postal_code"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address.postal_code","typeLabel":"string"}},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].address","typeLabel":"object"},"proof_of_address":{"type":"string","x-oapi-codegen-extra-tag":null,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].proof_of_address","typeLabel":"string"},"bvn":{"type":"string","description":"Bank Verification Number (BVN)","format":"number","example":"12345678901","minLength":11,"maxLength":11,"x-oapi-codegen-extra-tags":{"validate":"num|len:11"},"uniqueKey":"oneOf.1.business_owners.items.[INDEX].bvn","typeLabel":"string\u003cnumber>"},"proof_of_id":{"type":"string","x-oapi-codegen-extra-tag":null,"uniqueKey":"oneOf.1.business_owners.items.[INDEX].proof_of_id","typeLabel":"string"}},"uniqueKey":"oneOf.1.business_owners.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.business_owners","typeLabel":"object[]"},"business_transaction":{"type":"object","required":["purpose","monthly_transaction_value","monthly_transaction_count","client_transaction_status","api_access_needed"],"properties":{"purpose":{"type":"string","minLength":3,"maxLength":100,"description":"The purpose of the customer's transactions","isRequired":true,"uniqueKey":"oneOf.1.business_transaction.purpose","typeLabel":"string"},"monthly_transaction_value":{"type":"string","enum":["100_usd_or_less","100_usd_to_500_usd","500_usd_to_1m_usd","above_1m_usd"],"description":"Expected monthly value of transactions in USD","isRequired":true,"uniqueKey":"oneOf.1.business_transaction.monthly_transaction_value","typeLabel":"enum\u003cstring>"},"monthly_transaction_count":{"type":"string","enum":["10_or_less","10_to_50","50_to_100","100_to_200","above_200"],"description":"Expected number of transactions per month","isRequired":true,"uniqueKey":"oneOf.1.business_transaction.monthly_transaction_count","typeLabel":"enum\u003cstring>"},"client_transaction_status":{"type":"string","enum":["self-owned","on-behalf"],"description":"Whether transactions are self-owned or on behalf of clients","isRequired":true,"uniqueKey":"oneOf.1.business_transaction.client_transaction_status","typeLabel":"enum\u003cstring>"},"api_access_needed":{"type":"boolean","description":"Whether API access is required for transactions","isRequired":true,"uniqueKey":"oneOf.1.business_transaction.api_access_needed","typeLabel":"boolean"},"api_integration_url":{"type":"string","format":"uri","description":"Required when api_access_needed is true. URL for API integration","uniqueKey":"oneOf.1.business_transaction.api_integration_url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.business_transaction","typeLabel":"object"},"business_registration":{"type":"object","required":["business_type","business_structure","business_regulation_status","registration_number","tax_identification_number","corporate_group_status","exchange_listing_status","license_number"],"properties":{"business_type":{"type":"string","enum":["type_registered_company","type_sole_proprietorship"],"description":"Type of business organization","isRequired":true,"uniqueKey":"oneOf.1.business_registration.business_type","typeLabel":"enum\u003cstring>"},"business_structure":{"type":"string","enum":["public_limited_company","registered_business_name","other","limited_liability_company","limited_liability_partnership"],"description":"Legal structure of the business","isRequired":true,"uniqueKey":"oneOf.1.business_registration.business_structure","typeLabel":"enum\u003cstring>"},"business_regulation_status":{"type":"string","enum":["regulated","unregulated"],"description":"Whether business is regulated or not","isRequired":true,"uniqueKey":"oneOf.1.business_registration.business_regulation_status","typeLabel":"enum\u003cstring>"},"registration_number":{"type":"string","maxLength":20,"description":"Business registration number","isRequired":true,"uniqueKey":"oneOf.1.business_registration.registration_number","typeLabel":"string"},"tax_identification_number":{"type":"string","maxLength":20,"description":"Tax ID number of business","isRequired":true,"uniqueKey":"oneOf.1.business_registration.tax_identification_number","typeLabel":"string"},"corporate_group_status":{"type":"string","enum":["standalone_company","subsidiary","holding_company"],"description":"Status within corporate group structure","isRequired":true,"uniqueKey":"oneOf.1.business_registration.corporate_group_status","typeLabel":"enum\u003cstring>"},"exchange_listing_status":{"type":"string","enum":["listed_on_exchange","not_listed_on_exchange","owned_by_listed_company"],"description":"Whether business is listed on stock exchange","isRequired":true,"uniqueKey":"oneOf.1.business_registration.exchange_listing_status","typeLabel":"enum\u003cstring>"},"license_number":{"type":"string","maxLength":30,"description":"Business license number if applicable","isRequired":true,"uniqueKey":"oneOf.1.business_registration.license_number","typeLabel":"string"}},"uniqueKey":"oneOf.1.business_registration","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"individual_customer":{"title":"individual_customer","description":"An example of a request payload to create an **individual** customer profile.","value":{"email":"johninu@busha.co","has_accepted_terms":true,"type":"individual","country_id":"NG","phone":"+2348012345678","birth_date":"24-12-1990","first_name":"John","last_name":"Doe","address":{"street":"123 Main Street","city":"Lagos","state":"Lagos","postal_code":"100211","country":"NG"}}},"business_customer":{"title":"business_customer","description":"An example of a request payload to create a **business** customer profile. Note the additional `business_*` fields.","value":{"email":"johninu@busha.co","has_accepted_terms":true,"type":"business","country_id":"NG","phone":"+2348098765432","address":{"street":"456 Corporate Avenue","city":"Abuja","state":"FCT","postal_code":"900288","country":"NG"},"business_name":"ABC Corporation","business_industry":"BIN_C4UvTYR5V8jsOx5LmwQ","business_incorporation_date":"2015-06-15"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"3665751a-3228-46b8-b0f8-420a735c1b0f":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","description":"General response Values","required":["data","status","message"],"properties":{"status":{"type":"string","x-order":1,"x-go-type":"string","enum":["success","error"],"example":"success","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","x-order":2,"example":"message for success","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","description":"Individual name requirements","required":["id","status","type","email","country_id","business_id","has_accepted_terms_of_service","display_currency","deposit","payout","phone","address","level","created_at","updated_at","first_name","last_name"],"x-order":1,"properties":{"first_name":{"type":"string","example":"John","description":"A valid name","isRequired":true,"uniqueKey":"data.oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","example":"John","description":"A valid name","isRequired":true,"uniqueKey":"data.oneOf.0.last_name","typeLabel":"string"},"id":{"type":"string","description":"A valid id","format":"nanoid","x-order":1,"x-oapi-codegen-extra-tags":{"validate":"required|nanoid"},"example":"bus_123456789","isRequired":true,"uniqueKey":"data.oneOf.0.id","typeLabel":"string\u003cnanoid>"},"business_id":{"type":"string","description":"A valid id","format":"nanoid","x-order":2,"x-oapi-codegen-extra-tags":{"validate":"required|nanoid"},"example":"bus_123456789","isRequired":true,"uniqueKey":"data.oneOf.0.business_id","typeLabel":"string\u003cnanoid>"},"email":{"type":"string","description":"A valid email address","format":"email","x-oapi-codegen-extra-tags":{"validate":"required|email|check_temp_email","filter":"trim|lower"},"x-go-type":"string","x-order":3,"example":"bCnW7@example.com","isRequired":true,"uniqueKey":"data.oneOf.0.email","typeLabel":"string\u003cemail>"},"status":{"type":"string","enum":["active","inactive","submitted","awaiting_review","in_review","rejected","archived"],"x-order":9,"isRequired":true,"uniqueKey":"data.oneOf.0.status","typeLabel":"enum\u003cstring>"},"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"data.oneOf.0.country_id","typeLabel":"string\u003calpha2>"},"type":{"type":"string","enum":["individual","business"],"x-order":8,"isRequired":true,"uniqueKey":"data.oneOf.0.type","typeLabel":"enum\u003cstring>"},"phone":{"type":"string","description":"A valid phone number. format `{{calling_code}}{{number}}`","format":"phone","x-oapi-codegen-extra-tags":{"validate":"phone","filter":"phone","mapstructure":"phone_number,omitempty"},"x-order":8,"example":"+2348012345678","isRequired":true,"uniqueKey":"data.oneOf.0.phone","typeLabel":"string\u003cphone>"},"address":{"type":"object","description":"Address of the business.","required":["address_line_1","country_id"],"x-order":7,"properties":{"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","x-oapi-codegen-extra-tags":{"validate":"alpha2","mapstructure":"country_id"},"isRequired":true,"uniqueKey":"data.oneOf.0.address.country_id","typeLabel":"string\u003calpha2>"},"address_line_1":{"type":"string","example":"RT Lawal","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_1"},"isRequired":true,"uniqueKey":"data.oneOf.0.address.address_line_1","typeLabel":"string"},"city":{"type":"string","example":"Lekki","x-oapi-codegen-extra-tags":{"mapstructure":"city"},"uniqueKey":"data.oneOf.0.address.city","typeLabel":"string"},"state":{"type":"string","example":"Lagos","x-oapi-codegen-extra-tags":{"mapstructure":"state"},"uniqueKey":"data.oneOf.0.address.state","typeLabel":"string"},"county":{"type":"string","example":"Mombasa","x-oapi-codegen-extra-tags":{"mapstructure":"county"},"uniqueKey":"data.oneOf.0.address.county","typeLabel":"string"},"address_line_2":{"type":"string","example":"","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_2"},"uniqueKey":"data.oneOf.0.address.address_line_2","typeLabel":"string"},"province":{"type":"string","example":"province","x-oapi-codegen-extra-tags":{"mapstructure":"province"},"uniqueKey":"data.oneOf.0.address.province","typeLabel":"string"},"postal_code":{"type":"string","example":"12345","x-oapi-codegen-extra-tags":{"mapstructure":"postal_code"},"uniqueKey":"data.oneOf.0.address.postal_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.0.address","typeLabel":"object"},"display_currency":{"type":"string","description":"A valid currency","format":"string","maxLength":10,"minLength":1,"x-order":7,"x-oapi-codegen-extra-tags":{"validate":"required|min_len:1|max_len:10","filter":"trim|upper"},"example":"BTC","isRequired":true,"uniqueKey":"data.oneOf.0.display_currency","typeLabel":"string\u003cstring>"},"deposit":{"type":"boolean","description":"User can deposit","x-order":8,"isRequired":true,"uniqueKey":"data.oneOf.0.deposit","typeLabel":"boolean"},"payout":{"type":"boolean","description":"User can payout","x-order":8,"isRequired":true,"uniqueKey":"data.oneOf.0.payout","typeLabel":"boolean"},"has_accepted_terms_of_service":{"type":"boolean","x-order":10,"isRequired":true,"uniqueKey":"data.oneOf.0.has_accepted_terms_of_service","typeLabel":"boolean"},"level":{"type":"string","x-order":15,"isRequired":true,"uniqueKey":"data.oneOf.0.level","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","x-order":16,"isRequired":true,"uniqueKey":"data.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","x-order":17,"isRequired":true,"uniqueKey":"data.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"middle_name":{"oneOf":[{"type":"string","description":"A field representing a name that can be null or absent.","example":"Smith","uniqueKey":"data.oneOf.0.middle_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"A field representing a name that can be null or absent.","example":"Smith","uniqueKey":"data.oneOf.0.middle_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.middle_name","typeLabel":"string | null"},"kyc_status":{"type":"string","enum":["pending","unverified","verified","expiry_soon","expired"],"x-order":9,"uniqueKey":"data.oneOf.0.kyc_status","typeLabel":"enum\u003cstring>"},"rejection_reasons":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.0.rejection_reasons.items.[INDEX]","typeLabel":"string"},"x-order":11,"uniqueKey":"data.oneOf.0.rejection_reasons","typeLabel":"string[]"},"requirements_due":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.0.requirements_due.items.[INDEX]","typeLabel":"string"},"x-order":12,"uniqueKey":"data.oneOf.0.requirements_due","typeLabel":"string[]"},"future_requirements_due":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.0.future_requirements_due.items.[INDEX]","typeLabel":"string"},"x-order":13,"uniqueKey":"data.oneOf.0.future_requirements_due","typeLabel":"string[]"},"beneficial_owners":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"data.oneOf.0.beneficial_owners.items.[INDEX].id","typeLabel":"string"},"email":{"type":"string","example":"bCnW7@example.com","format":"email","description":"A valid email address","x-oapi-codegen-extra-tags":{"validate":"required|email|check_temp_email","filter":"trim|lower"},"x-go-type":"string","uniqueKey":"data.oneOf.0.beneficial_owners.items.[INDEX].email","typeLabel":"string\u003cemail>"}},"uniqueKey":"data.oneOf.0.beneficial_owners.items.[INDEX]","typeLabel":"object"},"x-order":14,"uniqueKey":"data.oneOf.0.beneficial_owners","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"object","description":"Business name requirements","required":["id","status","type","email","country_id","business_id","has_accepted_terms_of_service","display_currency","deposit","payout","phone","address","level","created_at","updated_at","business_name","business_industry","business_incorporation_date"],"x-order":1,"properties":{"business_name":{"type":"string","description":"Name of the business","maxLength":100,"x-oapi-codegen-extra-tags":{"validate":"required|maxlen:100","filter":"trim|lower|ucFirst"},"isRequired":true,"uniqueKey":"data.oneOf.1.business_name","typeLabel":"string"},"business_industry":{"type":"string","minLength":16,"maxLength":24,"description":"ID Industry or sector the business operates in","isRequired":true,"uniqueKey":"data.oneOf.1.business_industry","typeLabel":"string"},"business_incorporation_date":{"type":"string","format":"date","description":"Business incorporation date","isRequired":true,"uniqueKey":"data.oneOf.1.business_incorporation_date","typeLabel":"string\u003cdate>"},"id":{"type":"string","description":"A valid id","format":"nanoid","x-order":1,"x-oapi-codegen-extra-tags":{"validate":"required|nanoid"},"example":"bus_123456789","isRequired":true,"uniqueKey":"data.oneOf.1.id","typeLabel":"string\u003cnanoid>"},"business_id":{"type":"string","description":"A valid id","format":"nanoid","x-order":2,"x-oapi-codegen-extra-tags":{"validate":"required|nanoid"},"example":"bus_123456789","isRequired":true,"uniqueKey":"data.oneOf.1.business_id","typeLabel":"string\u003cnanoid>"},"email":{"type":"string","description":"A valid email address","format":"email","x-oapi-codegen-extra-tags":{"validate":"required|email|check_temp_email","filter":"trim|lower"},"x-go-type":"string","x-order":3,"example":"bCnW7@example.com","isRequired":true,"uniqueKey":"data.oneOf.1.email","typeLabel":"string\u003cemail>"},"status":{"type":"string","enum":["active","inactive","submitted","awaiting_review","in_review","rejected","archived"],"x-order":9,"isRequired":true,"uniqueKey":"data.oneOf.1.status","typeLabel":"enum\u003cstring>"},"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","minLength":2,"maxLength":2,"x-oapi-codegen-extra-tags":{"validate":"alpha2"},"isRequired":true,"uniqueKey":"data.oneOf.1.country_id","typeLabel":"string\u003calpha2>"},"type":{"type":"string","enum":["individual","business"],"x-order":8,"isRequired":true,"uniqueKey":"data.oneOf.1.type","typeLabel":"enum\u003cstring>"},"phone":{"type":"string","description":"A valid phone number. format `{{calling_code}}{{number}}`","format":"phone","x-oapi-codegen-extra-tags":{"validate":"phone","filter":"phone","mapstructure":"phone_number,omitempty"},"x-order":8,"example":"+2348012345678","isRequired":true,"uniqueKey":"data.oneOf.1.phone","typeLabel":"string\u003cphone>"},"address":{"type":"object","description":"Address of the business.","required":["address_line_1","country_id"],"x-order":7,"properties":{"country_id":{"type":"string","example":"NG","format":"alpha2","description":"A valid country id","x-oapi-codegen-extra-tags":{"validate":"alpha2","mapstructure":"country_id"},"isRequired":true,"uniqueKey":"data.oneOf.1.address.country_id","typeLabel":"string\u003calpha2>"},"address_line_1":{"type":"string","example":"RT Lawal","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_1"},"isRequired":true,"uniqueKey":"data.oneOf.1.address.address_line_1","typeLabel":"string"},"city":{"type":"string","example":"Lekki","x-oapi-codegen-extra-tags":{"mapstructure":"city"},"uniqueKey":"data.oneOf.1.address.city","typeLabel":"string"},"state":{"type":"string","example":"Lagos","x-oapi-codegen-extra-tags":{"mapstructure":"state"},"uniqueKey":"data.oneOf.1.address.state","typeLabel":"string"},"county":{"type":"string","example":"Mombasa","x-oapi-codegen-extra-tags":{"mapstructure":"county"},"uniqueKey":"data.oneOf.1.address.county","typeLabel":"string"},"address_line_2":{"type":"string","example":"","x-oapi-codegen-extra-tags":{"mapstructure":"address_line_2"},"uniqueKey":"data.oneOf.1.address.address_line_2","typeLabel":"string"},"province":{"type":"string","example":"province","x-oapi-codegen-extra-tags":{"mapstructure":"province"},"uniqueKey":"data.oneOf.1.address.province","typeLabel":"string"},"postal_code":{"type":"string","example":"12345","x-oapi-codegen-extra-tags":{"mapstructure":"postal_code"},"uniqueKey":"data.oneOf.1.address.postal_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.1.address","typeLabel":"object"},"display_currency":{"type":"string","description":"A valid currency","format":"string","maxLength":10,"minLength":1,"x-order":7,"x-oapi-codegen-extra-tags":{"validate":"required|min_len:1|max_len:10","filter":"trim|upper"},"example":"BTC","isRequired":true,"uniqueKey":"data.oneOf.1.display_currency","typeLabel":"string\u003cstring>"},"deposit":{"type":"boolean","description":"User can deposit","x-order":8,"isRequired":true,"uniqueKey":"data.oneOf.1.deposit","typeLabel":"boolean"},"payout":{"type":"boolean","description":"User can payout","x-order":8,"isRequired":true,"uniqueKey":"data.oneOf.1.payout","typeLabel":"boolean"},"has_accepted_terms_of_service":{"type":"boolean","x-order":10,"isRequired":true,"uniqueKey":"data.oneOf.1.has_accepted_terms_of_service","typeLabel":"boolean"},"level":{"type":"string","x-order":15,"isRequired":true,"uniqueKey":"data.oneOf.1.level","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","x-order":16,"isRequired":true,"uniqueKey":"data.oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","x-order":17,"isRequired":true,"uniqueKey":"data.oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"},"kyc_status":{"type":"string","enum":["pending","unverified","verified","expiry_soon","expired"],"x-order":9,"uniqueKey":"data.oneOf.1.kyc_status","typeLabel":"enum\u003cstring>"},"rejection_reasons":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.1.rejection_reasons.items.[INDEX]","typeLabel":"string"},"x-order":11,"uniqueKey":"data.oneOf.1.rejection_reasons","typeLabel":"string[]"},"requirements_due":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.1.requirements_due.items.[INDEX]","typeLabel":"string"},"x-order":12,"uniqueKey":"data.oneOf.1.requirements_due","typeLabel":"string[]"},"future_requirements_due":{"type":"array","items":{"type":"string","uniqueKey":"data.oneOf.1.future_requirements_due.items.[INDEX]","typeLabel":"string"},"x-order":13,"uniqueKey":"data.oneOf.1.future_requirements_due","typeLabel":"string[]"},"beneficial_owners":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"data.oneOf.1.beneficial_owners.items.[INDEX].id","typeLabel":"string"},"email":{"type":"string","example":"bCnW7@example.com","format":"email","description":"A valid email address","x-oapi-codegen-extra-tags":{"validate":"required|email|check_temp_email","filter":"trim|lower"},"x-go-type":"string","uniqueKey":"data.oneOf.1.beneficial_owners.items.[INDEX].email","typeLabel":"string\u003cemail>"}},"uniqueKey":"data.oneOf.1.beneficial_owners.items.[INDEX]","typeLabel":"object"},"x-order":14,"uniqueKey":"data.oneOf.1.beneficial_owners","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"success","message":"message for success","data":{"first_name":"John","last_name":"John","id":"bus_123456789","business_id":"bus_123456789","email":"bCnW7@example.com","status":"active","country_id":"NG","type":"individual","phone":"+2348012345678","address":{"country_id":"NG","address_line_1":"RT Lawal","city":"Lekki","state":"Lagos","county":"Mombasa","address_line_2":"","province":"province","postal_code":"12345"},"display_currency":"BTC","deposit":true,"payout":true,"has_accepted_terms_of_service":true,"level":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","middle_name":"Smith","kyc_status":"pending","rejection_reasons":["\u003cstring>"],"requirements_due":["\u003cstring>"],"future_requirements_due":["\u003cstring>"],"beneficial_owners":[{"id":"\u003cstring>","email":"bCnW7@example.com"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"806db3a0-8642-4fc6-bbbf-493425426270":{"description":"Something went wrong in Customer resource","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["name","message"],"properties":{"name":{"type":"string","x-order":40,"example":"bad_request","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","example":"Invalid Request","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"fields":{"type":"object","uniqueKey":"fields","typeLabel":"object"},"schema":{"type":"array","items":{"type":"object","description":"One thing wrong with the request body: in prose for a person, and in a code and a pointer for a program. `reason` and `fix` are written by the validation library and their wording changes between releases of it; `code` and `pointer` do not, so branch on those.\n","properties":{"reason":{"type":"string","description":"What is wrong, in prose. For a person reading a log, not for code to match on.","example":"missing property 'additional_info'","uniqueKey":"schema.items.[INDEX].reason","typeLabel":"string"},"fix":{"type":"string","description":"What to do about it, in prose.","example":"Ensure that the object being submitted, matches the schema correctly","uniqueKey":"schema.items.[INDEX].fix","typeLabel":"string"},"code":{"type":"string","description":"What is wrong, as a stable token. `missing-property` for a required property left out, `type-mismatch` for a value of the wrong JSON type, `enum-mismatch` for a value outside the documented set, `pattern-mismatch` for a string that fails its pattern, `unknown-property` for a property the endpoint does not declare, `malformed-json` for a body that is not JSON at all, and `constraint-\u003ckeyword>` for any other JSON Schema keyword the body tripped.\n","example":"missing-property","uniqueKey":"schema.items.[INDEX].code","typeLabel":"string"},"pointer":{"type":"string","description":"Where it is wrong: an RFC 6901 JSON Pointer into the request body. The empty string points at the body itself, which is the answer when no single property is at fault.\n","example":"/additional_info","uniqueKey":"schema.items.[INDEX].pointer","typeLabel":"string"},"schema_validation_error":{"type":"array","description":"The validator's own specifics, where it produced any.","items":{"type":"string","uniqueKey":"schema.items.[INDEX].schema_validation_error.items.[INDEX]","typeLabel":"string"},"example":["minLength: got 3, want 12"],"uniqueKey":"schema.items.[INDEX].schema_validation_error","typeLabel":"string[]"}},"uniqueKey":"schema.items.[INDEX]","typeLabel":"object"},"uniqueKey":"schema","typeLabel":"object[]"}},"example":{"error":{"name":"bad_request","message":"Invalid Request"}},"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","description":"Default error","value":{"error":{"name":"bad_request","message":"Invalid request"}}},"not_found_error":{"title":"not_found_error","description":"Not Found error","value":{"error":{"name":"resource_not_found","message":"Resource Not Found"}}},"unauthorized_error":{"title":"unauthorized_error","description":"Unauthorized Error","value":{"error":{"name":"unauthorized","message":"Unauthorized request"}}},"request_validation_error":{"title":"request_validation_error","description":"Request Validation error example","value":{"error":{"name":"request_validation","message":"Validation error"},"fields":{"field1":[{"reason":"One of target and source amount must be set"}],"field2":[{"reason":"One of target and source amount must be set"}]}}},"schema_validation_error":{"title":"schema_validation_error","description":"Schema validation error example. One entry per violation, each with its own `code` and `pointer` naming what is wrong and where; branch on those rather than on the prose beside them.\n","value":{"error":{"name":"schema_validation","message":"Error Validating Requests"},"schema":[{"reason":"Missing property 'market'","fix":"Ensure that the object being submitted, matches the schema correctly","code":"missing-property","pointer":"/market","schema_validation_error":["missing property 'market'"]},{"reason":"MinLength: got 3, want 12","fix":"Ensure that the object being submitted, matches the schema correctly","code":"constraint-minlength","pointer":"/additional_info/name","schema_validation_error":["minLength: got 3, want 12"]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"e72a0ac7-4395-4092-b1ce-4edd30888caf":{"description":"Server error when processing the customers request","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["name","message"],"properties":{"name":{"type":"string","x-order":40,"example":"bad_request","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","example":"Invalid Request","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"fields":{"type":"object","uniqueKey":"fields","typeLabel":"object"},"schema":{"type":"array","items":{"type":"object","description":"One thing wrong with the request body: in prose for a person, and in a code and a pointer for a program. `reason` and `fix` are written by the validation library and their wording changes between releases of it; `code` and `pointer` do not, so branch on those.\n","properties":{"reason":{"type":"string","description":"What is wrong, in prose. For a person reading a log, not for code to match on.","example":"missing property 'additional_info'","uniqueKey":"schema.items.[INDEX].reason","typeLabel":"string"},"fix":{"type":"string","description":"What to do about it, in prose.","example":"Ensure that the object being submitted, matches the schema correctly","uniqueKey":"schema.items.[INDEX].fix","typeLabel":"string"},"code":{"type":"string","description":"What is wrong, as a stable token. `missing-property` for a required property left out, `type-mismatch` for a value of the wrong JSON type, `enum-mismatch` for a value outside the documented set, `pattern-mismatch` for a string that fails its pattern, `unknown-property` for a property the endpoint does not declare, `malformed-json` for a body that is not JSON at all, and `constraint-\u003ckeyword>` for any other JSON Schema keyword the body tripped.\n","example":"missing-property","uniqueKey":"schema.items.[INDEX].code","typeLabel":"string"},"pointer":{"type":"string","description":"Where it is wrong: an RFC 6901 JSON Pointer into the request body. The empty string points at the body itself, which is the answer when no single property is at fault.\n","example":"/additional_info","uniqueKey":"schema.items.[INDEX].pointer","typeLabel":"string"},"schema_validation_error":{"type":"array","description":"The validator's own specifics, where it produced any.","items":{"type":"string","uniqueKey":"schema.items.[INDEX].schema_validation_error.items.[INDEX]","typeLabel":"string"},"example":["minLength: got 3, want 12"],"uniqueKey":"schema.items.[INDEX].schema_validation_error","typeLabel":"string[]"}},"uniqueKey":"schema.items.[INDEX]","typeLabel":"object"},"uniqueKey":"schema","typeLabel":"object[]"}},"example":{"error":{"name":"bad_request","message":"Invalid Request"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internal_server_error":{"title":"internal_server_error","description":"Internal Server Error","value":{"error":{"name":"internal_server_error","message":"Internal Server Error"}}},"service_unavailable_error":{"title":"service_unavailable_error","description":"Service Unavailable Error","value":{"error":{"name":"service_unavailable","message":"Service Unavailable"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"aec50138-02a6-4846-846e-b728346dcc43":{"Auth":{"type":"http","scheme":"bearer","description":"Bearer Authentication","scopes":["customers:write","api:write"],"schemeName":"Auth"}}},"servers":{"da7e1349-896d-4d44-bf50-5095dca769ae":{"url":"https://api.sandbox.busha.so","description":"Sandbox Environment"},"0117cc31-430c-47bd-9d4e-ad2e7f6fba80":{"url":"https://api.busha.io","description":"Production Environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer Authentication","scopes":["customers:write","api:write"],"schemeName":"Auth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer Authentication","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Auth","name":"Authorization"}],"title":"Auth"}]},"originalFileLocation":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml"},"subdomain":"busha-36f167ef","siteName":"Busha Developer Documentation","title":"Busha Developer Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T14:22:48.119Z","originalFileLocation":"api-reference/customers/create-a-new-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 entry in the system. The required fields depend on the type of customer being created (\u0026#x27;individual\u0026#x27; or \u0026#x27;business\u0026#x27;).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Busha 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/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_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/busha-36f167ef/S-rXk8aJPIs6tBWz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Busha Developer Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Busha API documentation for developers. Integrate crypto trading, wallets, and payments into your app with our comprehensive guides and API references.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Busha Developer Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.busha.io/api-reference/customers/create-a-new-customer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://busha-36f167ef.mintlify.app/images/meta-image.png\">\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=\"Busha Developer Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Busha API documentation for developers. Integrate crypto trading, wallets, and payments into your app with our comprehensive guides and API references.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://busha-36f167ef.mintlify.app/images/meta-image.png\">\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/busha-36f167ef/S-rXk8aJPIs6tBWz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Busha Developer Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#12A232\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.busha.io/api-reference/customers/create-a-new-customer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/customers/create-a-new-customer.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.busha.io/#organization\",\"name\":\"Busha Developer Documentation\",\"url\":\"https://docs.busha.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/busha-36f167ef/bqGQAc9YwZBzW1ju/logo/light.svg?fit=max\u0026auto=format\u0026n=bqGQAc9YwZBzW1ju\u0026q=85\u0026s=08cf983a0716b1e5e0ccf2eabf9408a5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.busha.io#website\",\"name\":\"Busha Developer Documentation\",\"url\":\"https://docs.busha.io\",\"publisher\":{\"@id\":\"https://docs.busha.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer#webpage\",\"url\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer\",\"name\":\"Create a new customer\",\"description\":\"Creates a new customer entry in the system. The required fields depend on the type of customer being created ('individual' or 'business').\",\"dateModified\":\"2026-10-26T14:22:48.119Z\",\"isPartOf\":{\"@id\":\"https://docs.busha.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.busha.io/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customers\",\"item\":\"https://docs.busha.io/api-reference/customers/list-customers\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a new customer\",\"item\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer#apireference\",\"headline\":\"Create a new customer\",\"name\":\"Create a new customer\",\"description\":\"Creates a new customer entry in the system. The required fields depend on the type of customer being created ('individual' or 'business').\",\"url\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer\",\"mainEntityOfPage\":{\"@id\":\"https://docs.busha.io/api-reference/customers/create-a-new-customer#webpage\"},\"image\":\"https://docs.busha.io/images/meta-image.png\",\"dateModified\":\"2026-10-26T14:22:48.119Z\",\"publisher\":{\"@id\":\"https://docs.busha.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.busha.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Busha Developer Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Busha Developer Documentation","nav":{"global":{"anchors":[{"anchor":"Guides","icon":"book-open-cover","href":"https://docs.busha.io/guides"},{"anchor":"Blog","icon":"newspaper","href":"https://busha.io/blog"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://docs.busha.io/changelog"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/overview/quotes"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/getting-started/quick-start"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/introduction"}]},{"tab":"API Reference","groups":[{"group":"API reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"group":"Balances","pages":[{"title":"List all balances","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/balances","href":"/api-reference/balances/list-all-balances"},{"title":"Create currency balance","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/balances","href":"/api-reference/balances/create-currency-balance"},{"title":"Get balance details","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/balances/{id_or_code}","href":"/api-reference/balances/get-balance-details"}]},{"group":"Currencies","pages":[{"title":"Retrieve supported currencies","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/currencies","href":"/api-reference/currencies/retrieve-supported-currencies"},{"title":"Retrieve details of a specific currency","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/currencies/{code}","href":"/api-reference/currencies/retrieve-details-of-a-specific-currency"}]},{"group":"Customers","pages":[{"title":"List Customers","description":"List all customers in created for the business","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/customers","href":"/api-reference/customers/list-customers"},{"title":"Create a new customer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/customers","href":"/api-reference/customers/create-a-new-customer"},{"title":"Export Customers","description":"Export customers to a csv file","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/customers/export","href":"/api-reference/customers/export-customers"},{"title":"Get a customer by ID","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/customers/{id}","href":"/api-reference/customers/get-a-customer-by-id"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml put /v1/customers/{id}","href":"/api-reference/customers/update-a-customer"},{"title":"Delete a customer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml delete /v1/customers/{id}","href":"/api-reference/customers/delete-a-customer"},{"title":"Verify a customer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/customers/{id}/verify","href":"/api-reference/customers/verify-a-customer"},{"title":"Share customer token","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/customers/{id}/token-share","href":"/api-reference/customers/share-customer-token"},{"title":"Generate KYC link for a customer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/customers/{id}/kyc-link","href":"/api-reference/customers/generate-kyc-link-for-a-customer"},{"title":"List Business Industries","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/customers/industries","href":"/api-reference/customers/list-business-industries"}]},{"group":"Files","pages":[{"title":"Generate presigned upload URL","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/files","href":"/api-reference/files/generate-presigned-upload-url"}]},{"group":"Insights","pages":[{"title":"Get transaction trends","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/insights/transactions/trends","href":"/api-reference/insights/get-transaction-trends"},{"title":"Get transaction breakdown","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/insights/transactions/breakdown","href":"/api-reference/insights/get-transaction-breakdown"},{"title":"Get customer growth","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/insights/customers/growth","href":"/api-reference/insights/get-customer-growth"}]},{"group":"Miscellaneous","pages":[{"title":"Validate payment destination","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/validate","href":"/api-reference/miscellaneous/validate-payment-destination"},{"title":"List banks resource","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/banks","href":"/api-reference/miscellaneous/list-banks-resource"},{"title":"Returns a list of countries","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/countries","href":"/api-reference/miscellaneous/returns-a-list-of-countries"},{"title":"Look up users addresses","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/pay/{username}","href":"/api-reference/miscellaneous/look-up-users-addresses"},{"title":"Get a merchant by public key","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/merchants","href":"/api-reference/miscellaneous/get-a-merchant-by-public-key"},{"title":"Get deposit address","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/addresses/{code}","href":"/api-reference/miscellaneous/get-deposit-address"},{"title":"Regenerate deposit address","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/addresses/regenerate","href":"/api-reference/miscellaneous/regenerate-deposit-address"},{"title":"Get virtual bank account","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/virtual_bank_accounts/{code}","href":"/api-reference/miscellaneous/get-virtual-bank-account"},{"title":"Get virtual bank account terms","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/virtual_bank_accounts/{code}/terms","href":"/api-reference/miscellaneous/get-virtual-bank-account-terms"}]},{"group":"Pairs","pages":[{"title":"List trading pairs","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/pairs","href":"/api-reference/pairs/list-trading-pairs"}]},{"group":"PaymentLinks","pages":[{"title":"List payment links","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/payments/links","href":"/api-reference/paymentlinks/list-payment-links"},{"title":"Create a payment link","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/payments/links","href":"/api-reference/paymentlinks/create-a-payment-link"},{"title":"Retrieve a payment link","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/payments/links/{id}","href":"/api-reference/paymentlinks/retrieve-a-payment-link"},{"title":"Delete a payment link","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml delete /v1/payments/links/{id}","href":"/api-reference/paymentlinks/delete-a-payment-link"},{"title":"Update a payment link","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml patch /v1/payments/links/{id}","href":"/api-reference/paymentlinks/update-a-payment-link"},{"title":"List payment requests for payment link","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/payments/links/{id}/requests","href":"/api-reference/paymentlinks/list-payment-requests-for-payment-link"},{"title":"Create a payment request for payment link","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/payments/links/{id}/requests","href":"/api-reference/paymentlinks/create-a-payment-request-for-payment-link"},{"title":"Activate a draft invoice","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/payments/links/{id}/activate","href":"/api-reference/paymentlinks/activate-a-draft-invoice"}]},{"group":"PaymentRequests","pages":[{"title":"List payment requests","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/payments/requests","href":"/api-reference/paymentrequests/list-payment-requests"},{"title":"Create a payment request","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/payments/requests","href":"/api-reference/paymentrequests/create-a-payment-request"},{"title":"Retrieve a payment request","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/payments/requests/{id}","href":"/api-reference/paymentrequests/retrieve-a-payment-request"},{"title":"Finalize a payment request","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/payments/requests/{id}/finalize","href":"/api-reference/paymentrequests/finalize-a-payment-request"}]},{"group":"Pledges","pages":[{"title":"Create pledge quote","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges/quotes","href":"/api-reference/pledges/create-pledge-quote"},{"title":"List pledges","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/pledges","href":"/api-reference/pledges/list-pledges"},{"title":"Create pledge","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges","href":"/api-reference/pledges/create-pledge"},{"title":"Get pledge","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/pledges/{id}","href":"/api-reference/pledges/get-pledge"},{"title":"Activate pledge","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges/{id}/activate","href":"/api-reference/pledges/activate-pledge"},{"title":"Add pledge items","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges/{id}/items","href":"/api-reference/pledges/add-pledge-items"},{"title":"Release pledge items","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges/{id}/release","href":"/api-reference/pledges/release-pledge-items"},{"title":"Request pledge liquidation","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges/{id}/liquidations","href":"/api-reference/pledges/request-pledge-liquidation"},{"title":"Cancel pledge liquidation","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/pledges/{id}/liquidations/{liquidation_id}/cancel","href":"/api-reference/pledges/cancel-pledge-liquidation"}]},{"group":"Quotes","pages":[{"title":"List Quotes","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/quotes","href":"/api-reference/quotes/list-quotes"},{"title":"Create a new Quote","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/quotes","href":"/api-reference/quotes/create-a-new-quote"},{"title":"Get Quote","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/quotes/{id}","href":"/api-reference/quotes/get-quote"},{"title":"Create Unauthenticated Quotes","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/quotes/unauthenticated","href":"/api-reference/quotes/create-unauthenticated-quotes"},{"title":"List Payment Options","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/quote/payment_options","href":"/api-reference/quotes/list-payment-options"},{"title":"List pending transfer approvals","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/quotes/pending-approvals","href":"/api-reference/quotes/list-pending-transfer-approvals"},{"title":"Reject a pending transfer approval","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/quotes/pending-approvals/{id}/reject","href":"/api-reference/quotes/reject-a-pending-transfer-approval"}]},{"group":"Recipients","pages":[{"title":"List recipients","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/recipients","href":"/api-reference/recipients/list-recipients"},{"title":"Create a recipient","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/recipients","href":"/api-reference/recipients/create-a-recipient"},{"title":"Retrieve a recipient","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/recipients/{id}","href":"/api-reference/recipients/retrieve-a-recipient"},{"title":"Delete a recipient","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml delete /v1/recipients/{id}","href":"/api-reference/recipients/delete-a-recipient"},{"title":"Resolves a bank account","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/recipients/resolve-bank-account","href":"/api-reference/recipients/resolves-a-bank-account"}]},{"group":"Transactions","pages":[{"title":"List transactions","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/transactions","href":"/api-reference/transactions/list-transactions"},{"title":"Get transaction","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/transactions/{id}","href":"/api-reference/transactions/get-transaction"}]},{"group":"Transfers","pages":[{"title":"List transfers","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/transfers","href":"/api-reference/transfers/list-transfers"},{"title":"Create transfer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml post /v1/transfers","href":"/api-reference/transfers/create-transfer"},{"title":"Get transfer","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/bushaHQ/openapi/refs/heads/main/openapi-spec.yaml get /v1/transfers/{id}","href":"/api-reference/transfers/get-transfer"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Busha 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"]}