Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.
{
"errors": [
{
"status": "413",
"code": "request_too_large",
"title": "Request Too Large",
"detail": "The request body is 5242881 bytes; this API accepts at most 5242880. Split it into smaller requests."
}
]
}
{
"errors": [
{
"status": "422",
"code": "validation_error",
"title": "Validation Error",
"detail": "List should have at most 1000 items after validation, not 1001",
"source": {
"pointer": "/data/attributes/data"
}
}
]
}
{
"errors": [
{
"status": "500",
"code": "system_internal_error",
"title": "Internal Error",
"detail": "An unexpected error occurred. Our team has been notified."
}
]
}
Authorizations
APIKeyHeaderHTTPBearer
X-API-Key
string
header
required
Body
application/json
Upsert customers request model.
data
CreateCustomerRequest · object[]
required
List of customers to create or update, up to 1000 customers and 5 MB per request. Each customer takes the same fields as Create customer. For an existing customer, omitted fields keep the current value, and null clears name, email and exemption.source_reported_exempt. A nullsource_updated_at keeps the current date. If the same customer appears more than once, every copy fails.
{
"errors": [
{
"status": "413",
"code": "request_too_large",
"title": "Request Too Large",
"detail": "The request body is 5242881 bytes; this API accepts at most 5242880. Split it into smaller requests."
}
]
}
{
"errors": [
{
"status": "422",
"code": "validation_error",
"title": "Validation Error",
"detail": "List should have at most 1000 items after validation, not 1001",
"source": {
"pointer": "/data/attributes/data"
}
}
]
}
{
"errors": [
{
"status": "500",
"code": "system_internal_error",
"title": "Internal Error",
"detail": "An unexpected error occurred. Our team has been notified."
}
]
}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Taxwire Documentation","colors":{"primary":"#006ad4","light":"#007fff","dark":"#006ad4"},"logo":{"light":"https://mintcdn.com/taxwire/kIqs87W6QVd_NiC-/logo/light.svg?fit=max\u0026auto=format\u0026n=kIqs87W6QVd_NiC-\u0026q=85\u0026s=7bb92701f7b553132429a252a66c75bc","dark":"https://mintcdn.com/taxwire/kIqs87W6QVd_NiC-/logo/dark.svg?fit=max\u0026auto=format\u0026n=kIqs87W6QVd_NiC-\u0026q=85\u0026s=09554c84098823bcca29b587dda40df7"},"favicon":"https://mintcdn.com/taxwire/kIqs87W6QVd_NiC-/favicon.svg?fit=max\u0026auto=format\u0026n=kIqs87W6QVd_NiC-\u0026q=85\u0026s=5dbb639aafc59d9545e12978a7e48bdb","api":{"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.taxwire.com"}},"navbar":{"links":[{"href":"mailto:support@taxwire.com","label":"Support"}],"primary":{"type":"button","label":"Taxwire App","href":"https://app.taxwire.com"}},"footer":{"socials":{"x":"https://x.com/taxwire_inc","github":"https://github.com/taxwire","linkedin":"https://linkedin.com/company/taxwire"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"taxwire","hasAudioNarration":false,"actualSubdomain":"taxwire","customDomains":["apidocs.taxwire.com"],"gitSource":{"type":"github","owner":"taxwire","repo":"taxwire-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b00be48f6a044fa4e30f6c9","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Products","count":6},{"language":"default","tag":"Transaction flows","count":5},{"language":"default","tag":"API details","count":4},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Transactions","count":4},{"language":"default","tag":"Certificates","count":2},{"language":"default","tag":"Product Tax Codes (PTC) \u0026 Attributes","count":2},{"language":"default","tag":"Addresses","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/customers/batch","slug":"/api-reference/customers/batch","pageMetadata":{"title":"Upsert customers (batch)","openapi":"POST /customers/batch","description":"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.","href":"/api-reference/customers/batch"},"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: \"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.\"\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":"Upsert customers (batch)","openapi":"POST /customers/batch","description":"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.","href":"/api-reference/customers/batch"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Customers"],"summary":"Upsert Customers","description":"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.","operationId":"batch_upsert_customers_customers_batch_post","requestBody":"dcb1562f-8eb6-4b7d-9f93-66daabc42b7d","responses":{"200":"69307116-67a1-43f1-9d64-f016890db1d0","413":"7ae5d46d-2729-494e-9384-bee5ec5c378f","422":"4167228a-18b4-4c6f-95d0-91139e7bade4","429":"e26e4e86-a593-4bed-ba71-73270e1bebd3","500":"5f88beb4-f846-466c-9465-7cb20324660a"},"security":["8a3eb790-4e28-473d-a7df-a613dcb8b23f","fc820563-dc05-4696-84f4-100d9ab81303"],"method":"post","type":"path","servers":[],"path":"/customers/batch","baseUrlOptions":["https://api.taxwire.com"],"title":"Upsert Customers","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"source_id":{"type":"string","maxLength":255,"title":"Source Id","description":"Identifier for the customer in the source system. Can't be blank. For a customer that a Taxwire integration also syncs, use the same `source_id` the integration stores, or a second customer is created.","examples":["CUS-1042"],"isRequired":true,"uniqueKey":"data.items.[INDEX].source_id","typeLabel":"string"},"source":{"type":"string","enum":["business_central","campfire","chargebee","maxio","measure","monetizenow","netsuite","quickbooks","ramp","rillet","salesbricks","shopify","stripe","taxwire","xero"],"description":"Source system of the customer. Defaults to `taxwire`.","default":"taxwire","examples":["taxwire"],"uniqueKey":"data.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"source_account_id":{"type":"string","maxLength":255,"title":"Source Account Id","description":"Account in the source system that the customer belongs to. Required for sources that keep customers per account, and `__default__` for every other source. The wrong form returns `422` with the form the source needs.","default":"__default__","examples":["__default__"],"uniqueKey":"data.items.[INDEX].source_account_id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","title":"Name","description":"Name of the customer. A blank name reads as `null`. When a batch updates an existing customer, `null` clears it and omitting it keeps the current name. If an integration also syncs the customer, a later sync can set it again.","maxLength":500,"example":"Acme Wholesale","uniqueKey":"data.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Name","description":"Name of the customer. A blank name reads as `null`. When a batch updates an existing customer, `null` clears it and omitting it keeps the current name. If an integration also syncs the customer, a later sync can set it again.","example":"Acme Wholesale","uniqueKey":"data.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","title":"Email","description":"Email address of the customer. Does not need to be unique. A blank email reads as `null`. When a batch updates an existing customer, `null` clears it and omitting it keeps the current email address. If an integration also syncs the customer, a later sync can set it again.","maxLength":320,"example":"ap@acme.example","uniqueKey":"data.items.[INDEX].email.oneOf.0","typeLabel":"string"},{"type":"null","title":"Email","description":"Email address of the customer. Does not need to be unique. A blank email reads as `null`. When a batch updates an existing customer, `null` clears it and omitting it keeps the current email address. If an integration also syncs the customer, a later sync can set it again.","example":"ap@acme.example","uniqueKey":"data.items.[INDEX].email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].email","typeLabel":"string | null"},"source_updated_at":{"oneOf":[{"type":"string","title":"Source Updated At","description":"Date at which the customer was last updated in the source system. Recommended for every source except `taxwire`. An update with an older date doesn't change the customer. Omit it or send `null` to keep the current date: it can't be cleared.","format":"date-time","example":"2026-09-14T19:58:12Z","uniqueKey":"data.items.[INDEX].source_updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Source Updated At","description":"Date at which the customer was last updated in the source system. Recommended for every source except `taxwire`. An update with an older date doesn't change the customer. Omit it or send `null` to keep the current date: it can't be cleared.","example":"2026-09-14T19:58:12Z","uniqueKey":"data.items.[INDEX].source_updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].source_updated_at","typeLabel":"string\u003cdate-time> | null"},"exemption":{"oneOf":[{"type":"object","title":"CustomerExemptionRequest","description":"Exemption data to set on the customer. For an existing customer, omitted fields keep their current value. See [Marking a customer exempt](/api-reference/guides/exemptions#marking-a-customer-exempt).","properties":{"overrides":{"oneOf":[{"type":"object","title":"ExemptionOverridesRequest","description":"Your own decisions, made in Taxwire, that apply to every sale to the customer. Omit it or send `null` to keep the current values.","properties":{"exempt":{"oneOf":[{"type":"boolean","title":"Exempt","description":"Your own decision, made in Taxwire, to treat every sale to this customer as exempt, with no certificate needed. `true` turns it on and `false` turns it off. Omit it or send `null` to keep the current value. To pass on what the customer's source system says, send `source_reported_exempt` instead. If the source system also sets this value, a later sync can overwrite the value you send.","example":true,"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.overrides.oneOf.0.exempt.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Exempt","description":"Your own decision, made in Taxwire, to treat every sale to this customer as exempt, with no certificate needed. `true` turns it on and `false` turns it off. Omit it or send `null` to keep the current value. To pass on what the customer's source system says, send `source_reported_exempt` instead. If the source system also sets this value, a later sync can overwrite the value you send.","example":true,"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.overrides.oneOf.0.exempt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.overrides.oneOf.0.exempt","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.overrides.oneOf.0","typeLabel":"ExemptionOverridesRequest · object"},{"type":"null","description":"Your own decisions, made in Taxwire, that apply to every sale to the customer. Omit it or send `null` to keep the current values.","uniqueKey":"data.items.[INDEX].exemption.oneOf.0.overrides.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.overrides","typeLabel":"ExemptionOverridesRequest · object | null"},"source_reported_exempt":{"oneOf":[{"type":"boolean","title":"Source Reported Exempt","description":"Whether the customer's source system marks it tax exempt: `true` or `false` as the source reports it. Send `null` to clear it, as when the source has not reported; omit it to keep the current value. If the source system also reports it, a later sync can overwrite what you send. This is a report, not a decision: it never changes how a sale is taxed. When it disagrees with Taxwire, the customer gets an alert in the Taxwire app: `true` with no valid certificate and no `overrides.exempt`, or `false` for a customer Taxwire exempts. To exempt the customer yourself, send `overrides.exempt`.","example":true,"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.source_reported_exempt.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Source Reported Exempt","description":"Whether the customer's source system marks it tax exempt: `true` or `false` as the source reports it. Send `null` to clear it, as when the source has not reported; omit it to keep the current value. If the source system also reports it, a later sync can overwrite what you send. This is a report, not a decision: it never changes how a sale is taxed. When it disagrees with Taxwire, the customer gets an alert in the Taxwire app: `true` with no valid certificate and no `overrides.exempt`, or `false` for a customer Taxwire exempts. To exempt the customer yourself, send `overrides.exempt`.","example":true,"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.source_reported_exempt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].exemption.oneOf.0.source_reported_exempt","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"data.items.[INDEX].exemption.oneOf.0","typeLabel":"CustomerExemptionRequest · object"},{"type":"null","description":"Exemption data to set on the customer. For an existing customer, omitted fields keep their current value. See [Marking a customer exempt](/api-reference/guides/exemptions#marking-a-customer-exempt).","uniqueKey":"data.items.[INDEX].exemption.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].exemption","typeLabel":"CustomerExemptionRequest · object | null"}},"additionalProperties":false,"type":"object","required":["source_id"],"title":"CreateCustomerRequest","description":"Create customer request model.","uniqueKey":"data.items.[INDEX]","typeLabel":"CreateCustomerRequest · object"},"type":"array","maxItems":1000,"title":"Data","description":"List of customers to create or update, up to 1000 customers and 5 MB per request. Each customer takes the same fields as [Create customer](/api-reference/customers/create). For an existing customer, omitted fields keep the current value, and `null` clears `name`, `email` and `exemption.source_reported_exempt`. A `null` `source_updated_at` keeps the current date. If the same customer appears more than once, every copy fails.","isRequired":true,"uniqueKey":"data","typeLabel":"CreateCustomerRequest · object[]"}},"additionalProperties":false,"type":"object","required":["data"],"title":"BatchUpsertCustomersRequest","description":"Upsert customers request model.","uniqueKey":"","typeLabel":"BatchUpsertCustomersRequest · object"},"examples":{"push":{"title":"push","summary":"Update one customer, create one, and reject one","value":{"data":[{"source_id":"CUS-1042","name":"Acme Wholesale Inc.","source_updated_at":"2026-09-15T08:30:00Z"},{"source_id":"CUS-1043","name":"Beta Corp","email":"billing@beta.example","source_updated_at":"2026-09-15T08:29:41Z"},{"name":"Gamma Supply"}]}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"69307116-67a1-43f1-9d64-f016890db1d0":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"summary":{"properties":{"created":{"type":"integer","title":"Created","default":0,"uniqueKey":"summary.created","typeLabel":"integer"},"updated":{"type":"integer","title":"Updated","default":0,"uniqueKey":"summary.updated","typeLabel":"integer"},"stale":{"type":"integer","title":"Stale","default":0,"uniqueKey":"summary.stale","typeLabel":"integer"},"deleted":{"type":"integer","title":"Deleted","default":0,"uniqueKey":"summary.deleted","typeLabel":"integer"},"failed":{"type":"integer","title":"Failed","default":0,"uniqueKey":"summary.failed","typeLabel":"integer"}},"type":"object","title":"BatchSummary","description":"Number of items with each result.","isRequired":true,"uniqueKey":"summary","typeLabel":"BatchSummary · object"},"data":{"items":{"properties":{"index":{"type":"integer","title":"Index","description":"Position of the customer in the request, starting at 0.","examples":[0],"isRequired":true,"uniqueKey":"data.items.[INDEX].index","typeLabel":"integer"},"status":{"type":"string","enum":["created","updated","stale","deleted","failed"],"title":"Status","description":"Result for the customer: `created`, `updated`, `stale` (ignored because its `source_updated_at` is older than the current one), `deleted` (matched a customer deleted in the Taxwire app, so nothing changed), or `failed`.","examples":["created"],"isRequired":true,"uniqueKey":"data.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"customer":{"oneOf":[{"type":"object","title":"CustomerResource","description":"Customer as stored after the request. Set for `created`, `updated`, and `stale`.","required":["id","source_id","source","source_account_id","created_at","updated_at"],"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the customer.","examples":["cust_01J9Z8Q4E7K2M3N4P5R6S7T8U9"],"isRequired":true,"uniqueKey":"data.items.[INDEX].customer.oneOf.0.id","typeLabel":"string"},"source_id":{"type":"string","title":"Source Id","description":"Identifier for the customer in the source system.","examples":["CUS-1042"],"isRequired":true,"uniqueKey":"data.items.[INDEX].customer.oneOf.0.source_id","typeLabel":"string"},"source":{"type":"string","enum":["business_central","campfire","chargebee","maxio","measure","monetizenow","netsuite","quickbooks","ramp","rillet","salesbricks","shopify","stripe","taxwire","xero"],"description":"Source system of the customer. `taxwire` for customers created in Taxwire rather than in another system.","examples":["taxwire"],"isRequired":true,"uniqueKey":"data.items.[INDEX].customer.oneOf.0.source","typeLabel":"enum\u003cstring>"},"source_account_id":{"type":"string","title":"Source Account Id","description":"Account in the source system that the customer belongs to. `__default__` if the source system has no account or tenant ID.","examples":["__default__"],"isRequired":true,"uniqueKey":"data.items.[INDEX].customer.oneOf.0.source_account_id","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Date at which the customer record was created.","examples":["2026-09-14T20:00:00Z"],"isRequired":true,"uniqueKey":"data.items.[INDEX].customer.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Date at which the customer record was last updated.","examples":["2026-09-14T20:00:00Z"],"isRequired":true,"uniqueKey":"data.items.[INDEX].customer.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"name":{"oneOf":[{"type":"string","title":"Name","description":"Name of the customer.","example":"Acme Wholesale","uniqueKey":"data.items.[INDEX].customer.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Name","description":"Name of the customer.","example":"Acme Wholesale","uniqueKey":"data.items.[INDEX].customer.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].customer.oneOf.0.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","title":"Email","description":"Email address of the customer. Does not need to be unique.","example":"ap@acme.example","uniqueKey":"data.items.[INDEX].customer.oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","title":"Email","description":"Email address of the customer. Does not need to be unique.","example":"ap@acme.example","uniqueKey":"data.items.[INDEX].customer.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].customer.oneOf.0.email","typeLabel":"string | null"},"merged_into_customer_id":{"oneOf":[{"type":"string","title":"Merged Into Customer Id","description":"Unique identifier of the customer this customer was merged into, when the source system reports a merge. `null` otherwise.","example":"cust_01J9ZC4D7F2G8H3J5K6L9M1N0P","uniqueKey":"data.items.[INDEX].customer.oneOf.0.merged_into_customer_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Merged Into Customer Id","description":"Unique identifier of the customer this customer was merged into, when the source system reports a merge. `null` otherwise.","example":"cust_01J9ZC4D7F2G8H3J5K6L9M1N0P","uniqueKey":"data.items.[INDEX].customer.oneOf.0.merged_into_customer_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].customer.oneOf.0.merged_into_customer_id","typeLabel":"string | null"},"source_updated_at":{"oneOf":[{"type":"string","title":"Source Updated At","description":"Date at which the customer was last updated in the source system. `null` if unknown.","format":"date-time","example":"2026-09-14T19:58:12Z","uniqueKey":"data.items.[INDEX].customer.oneOf.0.source_updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Source Updated At","description":"Date at which the customer was last updated in the source system. `null` if unknown.","example":"2026-09-14T19:58:12Z","uniqueKey":"data.items.[INDEX].customer.oneOf.0.source_updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].customer.oneOf.0.source_updated_at","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"data.items.[INDEX].customer.oneOf.0","typeLabel":"CustomerResource · object"},{"type":"null","description":"Customer as stored after the request. Set for `created`, `updated`, and `stale`.","uniqueKey":"data.items.[INDEX].customer.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].customer","typeLabel":"CustomerResource · object | null"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"status":{"type":"string","title":"Status","isRequired":true,"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","title":"Code","isRequired":true,"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","title":"Title","isRequired":true,"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","title":"Detail","isRequired":true,"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].detail","typeLabel":"string"},"source":{"oneOf":[{"type":"object","title":"ErrorSource","description":"Identifies the source of the error, e.g., via a JSON Pointer.","properties":{"pointer":{"oneOf":[{"type":"string","title":"Pointer","uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].source.oneOf.0.pointer.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pointer","uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].source.oneOf.0.pointer.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].source.oneOf.0.pointer","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].source.oneOf.0","typeLabel":"ErrorSource · object"},{"type":"null","uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].source.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].source","typeLabel":"ErrorSource · object | null"},"meta":{"oneOf":[{"type":"object","title":"Meta","additionalProperties":true,"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].meta.oneOf.0","typeLabel":"Meta · object"},{"type":"null","title":"Meta","uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX].meta","typeLabel":"Meta · object | null"}},"type":"object","required":["status","code","title","detail"],"title":"Error","description":"Individual JSON:API error object.","uniqueKey":"data.items.[INDEX].errors.oneOf.0.items.[INDEX]","typeLabel":"Error · object"},"title":"Errors","description":"Errors for the customer. Set for `failed`.","example":null,"uniqueKey":"data.items.[INDEX].errors.oneOf.0","typeLabel":"Error · object[]"},{"type":"null","title":"Errors","description":"Errors for the customer. Set for `failed`.","example":null,"uniqueKey":"data.items.[INDEX].errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].errors","typeLabel":"Error · object[] | null"}},"type":"object","required":["index","status"],"title":"BatchCustomerResult","description":"Result for one customer in the request.","uniqueKey":"data.items.[INDEX]","typeLabel":"BatchCustomerResult · object"},"type":"array","title":"Data","description":"Results in the same order as the request.","isRequired":true,"uniqueKey":"data","typeLabel":"BatchCustomerResult · object[]"},"object":{"type":"string","title":"Object","description":"Always `batch`.","default":"batch","uniqueKey":"object","typeLabel":"string"}},"type":"object","required":["summary","data"],"title":"BatchUpsertCustomersResponse","description":"Upsert customers response model.","uniqueKey":"","typeLabel":"BatchUpsertCustomersResponse · object"},"example":{"object":"batch","summary":{"created":1,"updated":1,"stale":0,"deleted":0,"failed":1},"data":[{"index":0,"status":"updated","customer":{"id":"cust_01J9Z8Q4E7K2M3N4P5R6S7T8U9","source_id":"CUS-1042","source":"taxwire","source_account_id":"__default__","name":"Acme Wholesale Inc.","email":"ap@acme.example","source_updated_at":"2026-09-15T08:30:00Z","created_at":"2026-09-14T20:00:00Z","updated_at":"2026-09-15T08:30:05Z"}},{"index":1,"status":"created","customer":{"id":"cust_01J9ZB7V3M8N2K4P6Q1R5S7T9W","source_id":"CUS-1043","source":"taxwire","source_account_id":"__default__","name":"Beta Corp","email":"billing@beta.example","source_updated_at":"2026-09-15T08:29:41Z","created_at":"2026-09-15T08:30:05Z","updated_at":"2026-09-15T08:30:05Z"}},{"index":2,"status":"failed","errors":[{"status":"422","code":"validation_required_field","title":"Missing source_id","detail":"Please provide a value for the required source_id field","source":{"pointer":"/data/attributes/data/2/source_id"}}]}]},"examples":{"Example":{"title":"Example","value":{"object":"batch","summary":{"created":1,"updated":1,"stale":0,"deleted":0,"failed":1},"data":[{"index":0,"status":"updated","customer":{"id":"cust_01J9Z8Q4E7K2M3N4P5R6S7T8U9","source_id":"CUS-1042","source":"taxwire","source_account_id":"__default__","name":"Acme Wholesale Inc.","email":"ap@acme.example","source_updated_at":"2026-09-15T08:30:00Z","created_at":"2026-09-14T20:00:00Z","updated_at":"2026-09-15T08:30:05Z"}},{"index":1,"status":"created","customer":{"id":"cust_01J9ZB7V3M8N2K4P6Q1R5S7T9W","source_id":"CUS-1043","source":"taxwire","source_account_id":"__default__","name":"Beta Corp","email":"billing@beta.example","source_updated_at":"2026-09-15T08:29:41Z","created_at":"2026-09-15T08:30:05Z","updated_at":"2026-09-15T08:30:05Z"}},{"index":2,"status":"failed","errors":[{"status":"422","code":"validation_required_field","title":"Missing source_id","detail":"Please provide a value for the required source_id field","source":{"pointer":"/data/attributes/data/2/source_id"}}]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"7ae5d46d-2729-494e-9384-bee5ec5c378f":{"description":"Request Too Large - The request body is over the size limit.","content":{"application/json":{"schema":{"properties":{"errors":{"items":{"properties":{"status":{"type":"string","title":"Status","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","title":"Code","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","title":"Title","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","title":"Detail","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"oneOf":[{"type":"object","title":"ErrorSource","description":"Identifies the source of the error, e.g., via a JSON Pointer.","properties":{"pointer":{"oneOf":[{"type":"string","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer","typeLabel":"string | null"}},"uniqueKey":"errors.items.[INDEX].source.oneOf.0","typeLabel":"ErrorSource · object"},{"type":"null","uniqueKey":"errors.items.[INDEX].source.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"ErrorSource · object | null"},"meta":{"oneOf":[{"type":"object","title":"Meta","additionalProperties":true,"uniqueKey":"errors.items.[INDEX].meta.oneOf.0","typeLabel":"Meta · object"},{"type":"null","title":"Meta","uniqueKey":"errors.items.[INDEX].meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"Meta · object | null"}},"type":"object","required":["status","code","title","detail"],"title":"Error","description":"Individual JSON:API error object.","uniqueKey":"errors.items.[INDEX]","typeLabel":"Error · object"},"type":"array","title":"Errors","isRequired":true,"uniqueKey":"errors","typeLabel":"Error · object[]"}},"type":"object","required":["errors"],"title":"ErrorResponse","description":"Standardized JSON:API error response model.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"example":{"errors":[{"status":"413","code":"request_too_large","title":"Request Too Large","detail":"The request body is 5242881 bytes; this API accepts at most 5242880. Split it into smaller requests."}]},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"413","code":"request_too_large","title":"Request Too Large","detail":"The request body is 5242881 bytes; this API accepts at most 5242880. Split it into smaller requests."}]}}},"exampleType":"examples"}},"exampleType":"examples"},"4167228a-18b4-4c6f-95d0-91139e7bade4":{"description":"Validation Error - The request is malformed or has more than 1000 customers. An invalid customer is reported as `failed` in a 200 response instead.","content":{"application/json":{"schema":{"properties":{"errors":{"items":{"properties":{"status":{"type":"string","title":"Status","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","title":"Code","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","title":"Title","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","title":"Detail","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"oneOf":[{"type":"object","title":"ErrorSource","description":"Identifies the source of the error, e.g., via a JSON Pointer.","properties":{"pointer":{"oneOf":[{"type":"string","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer","typeLabel":"string | null"}},"uniqueKey":"errors.items.[INDEX].source.oneOf.0","typeLabel":"ErrorSource · object"},{"type":"null","uniqueKey":"errors.items.[INDEX].source.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"ErrorSource · object | null"},"meta":{"oneOf":[{"type":"object","title":"Meta","additionalProperties":true,"uniqueKey":"errors.items.[INDEX].meta.oneOf.0","typeLabel":"Meta · object"},{"type":"null","title":"Meta","uniqueKey":"errors.items.[INDEX].meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"Meta · object | null"}},"type":"object","required":["status","code","title","detail"],"title":"Error","description":"Individual JSON:API error object.","uniqueKey":"errors.items.[INDEX]","typeLabel":"Error · object"},"type":"array","title":"Errors","isRequired":true,"uniqueKey":"errors","typeLabel":"Error · object[]"}},"type":"object","required":["errors"],"title":"ErrorResponse","description":"Standardized JSON:API error response model.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"example":{"errors":[{"status":"422","code":"validation_error","title":"Validation Error","detail":"List should have at most 1000 items after validation, not 1001","source":{"pointer":"/data/attributes/data"}}]},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"422","code":"validation_error","title":"Validation Error","detail":"List should have at most 1000 items after validation, not 1001","source":{"pointer":"/data/attributes/data"}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"e26e4e86-a593-4bed-ba71-73270e1bebd3":{"description":"Rate limit exceeded. Try again later.","headers":{"Retry-After":{"description":"Time in seconds until the rate limit resets","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"The rate limit ceiling for the given request","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the time window","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"errors":{"items":{"properties":{"status":{"type":"string","title":"Status","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","title":"Code","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","title":"Title","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","title":"Detail","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"oneOf":[{"type":"object","title":"ErrorSource","description":"Identifies the source of the error, e.g., via a JSON Pointer.","properties":{"pointer":{"oneOf":[{"type":"string","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer","typeLabel":"string | null"}},"uniqueKey":"errors.items.[INDEX].source.oneOf.0","typeLabel":"ErrorSource · object"},{"type":"null","uniqueKey":"errors.items.[INDEX].source.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"ErrorSource · object | null"},"meta":{"oneOf":[{"type":"object","title":"Meta","additionalProperties":true,"uniqueKey":"errors.items.[INDEX].meta.oneOf.0","typeLabel":"Meta · object"},{"type":"null","title":"Meta","uniqueKey":"errors.items.[INDEX].meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"Meta · object | null"}},"type":"object","required":["status","code","title","detail"],"title":"Error","description":"Individual JSON:API error object.","uniqueKey":"errors.items.[INDEX]","typeLabel":"Error · object"},"type":"array","title":"Errors","isRequired":true,"uniqueKey":"errors","typeLabel":"Error · object[]"}},"type":"object","required":["errors"],"title":"ErrorResponse","description":"Standardized JSON:API error response model.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"example":{"errors":[{"status":"429","code":"rate_limit_error","title":"Too Many Requests","detail":"Rate limit exceeded"}]},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"429","code":"rate_limit_error","title":"Too Many Requests","detail":"Rate limit exceeded"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"5f88beb4-f846-466c-9465-7cb20324660a":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"errors":{"items":{"properties":{"status":{"type":"string","title":"Status","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","title":"Code","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","title":"Title","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","title":"Detail","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"oneOf":[{"type":"object","title":"ErrorSource","description":"Identifies the source of the error, e.g., via a JSON Pointer.","properties":{"pointer":{"oneOf":[{"type":"string","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pointer","uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source.oneOf.0.pointer","typeLabel":"string | null"}},"uniqueKey":"errors.items.[INDEX].source.oneOf.0","typeLabel":"ErrorSource · object"},{"type":"null","uniqueKey":"errors.items.[INDEX].source.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"ErrorSource · object | null"},"meta":{"oneOf":[{"type":"object","title":"Meta","additionalProperties":true,"uniqueKey":"errors.items.[INDEX].meta.oneOf.0","typeLabel":"Meta · object"},{"type":"null","title":"Meta","uniqueKey":"errors.items.[INDEX].meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"Meta · object | null"}},"type":"object","required":["status","code","title","detail"],"title":"Error","description":"Individual JSON:API error object.","uniqueKey":"errors.items.[INDEX]","typeLabel":"Error · object"},"type":"array","title":"Errors","isRequired":true,"uniqueKey":"errors","typeLabel":"Error · object[]"}},"type":"object","required":["errors"],"title":"ErrorResponse","description":"Standardized JSON:API error response model.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"example":{"errors":[{"status":"500","code":"system_internal_error","title":"Internal Error","detail":"An unexpected error occurred. Our team has been notified."}]},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"500","code":"system_internal_error","title":"Internal Error","detail":"An unexpected error occurred. Our team has been notified."}]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"8a3eb790-4e28-473d-a7df-a613dcb8b23f":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"APIKeyHeader"}},"fc820563-dc05-4696-84f4-100d9ab81303":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"APIKeyHeader"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"X-API-Key"}],"title":"APIKeyHeader"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"},"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":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"taxwire","siteName":"Taxwire Documentation","title":"Upsert customers (batch) - Taxwire Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T18:08:27.117Z","originalFileLocation":"api-reference/customers/batch.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=\"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Taxwire 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/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_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/taxwire/4SC2Aj2b89wSz90t/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upsert customers (batch) - Taxwire Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Taxwire Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://apidocs.taxwire.com/api-reference/customers/batch\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://taxwire.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Upsert+customers+%28batch%29\u0026amp;description=Create+or+update+up+to+1000+customers+in+one+request.+Each+customer+is+matched+on+its+source%2C+source+account+ID%2C+and+source+ID%2C+so+you+can+safely+send+the+same+\u0026amp;theme=48b4f91f11b8c0a5c1c8c1f6\u0026amp;signature=22a1f3f1515a4a1886940a8113a202c13606f1d01ff9a213fc47c12fd3f1691a\">\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=\"Upsert customers (batch) - Taxwire Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://taxwire.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Upsert+customers+%28batch%29\u0026amp;description=Create+or+update+up+to+1000+customers+in+one+request.+Each+customer+is+matched+on+its+source%2C+source+account+ID%2C+and+source+ID%2C+so+you+can+safely+send+the+same+\u0026amp;theme=48b4f91f11b8c0a5c1c8c1f6\u0026amp;signature=22a1f3f1515a4a1886940a8113a202c13606f1d01ff9a213fc47c12fd3f1691a\">\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/taxwire/4SC2Aj2b89wSz90t/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Taxwire Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006ad4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://apidocs.taxwire.com/api-reference/customers/batch\">\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/batch.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://apidocs.taxwire.com/#organization\",\"name\":\"Taxwire Documentation\",\"url\":\"https://apidocs.taxwire.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/taxwire/kIqs87W6QVd_NiC-/logo/light.svg?fit=max\u0026auto=format\u0026n=kIqs87W6QVd_NiC-\u0026q=85\u0026s=7bb92701f7b553132429a252a66c75bc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://apidocs.taxwire.com#website\",\"name\":\"Taxwire Documentation\",\"url\":\"https://apidocs.taxwire.com\",\"publisher\":{\"@id\":\"https://apidocs.taxwire.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://apidocs.taxwire.com/api-reference/customers/batch#webpage\",\"url\":\"https://apidocs.taxwire.com/api-reference/customers/batch\",\"name\":\"Upsert customers (batch)\",\"description\":\"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.\",\"dateModified\":\"2026-11-03T18:08:27.117Z\",\"isPartOf\":{\"@id\":\"https://apidocs.taxwire.com#website\"},\"breadcrumb\":{\"@id\":\"https://apidocs.taxwire.com/api-reference/customers/batch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://apidocs.taxwire.com/api-reference/customers/batch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://apidocs.taxwire.com/api-reference/customers/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upsert customers (batch)\",\"item\":\"https://apidocs.taxwire.com/api-reference/customers/batch\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://apidocs.taxwire.com/api-reference/customers/batch#apireference\",\"headline\":\"Upsert customers (batch)\",\"name\":\"Upsert customers (batch)\",\"description\":\"Create or update up to 1000 customers in one request. Each customer is matched on its source, source account ID, and source ID, so you can safely send the same request again. Each customer succeeds or fails on its own.\",\"url\":\"https://apidocs.taxwire.com/api-reference/customers/batch\",\"mainEntityOfPage\":{\"@id\":\"https://apidocs.taxwire.com/api-reference/customers/batch#webpage\"},\"dateModified\":\"2026-11-03T18:08:27.117Z\",\"publisher\":{\"@id\":\"https://apidocs.taxwire.com/#organization\"},\"isPartOf\":{\"@id\":\"https://apidocs.taxwire.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Taxwire Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Taxwire Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/customers/batch.md","siteName":"Taxwire Documentation","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","icon":"hand-wave","href":"/api-reference/introduction"},{"title":"Quickstart","icon":"bolt","href":"/api-reference/quickstart"},{"title":"Examples","icon":"book","href":"/api-reference/examples"},{"title":"Postman Collection","url":"https://www.postman.com/taxwire/taxwire-public/collection/44544934-51ebc01e-78b1-4157-831d-f4243ac2c7e9?action=share\u0026source=copy-link\u0026creator=29668608\u0026sideView=agentMode","icon":"user-astronaut","href":"/api-reference/postman"}]},{"group":"Guides","pages":[{"title":"Tax calculation in details","icon":"calculator","href":"/api-reference/guides/calculate_taxes"},{"title":"Tax attributes","icon":"tag","href":"/api-reference/guides/tax_attributes"},{"title":"Using the Products APIs","icon":"box","href":"/api-reference/guides/using_products_apis"},{"title":"Using the Customers APIs","icon":"users","href":"/api-reference/guides/using_customers_apis"},{"title":"Tax on a line item","icon":"receipt","href":"/api-reference/guides/sales_tax_lines"},{"title":"Presets","icon":"floppy-disk","href":"/api-reference/guides/presets"},{"title":"Customer exemptions","icon":"certificate","href":"/api-reference/guides/exemptions"},{"title":"Transactions management","icon":"circle-dollar","href":"/api-reference/guides/transactions"},{"title":"VAT Handling","icon":"globe","href":"/api-reference/guides/vat"},{"title":"Discounts","icon":"badge-percent","href":"/api-reference/guides/discounts"}]},{"group":"Transaction flows","pages":[{"title":"Transaction flows","icon":"diagram-project","href":"/api-reference/flows/overview"},{"title":"Checkout and shipment","icon":"cart-shopping","href":"/api-reference/flows/checkout"},{"title":"Cancellations","icon":"ban","href":"/api-reference/flows/cancellations"},{"title":"Refunds","icon":"rotate-left","href":"/api-reference/flows/refunds"},{"title":"Pre-orders","icon":"calendar-clock","href":"/api-reference/flows/prepayments"}]},{"group":"API details","pages":[{"title":"Authentication","icon":"lock","href":"/api-reference/authentication"},{"title":"Versions","icon":"list-ol","href":"/api-reference/versioning"},{"title":"Errors","icon":"circle-exclamation","href":"/api-reference/errors"},{"title":"FAQ","icon":"circle-question","href":"/api-reference/faq"}]},{"group":"Calculations","pages":[{"title":"Tax calculations","openapi":"POST /calculations","href":"/api-reference/calculations/create"}]},{"group":"Addresses","icon":"location-dot","pages":[{"title":"Validate an address","openapi":"POST /addresses/validate","href":"/api-reference/addresses/validate"}]},{"group":"Transactions","icon":"credit-card","pages":[{"title":"Retrieve transaction","openapi":"GET /transactions/{transaction_id}","href":"/api-reference/transactions/retrieve"},{"title":"Retrieve transaction by reference ID","openapi":"GET /transactions/by_reference_id/{reference_id}","href":"/api-reference/transactions/by-reference-id"},{"title":"Create transaction","openapi":"POST /transactions","href":"/api-reference/transactions/create"},{"title":"Update transaction","openapi":"POST /transactions/{transaction_id}","href":"/api-reference/transactions/update"}]},{"group":"Customers","icon":"users","pages":[{"title":"List customers","openapi":"GET /customers","href":"/api-reference/customers/list"},{"title":"Retrieve customer","openapi":"GET /customers/{customer_id}","href":"/api-reference/customers/retrieve"},{"title":"Create customer","openapi":"POST /customers","href":"/api-reference/customers/create"},{"title":"Update customer","openapi":"PATCH /customers/{customer_id}","href":"/api-reference/customers/update"},{"title":"Delete customer","openapi":"DELETE /customers/{customer_id}","description":"Delete a customer and its exemption certificates. Returns 204 with no body, including when the customer was already deleted, so a retry is safe. A deleted customer keeps its `source`, `source_account_id` and `source_id`, so creating it again is a 409 with `meta.deleted: true`; restore it in the Taxwire app instead.","href":"/api-reference/customers/delete"},{"title":"Upsert customers (batch)","openapi":"POST /customers/batch","href":"/api-reference/customers/batch"}]},{"group":"Certificates","icon":"certificate","pages":[{"title":"List certificates","openapi":"GET /certificates","description":"Lists your customers' exemption certificates, newest first. Page with `limit` + `starting_after` (pass the last certificate's `id`). Filters combine with AND; repeat a filter to match any of several values. Certificates of deleted customers, and emailed certificates not yet matched to a customer, are left out.","href":"/api-reference/certificates/list"},{"title":"Retrieve certificate","openapi":"GET /certificates/{certificate_id}","href":"/api-reference/certificates/retrieve"}]},{"group":"Jurisdictions","icon":"map","pages":[{"title":"List jurisdictions","openapi":"GET /jurisdictions","href":"/api-reference/jurisdictions/list"}]},{"group":"Product Tax Codes (PTC) \u0026 Attributes","icon":"barcode","pages":[{"title":"List Product Tax codes","openapi":"GET /product-tax-codes","href":"/api-reference/product-tax-codes/list"},{"title":"List Product Attributes","openapi":"GET /product-attributes","href":"/api-reference/product-attributes/list"}]},{"group":"Products","icon":"box","pages":[{"title":"List Products","openapi":"GET /products","href":"/api-reference/products/list"},{"title":"Retrieve product","openapi":"GET /products/{product_id}","href":"/api-reference/products/retrieve"},{"title":"Create product","openapi":"POST /products","href":"/api-reference/products/create"},{"title":"Update product","openapi":"PATCH /products/{product_id}","href":"/api-reference/products/update"},{"title":"Delete product","openapi":"DELETE /products/{product_id}","href":"/api-reference/products/delete"},{"title":"Upsert products (batch)","openapi":"POST /products/batch","href":"/api-reference/products/batch"}]},{"group":"Resources","pages":[{"title":"Product hierarchy","mode":"wide","icon":"sitemap","href":"/resources/product-tax-codes/product-hierarchy"}]}]},"basePath":"","title":"Upsert customers (batch) - Taxwire Documentation","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","SectionHeading-B08KBUKT.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}