{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Togai documentation","colors":{"primary":"#2853C2","light":"#2563EB","dark":"#2563EB"},"favicon":"/images/togai-logo-light.svg","logo":{"light":"https://mintcdn.com/togai/MzZShn3Chu8s5XJM/images/togai-light.png?fit=max\u0026auto=format\u0026n=MzZShn3Chu8s5XJM\u0026q=85\u0026s=4712c1fa84282ae9cce550c0d3e6ec2b","dark":"https://mintcdn.com/togai/MzZShn3Chu8s5XJM/images/togai-dark.svg?fit=max\u0026auto=format\u0026n=MzZShn3Chu8s5XJM\u0026q=85\u0026s=73a0f4ae77369ff7b7241023a9a671ff"},"api":{"openapi":["openapi.yaml"],"playground":{"display":"simple"},"mdx":{"server":["https://sandbox-api.togai.com","https://api.togai.com"],"auth":{"method":"bearer","name":null}}},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/togai/images/background-documentation-min.png","decoration":null,"color":{"light":"#F8FAFC","dark":"#0D101F"}},"navbar":{"links":[{"label":"Demo app","href":"https://demo.togai.com"},{"label":"Login","href":"https://app.togai.com/login"}],"primary":{"type":"button","label":"Talk to us","href":"https://www.togai.com/contact-us/"}},"footer":{"socials":{"website":"https://togai.com","twitter":"https://twitter.com/togaiHQ","github":"https://github.com/TogaiHQ/","linkedin":"https://www.linkedin.com/company/togai"}},"integrations":{"ga4":{"measurementId":"G-Q0BLXR7WX5"},"gtm":{"tagId":"GTM-TS4BK7Z"}},"navigation":{"global":{"anchors":[{"anchor":"Postman collection","href":"https://www.postman.com/togai-workspace/workspace/togai-public","icon":"folder-open"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"togai","hasAudioNarration":false,"actualSubdomain":"togai","customDomains":[],"gitSource":{"type":"github","owner":"togai-bot","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true,"issues":true},"entitlements":{},"buildId":"6ae91e8bc02c8f1beff5087f:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":108},{"language":"default","tag":"APIs","count":105},{"language":"default","tag":"Documentation","count":58},{"language":"default","tag":"Integrations","count":29},{"language":"default","tag":"Accounts","count":18},{"language":"default","tag":"Templates","count":16},{"language":"default","tag":"Entitlements","count":8},{"language":"default","tag":"Event Schemas","count":8},{"language":"default","tag":"Invoices","count":7},{"language":"default","tag":"Payments","count":7}]},"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":"rbac-expansion","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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/customers/create-a-customer","slug":"/api-reference/customers/create-a-customer","pageMetadata":{"openapi":"post /customers","title":"Create a customer","description":"This API let’s you to create customers and corresponding accounts.","href":"/api-reference/customers/create-a-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: \"This API let’s you to create customers and corresponding accounts.\"\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":"post /customers","title":"Create a customer","description":"This API let’s you to create customers and corresponding accounts.","href":"/api-reference/customers/create-a-customer"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Customers"],"summary":"Create a customer","description":"This API let’s you to create customers and corresponding accounts.","operationId":"createCustomer","requestBody":"6adbf35c-5ecd-4a31-8b8d-ac105fe7a3b5","responses":{"201":"7454827f-898c-400a-8e0c-1d1710c3b4ec","400":"56ff0ae3-c75a-451d-a165-795a97f9c74a","401":"d5cf4d93-fcfc-400a-9a5c-93a7e1206e03","403":"4063c551-9f94-4c4f-bfe0-fb661edee9b5","404":"6600aab7-0689-4664-b3f2-96b4940709b2","429":"d1962e57-60b2-426f-81f6-78416d316916","default":"b8eb0e85-2b8b-4ded-adcf-ccb901c938a2"},"method":"post","type":"path","servers":["9f6eb8d4-0e77-4555-b0b9-2240bf1985a2","2cd14a87-0055-4601-b756-fea69647dc6f"],"security":["10d5aef0-c0e7-4a1c-a3a9-3494e6daa2b3"],"path":"/customers","baseUrlOptions":["https://api.togai.com/","https://sandbox-api.togai.com/"],"title":"Create a customer","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Payload to create customer","required":true,"content":{"application/json":{"schema":{"description":"Payload to create customer","type":"object","additionalProperties":false,"required":["name","id","primaryEmail","address"],"properties":{"id":{"description":"Customer identifier","type":"string","maxLength":50,"example":"01BX5ZZKBKACTAV9WEVGEMMVRZ","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"name":{"description":"Name of the Customer","type":"string","maxLength":255,"minLength":3,"example":"ACME Enterprise","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"primaryEmail":{"description":"Primary email of the customer","type":"string","maxLength":255,"example":"admin@example.com","isRequired":true,"uniqueKey":"primaryEmail","typeLabel":"string"},"address":{"description":"billing address of the customer","type":"object","additionalProperties":false,"properties":{"phoneNumber":{"description":"Contact number","type":"string","uniqueKey":"address.phoneNumber","typeLabel":"string"},"line1":{"description":"Address line 1 (eg. Street, PO Box, Company Name)","type":"string","uniqueKey":"address.line1","typeLabel":"string"},"line2":{"description":"Address line 2 (eg. apartment, suite, unit or building)","type":"string","uniqueKey":"address.line2","typeLabel":"string"},"postalCode":{"description":"ZIP or postal code","type":"string","uniqueKey":"address.postalCode","typeLabel":"string"},"city":{"description":"City, district, suburb, town or village","type":"string","uniqueKey":"address.city","typeLabel":"string"},"state":{"description":"State, county, province or region","type":"string","uniqueKey":"address.state","typeLabel":"string"},"country":{"description":"Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)","type":"string","uniqueKey":"address.country","typeLabel":"string"}},"isRequired":true,"uniqueKey":"address","typeLabel":"object"},"settings":{"type":"array","maxItems":10,"minItems":0,"items":{"type":"object","description":"Represents a setting","additionalProperties":false,"required":["id","value","namespace","name","dataType"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].id","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].value","typeLabel":"string"},"namespace":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].namespace","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].name","typeLabel":"string"},"dataType":{"type":"string","enum":["STRING","NUMERIC","JSON","JSON_LOGIC"],"isRequired":true,"uniqueKey":"settings.items.[INDEX].dataType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"settings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"settings","typeLabel":"object[]"},"account":{"description":"Payload to create account","type":"object","additionalProperties":false,"required":["name","id"],"properties":{"id":{"description":"Identifier of the account","type":"string","maxLength":50,"example":"ACC00001","isRequired":true,"uniqueKey":"account.id","typeLabel":"string"},"name":{"description":"Name of the Account","type":"string","maxLength":255,"minLength":3,"example":"Primary Account","isRequired":true,"uniqueKey":"account.name","typeLabel":"string"},"invoiceCurrency":{"description":"Use [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in which the account must be invoiced. \nFor example: AED is the currency code for United Arab Emirates dirham.\n","type":"string","minLength":3,"maxLength":3,"uniqueKey":"account.invoiceCurrency","typeLabel":"string"},"aliases":{"description":"Aliases are tags that are associated with an account. Multiple aliases are allowed for a single account.","type":"array","maxItems":10,"minItems":0,"items":{"type":"string","maxLength":50,"minLength":3,"uniqueKey":"account.aliases.items.[INDEX]","typeLabel":"string"},"example":"acme_primary","uniqueKey":"account.aliases","typeLabel":"string[]"},"accountAliases":{"description":"Aliases which effective range","type":"array","items":{"description":"An alternative account identifier for event ingestion with a defined effective duration.","type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","maxLength":50,"minLength":1,"isRequired":true,"uniqueKey":"account.accountAliases.items.[INDEX].value","typeLabel":"string"},"effectiveFrom":{"type":"string","format":"date-time","description":"Effective from date, if not provided, it will be set to -infinity","uniqueKey":"account.accountAliases.items.[INDEX].effectiveFrom","typeLabel":"string\u003cdate-time>"},"effectiveUntil":{"type":"string","format":"date-time","description":"Effective until date, if not provided, it will be set to +infinity","uniqueKey":"account.accountAliases.items.[INDEX].effectiveUntil","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"account.accountAliases.items.[INDEX]","typeLabel":"object"},"uniqueKey":"account.accountAliases","typeLabel":"object[]"},"address":{"description":"billing address of the customer","type":"object","additionalProperties":false,"properties":{"phoneNumber":{"description":"Contact number","type":"string","uniqueKey":"account.address.phoneNumber","typeLabel":"string"},"line1":{"description":"Address line 1 (eg. Street, PO Box, Company Name)","type":"string","uniqueKey":"account.address.line1","typeLabel":"string"},"line2":{"description":"Address line 2 (eg. apartment, suite, unit or building)","type":"string","uniqueKey":"account.address.line2","typeLabel":"string"},"postalCode":{"description":"ZIP or postal code","type":"string","uniqueKey":"account.address.postalCode","typeLabel":"string"},"city":{"description":"City, district, suburb, town or village","type":"string","uniqueKey":"account.address.city","typeLabel":"string"},"state":{"description":"State, county, province or region","type":"string","uniqueKey":"account.address.state","typeLabel":"string"},"country":{"description":"Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)","type":"string","uniqueKey":"account.address.country","typeLabel":"string"}},"uniqueKey":"account.address","typeLabel":"object"},"primaryEmail":{"description":"Primary email of the account","type":"string","maxLength":255,"example":"admin@example.com","uniqueKey":"account.primaryEmail","typeLabel":"string"},"settings":{"type":"array","maxItems":10,"minItems":0,"items":{"type":"object","description":"Represents a setting","additionalProperties":false,"required":["id","value","namespace","name","dataType"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].id","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].value","typeLabel":"string"},"namespace":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].namespace","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].name","typeLabel":"string"},"dataType":{"type":"string","enum":["STRING","NUMERIC","JSON","JSON_LOGIC"],"isRequired":true,"uniqueKey":"account.settings.items.[INDEX].dataType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"account.settings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"account.settings","typeLabel":"object[]"},"netTermDays":{"description":"Net term for the invoices of the account","type":"integer","format":"int32","example":45,"uniqueKey":"account.netTermDays","typeLabel":"integer\u003cint32>"},"metadata":{"description":"Additional information associated with the account.\nExample: GSTN, VATN\n","type":"object","additionalProperties":{"type":"string","uniqueKey":"account.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"account.metadata","typeLabel":"object"}},"uniqueKey":"account","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"CreateCustomerRequest":{"title":"CreateCustomerRequest","value":{"id":"01BX5ZZKBKACTAV9WEVGEMMVRZ","name":"ACME Enterprise","primaryEmail":"admin@example.com","address":{"phoneNumber":"+919876543210","line1":"2281 Broadway Street","line2":"G-31","postalCode":"29501","city":"Florence","state":"South Carolina","country":"US"},"settings":[{"id":"customerSettingId","value":"INR","namespace":"USER","name":"Settings Name","dataType":"STRING"}],"account":{"id":"ACC00001","name":"Primary Account","invoiceCurrency":"USD","aliases":["acme_primary","admin@example.com"],"settings":[{"id":"accountSettingId","value":"INR","namespace":"USER","name":"Settings Name","dataType":"STRING"}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"7454827f-898c-400a-8e0c-1d1710c3b4ec":{"description":"Response for Create customer request","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","id","primaryEmail"],"properties":{"id":{"description":"Identifier of customer","type":"string","maxLength":50,"isRequired":true,"uniqueKey":"id","typeLabel":"string"},"name":{"description":"Name of the Customer","type":"string","maxLength":255,"minLength":3,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"primaryEmail":{"description":"Primary email of the customer","type":"string","maxLength":255,"isRequired":true,"uniqueKey":"primaryEmail","typeLabel":"string"},"billingAddress":{"type":"string","uniqueKey":"billingAddress","typeLabel":"string"},"address":{"description":"billing address of the customer","type":"object","additionalProperties":false,"properties":{"phoneNumber":{"description":"Contact number","type":"string","uniqueKey":"address.phoneNumber","typeLabel":"string"},"line1":{"description":"Address line 1 (eg. Street, PO Box, Company Name)","type":"string","uniqueKey":"address.line1","typeLabel":"string"},"line2":{"description":"Address line 2 (eg. apartment, suite, unit or building)","type":"string","uniqueKey":"address.line2","typeLabel":"string"},"postalCode":{"description":"ZIP or postal code","type":"string","uniqueKey":"address.postalCode","typeLabel":"string"},"city":{"description":"City, district, suburb, town or village","type":"string","uniqueKey":"address.city","typeLabel":"string"},"state":{"description":"State, county, province or region","type":"string","uniqueKey":"address.state","typeLabel":"string"},"country":{"description":"Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)","type":"string","uniqueKey":"address.country","typeLabel":"string"}},"uniqueKey":"address","typeLabel":"object"},"settings":{"type":"array","maxItems":10,"minItems":0,"items":{"type":"object","description":"Represents a setting","additionalProperties":false,"required":["id","value","namespace","name","dataType"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].id","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].value","typeLabel":"string"},"namespace":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].namespace","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"settings.items.[INDEX].name","typeLabel":"string"},"dataType":{"type":"string","enum":["STRING","NUMERIC","JSON","JSON_LOGIC"],"isRequired":true,"uniqueKey":"settings.items.[INDEX].dataType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"settings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"settings","typeLabel":"object[]"},"account":{"description":"Structure of an account","type":"object","additionalProperties":false,"required":["name","id","status","invoiceCurrency","customerId"],"properties":{"id":{"description":"Identifier of the account","type":"string","maxLength":50,"isRequired":true,"uniqueKey":"account.id","typeLabel":"string"},"name":{"description":"Name of the Account","type":"string","maxLength":255,"minLength":3,"isRequired":true,"uniqueKey":"account.name","typeLabel":"string"},"customerId":{"description":"Identifier of the customer","type":"string","isRequired":true,"uniqueKey":"account.customerId","typeLabel":"string"},"invoiceCurrency":{"description":"[ISO_4217](https://en.wikipedia.org/wiki/ISO_4217) code of the currency in which the account must be invoiced\nDefaults to Base currency.\n","type":"string","minLength":3,"maxLength":3,"example":"USD","isRequired":true,"uniqueKey":"account.invoiceCurrency","typeLabel":"string"},"status":{"description":"Status of the account","type":"string","enum":["ACTIVE","ARCHIVED"],"example":"ACTIVE","isRequired":true,"uniqueKey":"account.status","typeLabel":"enum\u003cstring>"},"aliases":{"description":"list of aliases of the account","type":"array","maxItems":10,"minItems":0,"items":{"title":"AccountAliases","type":"object","properties":{"alias":{"type":"string","maxLength":50,"uniqueKey":"account.aliases.items.[INDEX].alias","typeLabel":"string"}},"uniqueKey":"account.aliases.items.[INDEX]","typeLabel":"AccountAliases · object"},"uniqueKey":"account.aliases","typeLabel":"AccountAliases · object[]"},"address":{"description":"billing address of the customer","type":"object","additionalProperties":false,"properties":{"phoneNumber":{"description":"Contact number","type":"string","uniqueKey":"account.address.phoneNumber","typeLabel":"string"},"line1":{"description":"Address line 1 (eg. Street, PO Box, Company Name)","type":"string","uniqueKey":"account.address.line1","typeLabel":"string"},"line2":{"description":"Address line 2 (eg. apartment, suite, unit or building)","type":"string","uniqueKey":"account.address.line2","typeLabel":"string"},"postalCode":{"description":"ZIP or postal code","type":"string","uniqueKey":"account.address.postalCode","typeLabel":"string"},"city":{"description":"City, district, suburb, town or village","type":"string","uniqueKey":"account.address.city","typeLabel":"string"},"state":{"description":"State, county, province or region","type":"string","uniqueKey":"account.address.state","typeLabel":"string"},"country":{"description":"Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)","type":"string","uniqueKey":"account.address.country","typeLabel":"string"}},"uniqueKey":"account.address","typeLabel":"object"},"primaryEmail":{"description":"Primary email of the customer","type":"string","maxLength":255,"example":"admin@example.com","uniqueKey":"account.primaryEmail","typeLabel":"string"},"settings":{"type":"array","maxItems":10,"minItems":0,"items":{"type":"object","description":"Represents a setting","additionalProperties":false,"required":["id","value","namespace","name","dataType"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].id","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].value","typeLabel":"string"},"namespace":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].namespace","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"account.settings.items.[INDEX].name","typeLabel":"string"},"dataType":{"type":"string","enum":["STRING","NUMERIC","JSON","JSON_LOGIC"],"isRequired":true,"uniqueKey":"account.settings.items.[INDEX].dataType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"account.settings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"account.settings","typeLabel":"object[]"},"invoiceGroupDetails":{"description":"Invoice group details","type":"object","additionalProperties":false,"required":["id","name","email","dailyInvoiceConsolidation","invoiceCurrency","billingAddress"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"account.invoiceGroupDetails.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"account.invoiceGroupDetails.name","typeLabel":"string"},"email":{"type":"string","isRequired":true,"uniqueKey":"account.invoiceGroupDetails.email","typeLabel":"string"},"dailyInvoiceConsolidation":{"type":"boolean","isRequired":true,"uniqueKey":"account.invoiceGroupDetails.dailyInvoiceConsolidation","typeLabel":"boolean"},"invoiceCurrency":{"type":"string","isRequired":true,"uniqueKey":"account.invoiceGroupDetails.invoiceCurrency","typeLabel":"string"},"billingAddress":{"description":"billing address of the customer","type":"object","additionalProperties":false,"properties":{"phoneNumber":{"description":"Contact number","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.phoneNumber","typeLabel":"string"},"line1":{"description":"Address line 1 (eg. Street, PO Box, Company Name)","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.line1","typeLabel":"string"},"line2":{"description":"Address line 2 (eg. apartment, suite, unit or building)","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.line2","typeLabel":"string"},"postalCode":{"description":"ZIP or postal code","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.postalCode","typeLabel":"string"},"city":{"description":"City, district, suburb, town or village","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.city","typeLabel":"string"},"state":{"description":"State, county, province or region","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.state","typeLabel":"string"},"country":{"description":"Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)","type":"string","uniqueKey":"account.invoiceGroupDetails.billingAddress.country","typeLabel":"string"}},"isRequired":true,"uniqueKey":"account.invoiceGroupDetails.billingAddress","typeLabel":"object"},"netTermDays":{"type":"integer","format":"int32","uniqueKey":"account.invoiceGroupDetails.netTermDays","typeLabel":"integer\u003cint32>"}},"uniqueKey":"account.invoiceGroupDetails","typeLabel":"object"},"metadata":{"description":"Additional information associated with the account.\nExample: GSTN, VATN\n","type":"object","additionalProperties":{"type":"string","uniqueKey":"account.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"account.metadata","typeLabel":"object"}},"uniqueKey":"account","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"CreateCustomerResponse":{"title":"CreateCustomerResponse","value":{"id":"01BX5ZZKBKACTAV9WEVGEMMVRZ","name":"ACME Enterprise","primaryEmail":"admin@example.com","address":{"phoneNumber":"+919876543210","line1":"2281 Broadway Street","line2":"G-31","postalCode":"29501","city":"Florence","state":"South Carolina","country":"US"},"settings":[{"id":"customerSettingId","value":"INR","namespace":"USER","name":"Settings Name","dataType":"STRING"}],"account":{"id":"G234DZZKBKACATFFGVGEMERFH","name":"ACME Enterprise - Account","invoiceCurrency":"USD","status":"ACTIVE","aliases":[{"alias":"G234DZZKBKACATFFGVGEMERFH","status":"ACTIVE"}],"settings":[{"id":"accountSettingId","value":"INR","namespace":"USER","name":"Settings Name","dataType":"STRING"}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"56ff0ae3-c75a-451d-a165-795a97f9c74a":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"d5cf4d93-fcfc-400a-9a5c-93a7e1206e03":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"4063c551-9f94-4c4f-bfe0-fb661edee9b5":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"6600aab7-0689-4664-b3f2-96b4940709b2":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"d1962e57-60b2-426f-81f6-78416d316916":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"b8eb0e85-2b8b-4ded-adcf-ccb901c938a2":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"10d5aef0-c0e7-4a1c-a3a9-3494e6daa2b3":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Bearer \u003ccredential>","scopes":[]}}},"servers":{"9f6eb8d4-0e77-4555-b0b9-2240bf1985a2":{"description":"Api endpoint","url":"https://api.togai.com/"},"2cd14a87-0055-4601-b756-fea69647dc6f":{"description":"Sandbox api endpoint","url":"https://sandbox-api.togai.com/"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Bearer \u003ccredential>","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"togai","siteName":"Togai documentation","title":"Create a customer - Togai documentation","navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/customers/create-a-customer","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T00:47:49.592Z","originalFileLocation":"api-reference/customers/create-a-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=\"This API let’s you to create customers and corresponding accounts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Togai 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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a customer - Togai documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"This API let’s you to create customers and corresponding accounts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Togai documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://togai.mintlify.app/api-reference/customers/create-a-customer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://togai.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+a+customer\u0026amp;description=This+API+let%E2%80%99s+you+to+create+customers+and+corresponding+accounts.\u0026amp;theme=41b132f678a134340ae92c04\u0026amp;signature=09d74b8d68eda0dc441d7f01f86ee12ceeb82e765ce77c7207d1ee7bf42fa6f9\">\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 a customer - Togai documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This API let’s you to create customers and corresponding accounts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://togai.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+a+customer\u0026amp;description=This+API+let%E2%80%99s+you+to+create+customers+and+corresponding+accounts.\u0026amp;theme=41b132f678a134340ae92c04\u0026amp;signature=09d74b8d68eda0dc441d7f01f86ee12ceeb82e765ce77c7207d1ee7bf42fa6f9\">\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/togai/QGbZyPMOaxdwX2w6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Togai documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2853C2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://togai.mintlify.app/api-reference/customers/create-a-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-customer.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://togai.mintlify.app/#organization\",\"name\":\"Togai documentation\",\"url\":\"https://togai.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/togai/MzZShn3Chu8s5XJM/images/togai-light.png?fit=max\u0026auto=format\u0026n=MzZShn3Chu8s5XJM\u0026q=85\u0026s=4712c1fa84282ae9cce550c0d3e6ec2b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://togai.mintlify.app#website\",\"name\":\"Togai documentation\",\"url\":\"https://togai.mintlify.app\",\"publisher\":{\"@id\":\"https://togai.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer#webpage\",\"url\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer\",\"name\":\"Create a customer\",\"description\":\"This API let’s you to create customers and corresponding accounts.\",\"dateModified\":\"2026-01-07T00:47:49.592Z\",\"isPartOf\":{\"@id\":\"https://togai.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://togai.mintlify.app/api-reference/authentication/get-bearer-token\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customers\",\"item\":\"https://togai.mintlify.app/api-reference/customers/list-customers\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a customer\",\"item\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer#apireference\",\"headline\":\"Create a customer\",\"name\":\"Create a customer\",\"description\":\"This API let’s you to create customers and corresponding accounts.\",\"url\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer\",\"mainEntityOfPage\":{\"@id\":\"https://togai.mintlify.app/api-reference/customers/create-a-customer#webpage\"},\"dateModified\":\"2026-01-07T00:47:49.592Z\",\"publisher\":{\"@id\":\"https://togai.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://togai.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Togai documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Togai documentation","nav":{"global":{"anchors":[{"anchor":"Postman collection","href":"https://www.postman.com/togai-workspace/workspace/togai-public","icon":"folder-open"}]},"versions":[{"version":"v1","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/introduction"}]},{"tab":"API Reference","groups":[{"group":"Introduction","pages":[{"title":"Getting Started","href":"/api-reference/getting-started"},{"title":"Authentication 🔐","href":"/api-reference/authentication"},{"title":"Pagination 📄","href":"/api-reference/pagination"}]},{"group":"APIs","pages":[{"group":"Authentication","pages":[{"openapi":"post /authenticate","title":"Generate short lived bearer token","href":"/api-reference/authentication/get-bearer-token"}]},{"group":"Customers","pages":[{"openapi":"get /customers","title":"List customers","description":"Returns a list of customers with pagination and sort.","href":"/api-reference/customers/list-customers"},{"openapi":"post /customers","title":"Create a customer","href":"/api-reference/customers/create-a-customer"},{"openapi":"get /customers/{customer_id}","title":"Get a customer","description":"Get customer information using customer_id.","href":"/api-reference/customers/get-a-customer"},{"openapi":"delete /customers/{customer_id}","title":"Delete a customer","href":"/api-reference/customers/delete-a-customer"},{"openapi":"patch /customers/{customer_id}","title":"Update a customer","href":"/api-reference/customers/update-a-customer"}]},{"group":"Accounts","pages":[{"openapi":"get /accounts","title":"List accounts of customer","href":"/api-reference/accounts/list-accounts-of-customer"},{"openapi":"post /accounts","title":"Create an account","href":"/api-reference/accounts/create-an-account"},{"openapi":"get /accounts/{account_id}","title":"Get an account","href":"/api-reference/accounts/get-an-account"},{"openapi":"delete /accounts/{account_id}","title":"Delete an account","href":"/api-reference/accounts/delete-an-account"},{"openapi":"patch /accounts/{account_id}","title":"Update an account","href":"/api-reference/accounts/update-an-account"},{"group":"Account Aliases","pages":[{"openapi":"get /accounts/{account_id}/account_aliases","title":"Get all aliases of an account","href":"/api-reference/accounts/account-aliases/get-all-aliases-of-an-account"},{"openapi":"post /accounts/{account_id}/add_aliases","title":"Add Aliases to account","href":"/api-reference/accounts/account-aliases/add-aliases-to-account"},{"openapi":"post /accounts/{account_id}/remove_aliases","title":"Remove Aliases to account","href":"/api-reference/accounts/account-aliases/remove-aliases-to-account"}]},{"group":"Plan Associations","pages":[{"openapi":"get /accounts/{account_id}/pricing_schedules","title":"List pricing schedules of an account","href":"/api-reference/accounts/plan-association/list-pricing-schedules-of-an-account"},{"openapi":"post /accounts/{account_id}/edit_schedules","title":"Edit schedules of an account.","href":"/api-reference/accounts/plan-association/edit-schedules-of-an-account"},{"openapi":"post /accounts/{account_id}/price_plans","title":"Dissociate or associate a price plan with an account","href":"/api-reference/accounts/plan-association/disassociate-a-plan-fromto-an-account"}]},{"group":"Purchases","pages":[{"openapi":"get /accounts/{account_id}/purchases","title":"Get all purchases for an account","href":"/api-reference/accounts/purchases/get-all-purchases-for-an-account"},{"openapi":"post /accounts/{account_id}/purchases","title":"Initiate a purchase","href":"/api-reference/accounts/purchases/initiate-a-purchase"},{"openapi":"get /purchases/{purchase_id}","title":"Get a specific purchase of an account","href":"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account"}]},{"group":"Proposals","pages":[{"openapi":"get /accounts/{account_id}/purchase_proposals","title":"List all proposals of an account","href":"/api-reference/accounts/proposals/list-all-proposals-of-an-account"},{"openapi":"post /accounts/{account_id}/purchase_proposals","title":"Propose a purchase of a plan","href":"/api-reference/accounts/proposals/propose-a-purchase-of-a-plan"},{"openapi":"get /purchase_proposals/{purchase_proposal_id}","title":"Get proposal information","href":"/api-reference/accounts/proposals/get-proposal-information"},{"openapi":"post /purchase_proposals/{purchase_proposal_id}/update_status","title":"Approve or decline a purchase of a billing plan","href":"/api-reference/accounts/proposals/approve-or-decline-a-purchase-of-a-billing-plan"}]}]},{"group":"Aliases","pages":[{"openapi":"get /aliases","title":"List all aliases","href":"/api-reference/aliases/list-all-aliases"},{"openapi":"post /aliases","title":"Create an alias","href":"/api-reference/aliases/create-an-alias"},{"openapi":"get /aliases/{alias}","title":"Get an alias","href":"/api-reference/aliases/get-an-alias"},{"openapi":"delete /aliases/{alias}","title":"Delete an alias","href":"/api-reference/aliases/delete-an-alias"}]},{"group":"Event Schemas","pages":[{"openapi":"get /event_schema","title":"List event schemas","href":"/api-reference/event-schemas/list-event-schemas"},{"openapi":"post /event_schema","title":"Create an event schema","href":"/api-reference/event-schemas/create-an-event-schema"},{"openapi":"get /event_schema/{event_schema_name}","title":"Get an event schema","href":"/api-reference/event-schemas/get-an-event-schema"},{"openapi":"delete /event_schema/{event_schema_name}","title":"Delete an event schema","href":"/api-reference/event-schemas/delete-an-event-schema"},{"openapi":"patch /event_schema/{event_schema_name}","title":"Update an event schema","href":"/api-reference/event-schemas/update-an-event-schema"},{"openapi":"get /event_schema/{event_schema_name}/versions","title":"List all event schema versions","href":"/api-reference/event-schemas/list-all-event-schema-versions"},{"openapi":"post /event_schema/{event_schema_name}/activate","title":"Activate an event schema","href":"/api-reference/event-schemas/activate-an-event-schema"},{"openapi":"post /event_schema/{event_schema_name}/deactivate","title":"Deactivate an event schema","href":"/api-reference/event-schemas/deactivate-an-event-schema"}]},{"group":"Usage Meters","pages":[{"openapi":"get /usage_meters","title":"List usage meters for event schema","href":"/api-reference/usage-meters/list-usage-meters-for-event-schema"},{"openapi":"post /usage_meters","title":"Create an usage meter","href":"/api-reference/usage-meters/create-an-usage-meter"},{"openapi":"get /usage_meters/{usage_meter_id}","title":"Get usage meter","href":"/api-reference/usage-meters/get-usage-meter"},{"openapi":"delete /usage_meters/{usage_meter_id}","title":"Delete an Usage Meter","href":"/api-reference/usage-meters/delete-an-usage-meter"},{"openapi":"patch /usage_meters/{usage_meter_id}","title":"Update an usage meter","href":"/api-reference/usage-meters/update-an-usage-meter"},{"openapi":"post /usage_meters/{usage_meter_id}/activate","title":"Activate usage meter","href":"/api-reference/usage-meters/activate-usage-meter"},{"openapi":"post /usage_meters/{usage_meter_id}/deactivate","title":"Deactivate usage meter","href":"/api-reference/usage-meters/deactivate-usage-meter"}]},{"group":"AddOns","pages":[{"openapi":"get /addons","title":"List addOns","href":"/api-reference/addons/list-addons"},{"openapi":"post /addons","title":"Create an AddOn","href":"/api-reference/addons/create-an-addon"},{"openapi":"get /addons/{addon_id}","title":"Get an addon","href":"/api-reference/addons/get-an-addon"},{"openapi":"delete /addons/{addon_id}","title":"Delete an addon","href":"/api-reference/addons/delete-an-addon"},{"openapi":"patch /addons/{addon_id}","title":"Update an addon","href":"/api-reference/addons/update-an-addon"}]},{"group":"Licenses","pages":[{"openapi":"get /license_updates","title":"Get a list of licenses updates","href":"/api-reference/licenses/get-a-list-of-licenses-updates"},{"openapi":"post /license_updates","title":"Update a license entry","href":"/api-reference/licenses/update-a-license-entry"}]},{"group":"Feature","pages":[{"openapi":"get /features","title":"List Feature","href":"/api-reference/feature/list-feature"},{"openapi":"post /features","title":"Create a Feature and optionally associate with one or more event_schemas","href":"/api-reference/feature/create-a-feature-and-optionally-associate-with-one-or-more-event_schemas"},{"openapi":"get /features/{feature_id}","title":"Get a Feature","href":"/api-reference/feature/get-a-feature"},{"openapi":"patch /features/{feature_id}","title":"Update a Feature","href":"/api-reference/feature/update-a-feature"}]},{"group":"Price Plans","pages":[{"openapi":"get /price_plans","title":"List price plans","href":"/api-reference/price-plans/list-price-plans"},{"openapi":"post /price_plans","title":"Create a price plan","href":"/api-reference/price-plans/create-a-price-plan"},{"openapi":"get /price_plans/{price_plan_id}","title":"Get a price plan","href":"/api-reference/price-plans/get-a-price-plan"},{"openapi":"patch /price_plans/{price_plan_id}","title":"Update a price plan","href":"/api-reference/price-plans/update-a-price-plan"},{"openapi":"post /price_plans/{price_plan_id}/activate","title":"Activate a price plan","href":"/api-reference/price-plans/activate-a-price-plan"},{"openapi":"post /price_plans/{price_plan_id}/currencies","title":"Add currencies to a price plan","href":"/api-reference/price-plans/add-currencies-to-a-price-plan"},{"openapi":"delete /price_plans/{price_plan_id}/currencies/{currency_id}","title":"Remove a draft currency from a price plan","href":"/api-reference/price-plans/remove-a-draft-currency-from-a-price-plan"}]},{"group":"Settings","pages":[{"openapi":"get /settings","title":"Lists settings","href":"/api-reference/settings/lists-settings"},{"openapi":"post /settings","title":"Create a setting","href":"/api-reference/settings/create-a-setting"},{"openapi":"get /settings/{setting_id_str}","title":"Get a setting","href":"/api-reference/settings/get-a-setting"},{"openapi":"patch /settings/{setting_id_str}","title":"Update a setting","href":"/api-reference/settings/update-a-setting"}]},{"group":"Price Experimentation","pages":[{"openapi":"post /revenue_calculator","title":"Calculate and return the revenue for a existing or new price plan","href":"/api-reference/price-experimentation/calculate-and-return-the-revenue-for-a-existing-or-new-price-plan"}]},{"group":"Migrations","pages":[{"openapi":"get /migrations/{migration_id}","title":"Get the status of a migration","href":"/api-reference/migrations/get-the-status-of-a-migration"},{"openapi":"post /migrations/price_plan","title":"Migrates accounts which are associated to one price plan to another price plan","href":"/api-reference/migrations/migrates-accounts-which-are-associated-to-one-price-plan-to-another-price-plan"},{"openapi":"get /migrations","title":"List migrations","href":"/api-reference/migrations/list-migrations"}]},{"group":"Event Ingestion","pages":[{"openapi":"post /ingest","title":"Ingest events to Togai","href":"/api-reference/event-ingestion/ingest-events-to-togai"},{"openapi":"post /ingestBatch","title":"Ingest events to Togai in batch","href":"/api-reference/event-ingestion/ingest-events-to-togai-in-batch"}]},{"group":"Entitlements","pages":[{"openapi":"post /entitled","title":"Ingest event if a user is entitled to a feature","href":"/api-reference/entitlements/ingest-event-if-a-user-is-entitled-to-a-feature"},{"openapi":"get /accounts/{account_id}/features/{feature_id}","title":"Get Feature credits balance","href":"/api-reference/entitlements/get-feature-credits-balance"},{"openapi":"get /accounts/{account_id}/features/{feature_id}/entries","title":"List feature credits entries of a feature for an account","href":"/api-reference/entitlements/list-feature-credits-entries-of-a-feature-for-an-account"},{"openapi":"patch /accounts/{account_id}/features/{feature_id}/entries/{entry_id}","title":"Update a feature credits entry","href":"/api-reference/entitlements/update-a-feature-credits-entry-of-a-feature-for-an-account"},{"openapi":"post /accounts/{account_id}/features/{feature_id}/entries/{entry_id}/void","title":"Void a feature credits entry of a feature for an account","href":"/api-reference/entitlements/void-a-feature-credits-entry-of-a-feature-for-an-account"},{"openapi":"get /accounts/{account_id}/entitlements","title":"Get entitlements for a account","href":"/api-reference/entitlements/get-entitlements-for-a-account"},{"openapi":"post /accounts/{account_id}/entitlements/{feature_id}","title":"Check entitlement value for a account","href":"/api-reference/entitlements/check-entitlement-value-for-a-account"},{"openapi":"get /accounts/{account_id}/entitlements/{feature_id}","title":"Get entitlement value for a account","href":"/api-reference/entitlements/get-entitlement-value-for-a-account"}]},{"group":"Event Management","pages":[{"openapi":"get /events","title":"Get a list of usage events with multiple query options","href":"/api-reference/event-management/get-a-list-of-usage-events-with-multiple-query-options"},{"openapi":"get /events/{event_id}","title":"Get an usage event using event id","href":"/api-reference/event-management/get-an-usage-event-using-event-id"},{"openapi":"delete /events","title":"Undo ingested events.","href":"/api-reference/event-management/undo-ingested-events"}]},{"group":"Metrics","pages":[{"openapi":"post /metrics","title":"Get Togai Metrics","href":"/api-reference/metrics/get-togai-metrics"}]},{"group":"Credits","pages":[{"openapi":"get /credits","title":"List credits","href":"/api-reference/credits/list-credits"},{"openapi":"post /credits","title":"Grant credit","href":"/api-reference/credits/grant-credit"},{"openapi":"get /credits/{credit_id}","title":"Get credit details","href":"/api-reference/credits/get-credit-details"},{"openapi":"post /credits/{credit_id}/void","title":"Void credit","href":"/api-reference/credits/void-credit"},{"openapi":"get /accounts/{account_id}/credit_balance","title":"Credit balance for Account","href":"/api-reference/credits/credit-balance-for-account"}]},{"group":"Invoices","pages":[{"openapi":"get /invoices","title":"List invoices","href":"/api-reference/invoices/list-invoices"},{"openapi":"get /invoices/{invoice_id}","title":"Get an invoice","href":"/api-reference/invoices/get-an-invoice"},{"openapi":"put /invoices/{invoice_id}/miscellaneous_charges","title":"Add or update miscellaneous charges in Invoice","href":"/api-reference/invoices/add-or-update-miscellaneous-charges-in-invoice"},{"openapi":"post /invoices/{invoice_id}/payments","title":"Update payment status in Invoice","href":"/api-reference/invoices/update-payment-status-in-invoice"},{"openapi":"put /accounts/{account_id}/miscellaneous_charges","title":"Add or update miscellaneous charges in upcoming Invoice for a account","href":"/api-reference/invoices/add-or-update-miscellaneous-charges-in-upcoming-invoice-for-a-account"},{"openapi":"post /invoices","title":"Create a custom invoice for an account","href":"/api-reference/invoices/create-a-custom-invoice-for-an-account"},{"openapi":"delete /invoices/{invoice_id}","title":"Delete a custom invoice in DRAFT state","href":"/api-reference/invoices/delete-a-custom-invoice-in-draft-state"}]},{"group":"Payments","pages":[{"openapi":"get /payments","title":"List all payments","href":"/api-reference/payments/list-all-payments"},{"openapi":"get /payments/{payment_id}","title":"Get a payment","href":"/api-reference/payments/get-a-payment"},{"openapi":"post /payments","title":"create payments","href":"/api-reference/payments/create-payments"}]},{"group":"Wallet","pages":[{"openapi":"get /accounts/{account_id}/wallet","title":"Wallet balance for Account","href":"/api-reference/wallet/wallet-balance-for-account"},{"openapi":"get /accounts/{account_id}/wallet/entries","title":"Wallet entries for Account","href":"/api-reference/wallet/wallet-entries-for-account"}]},{"group":"InvoiceGroups","pages":[{"openapi":"get /invoice_groups","title":"List Invoice Groups","href":"/api-reference/invoicegroups/list-invoice-groups"},{"openapi":"post /invoice_groups","title":"Create an invoice group","href":"/api-reference/invoicegroups/create-an-invoice-group"},{"openapi":"get /invoice_groups/{invoice_group_id}","title":"Get information of an invoice group","href":"/api-reference/invoicegroups/get-information-of-an-invoice-group"},{"openapi":"post /invoice_groups/{invoice_group_id}/add_accounts","title":"Add accounts to an invoice group","href":"/api-reference/invoicegroups/add-accounts-to-an-invoice-group"},{"openapi":"post /invoice_groups/{invoice_group_id}/remove_accounts","title":"Remove accounts from an invoice group. Removing all accounts will also delete the invoice group","href":"/api-reference/invoicegroups/remove-accounts-from-an-invoice-group-removing-all-accounts-will-also-delete-the-invoice-group"}]}]}]},{"tab":"Change log","pages":[{"title":"Change log","href":"/changelog/change-log"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/templates/eleven-labs"}]}]}]},"basePath":"","title":"Create a customer - Togai documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}