Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Atlas","colors":{"primary":"#9A47D5","light":"#c498e3","dark":"#9A47D5"},"logo":{"light":"https://mintcdn.com/atlas-e6c381cc/CZyope2K7u39JYzl/logo/atlas-lightmode.png?fit=max\u0026auto=format\u0026n=CZyope2K7u39JYzl\u0026q=85\u0026s=8936437d0db9d56dba50ba9b17d3f4aa","dark":"https://mintcdn.com/atlas-e6c381cc/CZyope2K7u39JYzl/logo/atlas-darkmode.png?fit=max\u0026auto=format\u0026n=CZyope2K7u39JYzl\u0026q=85\u0026s=a47eb49a72beae5a86f8e2a12ed85a23"},"favicon":"/favicon.ico","api":{"playground":{"display":"interactive"},"examples":{"prefill":true}},"navbar":{"links":[{"href":"https://www.runonatlas.com/contact-us","label":"Support"}],"primary":{"type":"button","label":"Application","href":"https://app.runonatlas.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/runonatlas","discord":"https://discord.gg/ZjejsUX7"}},"contextual":{"options":["copy","chatgpt","claude","view"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/ZjejsUX7"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"atlas-e6c381cc","hasAudioNarration":false,"actualSubdomain":"atlas-e6c381cc","customDomains":["docs.runonatlas.com"],"gitSource":{"type":"github","owner":"runonatlas","repo":"atlas-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21f63eb595a58a20e51b55","collectionId":"a3937cec-6d4d-43f6-a185-34f34756a96a","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21f63eb595a58a20e51b55:success","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Get Started","count":10},{"language":"default","tag":"Customers","count":9},{"language":"default","tag":"Subscriptions","count":8},{"language":"default","tag":"Developer Portal","count":6},{"language":"default","tag":"Getting Started with Atlas","count":5},{"language":"default","tag":"SDK Documentation","count":4},{"language":"default","tag":"Advanced Atlas","count":3},{"language":"default","tag":"Events","count":1},{"language":"default","tag":"Invoices","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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/customers/create-customer-with-default-plan-subscription","slug":"/api-reference/customers/create-customer-with-default-plan-subscription","pageMetadata":{"title":"Create customer with default plan subscription","description":"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers","href":"/api-reference/customers/create-customer-with-default-plan-subscription","autogeneratedByOpenApi":true,"hidden":false},"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 a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create customer with default plan subscription","description":"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers","href":"/api-reference/customers/create-customer-with-default-plan-subscription","autogeneratedByOpenApi":true,"hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.","summary":"Create customer with default plan subscription","tags":["Customers"],"security":["4fdab2e4-3c25-4265-9820-b57e8ee85f76"],"requestBody":"19241689-d7ee-4c3a-ab02-87c45d810582","responses":{"201":"5ff6d2ea-2d06-47e3-9eb6-a72631b08e3b","400":"cf671ca1-b30e-4e10-a857-edfb962ef27a","401":"6fd3b8a9-ca04-4f02-b91d-6d2ca7fb3d9a","409":"e7657b66-b2af-47b1-8e39-6016504a79c8"},"method":"post","type":"path","servers":["3c9753c2-e6e2-45af-9d3e-d3e995223724"],"path":"/external/customers","baseUrlOptions":["https://platform.runonatlas.com"],"title":"Create customer with default plan subscription","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.externalId":"external-customer-id-123","body.billingAddress1.oneOf.0":"123 Main St","body.billingAddress2.oneOf.0":"Apt 1","body.billingCity.oneOf.0":"Anytown","body.billingCountry.oneOf.0":"US","body.billingState.oneOf.0":"CA","body.billingZipCode.oneOf.0":"12345","body.shippingAddress1.oneOf.0":"123 Main St","body.shippingAddress2.oneOf.0":"Apt 1","body.shippingCity.oneOf.0":"Anytown","body.shippingCountry.oneOf.0":"US","body.shippingState.oneOf.0":"CA","body.shippingZipCode.oneOf.0":"12345","body.email.oneOf.0":"john.doe@example.com","body.name.oneOf.0":"John Doe","body.quickBooksId.oneOf.0":"quickbooks-customer-id-123","body.stripeId.oneOf.0":"stripe-customer-id-123","body.xeroId.oneOf.0":"xero-customer-id-123"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"description":"The external ID of the customer (e.g. the customer ID in your system)","example":"external-customer-id-123","isRequired":true,"uniqueKey":"externalId","typeLabel":"string"},"billingAddress1":{"oneOf":[{"type":"string","minLength":1,"description":"Billing address line 1","example":"123 Main St","uniqueKey":"billingAddress1.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing address line 1","example":"123 Main St","uniqueKey":"billingAddress1.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress1","typeLabel":"string | null"},"billingAddress2":{"oneOf":[{"type":"string","minLength":1,"description":"Billing address line 2","example":"Apt 1","uniqueKey":"billingAddress2.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing address line 2","example":"Apt 1","uniqueKey":"billingAddress2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress2","typeLabel":"string | null"},"billingCity":{"oneOf":[{"type":"string","minLength":1,"description":"Billing city","example":"Anytown","uniqueKey":"billingCity.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing city","example":"Anytown","uniqueKey":"billingCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingCity","typeLabel":"string | null"},"billingCountry":{"oneOf":[{"type":"string","minLength":1,"description":"Billing country","example":"US","uniqueKey":"billingCountry.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing country","example":"US","uniqueKey":"billingCountry.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingCountry","typeLabel":"string | null"},"billingState":{"oneOf":[{"type":"string","minLength":1,"description":"Billing state","example":"CA","uniqueKey":"billingState.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing state","example":"CA","uniqueKey":"billingState.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingState","typeLabel":"string | null"},"billingZipCode":{"oneOf":[{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","description":"Billing zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"billingZipCode.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d{5}(-\\d{4})?$","description":"Billing zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"billingZipCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingZipCode","typeLabel":"string | null"},"shippingAddress1":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping address line 1","example":"123 Main St","uniqueKey":"shippingAddress1.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping address line 1","example":"123 Main St","uniqueKey":"shippingAddress1.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress1","typeLabel":"string | null"},"shippingAddress2":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping address line 2","example":"Apt 1","uniqueKey":"shippingAddress2.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping address line 2","example":"Apt 1","uniqueKey":"shippingAddress2.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress2","typeLabel":"string | null"},"shippingCity":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping city","example":"Anytown","uniqueKey":"shippingCity.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping city","example":"Anytown","uniqueKey":"shippingCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingCity","typeLabel":"string | null"},"shippingCountry":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping country","example":"US","uniqueKey":"shippingCountry.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping country","example":"US","uniqueKey":"shippingCountry.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingCountry","typeLabel":"string | null"},"shippingState":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping state","example":"CA","uniqueKey":"shippingState.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping state","example":"CA","uniqueKey":"shippingState.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingState","typeLabel":"string | null"},"shippingZipCode":{"oneOf":[{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","description":"Shipping zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"shippingZipCode.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d{5}(-\\d{4})?$","description":"Shipping zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"shippingZipCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingZipCode","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","minLength":1,"format":"email","description":"The email of the customer","example":"john.doe@example.com","uniqueKey":"email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","minLength":1,"format":"email","description":"The email of the customer","example":"john.doe@example.com","uniqueKey":"email.oneOf.1","typeLabel":"null"}],"uniqueKey":"email","typeLabel":"string\u003cemail> | null"},"name":{"oneOf":[{"type":"string","minLength":1,"description":"The name of the customer","example":"John Doe","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The name of the customer","example":"John Doe","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"quickBooksId":{"oneOf":[{"type":"string","minLength":1,"description":"The QuickBooks ID of the customer","example":"quickbooks-customer-id-123","uniqueKey":"quickBooksId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The QuickBooks ID of the customer","example":"quickbooks-customer-id-123","uniqueKey":"quickBooksId.oneOf.1","typeLabel":"null"}],"uniqueKey":"quickBooksId","typeLabel":"string | null"},"stripeId":{"oneOf":[{"type":"string","minLength":1,"description":"The Stripe ID of the customer","example":"stripe-customer-id-123","uniqueKey":"stripeId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The Stripe ID of the customer","example":"stripe-customer-id-123","uniqueKey":"stripeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripeId","typeLabel":"string | null"},"xeroId":{"oneOf":[{"type":"string","minLength":1,"description":"The Xero ID of the customer","example":"xero-customer-id-123","uniqueKey":"xeroId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The Xero ID of the customer","example":"xero-customer-id-123","uniqueKey":"xeroId.oneOf.1","typeLabel":"null"}],"uniqueKey":"xeroId","typeLabel":"string | null"}},"required":["externalId"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"externalId":"external-customer-id-123","billingAddress1":"123 Main St","billingAddress2":"Apt 1","billingCity":"Anytown","billingCountry":"US","billingState":"CA","billingZipCode":"12345","shippingAddress1":"123 Main St","shippingAddress2":"Apt 1","shippingCity":"Anytown","shippingCountry":"US","shippingState":"CA","shippingZipCode":"12345","email":"john.doe@example.com","name":"John Doe","quickBooksId":"quickbooks-customer-id-123","stripeId":"stripe-customer-id-123","xeroId":"xero-customer-id-123"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5ff6d2ea-2d06-47e3-9eb6-a72631b08e3b":{"description":"The customer that has been created.","content":{"application/json":{"schema":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the customer was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate>"},"id":{"type":"string","minLength":1,"description":"The Atlas customer ID","example":"atlas-internal-customer-id-123","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"updatedAt":{"type":"string","format":"date","description":"The date and time the customer was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate>"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"merchantId","typeLabel":"string"},"subscriptions":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the subscription was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].createdAt","typeLabel":"string\u003cdate>"},"id":{"type":"string","minLength":1,"description":"The Atlas subscription ID","example":"atlas-internal-subscription-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].id","typeLabel":"string"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the subscription","format":"date","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].startDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"string","description":"The start date of the subscription","format":"date-time","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].startDate.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].startDate","typeLabel":"string\u003cdate> | string\u003cdate-time>"},"status":{"type":"string","enum":["draft","pendingActivation","active","ended","deleted"],"description":"The status of the subscription","example":"active","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the subscription was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].updatedAt","typeLabel":"string\u003cdate>"},"allowCustomerChanges":{"type":"boolean","description":"Whether the customer can change the subscription, for example by cancelling it or creating another.","example":true,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].allowCustomerChanges","typeLabel":"boolean"},"autoChargeInvoice":{"type":"boolean","description":"Whether to automatically charge invoices for this subscription to the associated payment gateway. Requires a valid Stripe connection. Only compatible with a Stripe payment gateway.","example":false,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].autoChargeInvoice","typeLabel":"boolean"},"autoSyncInvoice":{"type":"boolean","description":"Whether to automatically sync invoices for this subscription to the associated payment gateway.","example":true,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].autoSyncInvoice","typeLabel":"boolean"},"autoSendInvoice":{"type":"boolean","description":"Whether to automatically send invoices for this subscription from the associated payment gateway to the customers email address.","example":true,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].autoSendInvoice","typeLabel":"boolean"},"paymentGateway":{"oneOf":[{"type":"string","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this subscription","example":"Stripe","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].paymentGateway.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this subscription","example":"Stripe","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].paymentGateway.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].paymentGateway","typeLabel":"enum\u003cstring> | null"},"isTrial":{"type":"boolean","description":"Whether this subscription is a trial subscription","example":false,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].isTrial","typeLabel":"boolean"},"customerId":{"type":"string","minLength":1,"description":"The Atlas customer ID","example":"atlas-internal-customer-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].customerId","typeLabel":"string"},"planId":{"type":"string","minLength":1,"description":"The Atlas plan ID","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].planId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].merchantId","typeLabel":"string"},"plan":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the plan was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.createdAt","typeLabel":"string\u003cdate>"},"crossEnvironmentId":{"type":"string","minLength":1,"description":"The cross environment ID of the plan","example":"plan-cross-env-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.crossEnvironmentId","typeLabel":"string"},"currency":{"type":"string","enum":["USD"],"description":"The currency for this plan","example":"USD","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.currency","typeLabel":"enum\u003cstring>"},"description":{"type":"string","minLength":1,"description":"The description of the plan","example":"A great plan for your needs","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.description","typeLabel":"string"},"id":{"type":"string","minLength":1,"description":"The Atlas plan ID","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.id","typeLabel":"string"},"isPrivate":{"type":"boolean","description":"Whether the plan is private","example":false,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.isPrivate","typeLabel":"boolean"},"name":{"type":"string","minLength":1,"description":"The name of the plan","example":"Pro","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.name","typeLabel":"string"},"netTerms":{"type":"string","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this plan","example":"net30","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.netTerms","typeLabel":"enum\u003cstring>"},"purchasable":{"type":"boolean","description":"Whether the plan is purchasable","example":true,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.purchasable","typeLabel":"boolean"},"requestPricingText":{"type":"string","minLength":0,"default":"Request pricing","description":"The text to display when requesting pricing for non-purchasable plans","example":"Contact us for pricing","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.requestPricingText","typeLabel":"string"},"requestPricingUrl":{"type":"string","minLength":0,"description":"The URL to redirect to when requesting pricing for non-purchasable plans","example":"https://example.com/request-pricing","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.requestPricingUrl","typeLabel":"string"},"status":{"type":"string","enum":["available","draft","archived","deleted"],"description":"The status of the plan","example":"available","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the plan was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.updatedAt","typeLabel":"string\u003cdate>"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.merchantId","typeLabel":"string"},"externalId":{"oneOf":[{"type":"string","minLength":1,"description":"The external ID of the plan (e.g. the plan ID in your system)","example":"external-plan-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.externalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The external ID of the plan (e.g. the plan ID in your system)","example":"external-plan-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.externalId","typeLabel":"string | null"},"basePlanPriceId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the monthly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the monthly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceId","typeLabel":"string | null"},"basePlanPriceQuarterlyId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the quarterly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the quarterly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId","typeLabel":"string | null"},"basePlanPriceAnnuallyId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the annual base plan price","example":"atlas-internal-price-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the annual base plan price","example":"atlas-internal-price-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId","typeLabel":"string | null"},"basePlanPriceMonthlyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the monthly base plan price","example":"active","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the monthly base plan price","example":"active","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPriceQuarterlyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the quarterly base plan price","example":"active","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the quarterly base plan price","example":"active","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPriceAnnuallyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the annual base plan price","example":"active","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the annual base plan price","example":"active","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPrice":{"oneOf":[{"type":"object","properties":{"billingCadence":{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this price","example":"monthly","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billingCadence","typeLabel":"enum\u003cstring>"},"billingMode":{"type":"string","enum":["advance","arrears","realTime"],"description":"The billing mode for this price","example":"advance","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billingMode","typeLabel":"enum\u003cstring>"},"blockOverage":{"type":"boolean","default":false,"description":"Whether to block overage for this price; applies only to real-time credit-based features","example":false,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.blockOverage","typeLabel":"boolean"},"createdAt":{"type":"string","format":"date","description":"The date and time the price was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.createdAt","typeLabel":"string\u003cdate>"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.entityType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","minLength":1,"description":"The name of the price. Inherited from the feature that this price is for.","example":"Pro Price","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.name","typeLabel":"string"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit","fixed"],"description":"The price type for this price","example":"unit","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.priceType","typeLabel":"enum\u003cstring>"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules.additionalProperties","typeLabel":"null"},"description":"The pricing rules for this price","example":{"quantity":1,"price":10},"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules","typeLabel":"object"},"status":{"type":"string","enum":["active","deleted"],"description":"The status of the price","example":"active","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.status","typeLabel":"enum\u003cstring>"},"usesCustomPricingUnit":{"type":"boolean","default":false,"description":"Whether this price uses a custom pricing unit","example":false,"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.usesCustomPricingUnit","typeLabel":"boolean"},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billableId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.merchantId","typeLabel":"string"},"limit":{"oneOf":[{"type":"integer","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit","typeLabel":"integer | null"},"maxUsage":{"oneOf":[{"type":"integer","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000,"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage","typeLabel":"integer | null"},"customPricingUnitId":{"oneOf":[{"type":"string","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123","uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId","typeLabel":"string | null"}},"required":["billingCadence","billingMode","blockOverage","createdAt","entityType","id","name","priceType","rules","status","usesCustomPricingUnit","billableId","merchantId"],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"billingCadence":{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this price","example":"monthly"},"billingMode":{"type":"string","enum":["advance","arrears","realTime"],"description":"The billing mode for this price","example":"advance"},"blockOverage":{"type":"boolean","default":false,"description":"Whether to block overage for this price; applies only to real-time credit-based features","example":false},"createdAt":{"type":"string","format":"date","description":"The date and time the price was created","example":"2021-01-01T00:00:00.000Z"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement"},"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123"},"limit":{"oneOf":[{"type":"integer","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100},{"type":"null","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100}]},"maxUsage":{"oneOf":[{"type":"integer","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000},{"type":"null","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000}]},"name":{"type":"string","minLength":1,"description":"The name of the price. Inherited from the feature that this price is for.","example":"Pro Price"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit","fixed"],"description":"The price type for this price","example":"unit"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null"}]},"description":"The pricing rules for this price","example":{"quantity":1,"price":10}},"status":{"type":"string","enum":["active","deleted"],"description":"The status of the price","example":"active"},"usesCustomPricingUnit":{"type":"boolean","default":false,"description":"Whether this price uses a custom pricing unit","example":false},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123"},"customPricingUnitId":{"oneOf":[{"type":"string","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123"},{"type":"null","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123"}]},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123"}},"required":["billingCadence","billingMode","blockOverage","createdAt","entityType","id","name","priceType","rules","status","usesCustomPricingUnit","billableId","merchantId"],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].plan.basePlanPrice","typeLabel":"object | null"}},"required":["createdAt","crossEnvironmentId","currency","description","id","isPrivate","name","netTerms","purchasable","requestPricingText","requestPricingUrl","status","updatedAt","merchantId"],"isRequired":true,"uniqueKey":"subscriptions.items.[INDEX].plan","typeLabel":"object"},"billingCadence":{"oneOf":[{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this subscription","example":"monthly","uniqueKey":"subscriptions.items.[INDEX].billingCadence.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this subscription","example":"monthly","uniqueKey":"subscriptions.items.[INDEX].billingCadence.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].billingCadence","typeLabel":"enum\u003cstring> | null"},"currency":{"oneOf":[{"type":"string","enum":["USD"],"description":"The currency for this subscription","example":"USD","uniqueKey":"subscriptions.items.[INDEX].currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["USD"],"description":"The currency for this subscription","example":"USD","uniqueKey":"subscriptions.items.[INDEX].currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].currency","typeLabel":"enum\u003cstring> | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the subscription","format":"date","example":"2021-12-31T00:00:00.000Z","uniqueKey":"subscriptions.items.[INDEX].endDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"string","description":"The end date of the subscription","format":"date-time","example":"2021-12-31T00:00:00.000Z","uniqueKey":"subscriptions.items.[INDEX].endDate.oneOf.1","typeLabel":"string\u003cdate-time>"},{"description":"The end date of the subscription","example":"2021-12-31T00:00:00.000Z","uniqueKey":"subscriptions.items.[INDEX].endDate.oneOf.2","typeLabel":"any"},{"type":"null","description":"The end date of the subscription","example":"2021-12-31T00:00:00.000Z","uniqueKey":"subscriptions.items.[INDEX].endDate.oneOf.3","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].endDate","typeLabel":"string\u003cdate> | string\u003cdate-time> | any | null"},"netTerms":{"oneOf":[{"type":"string","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this subscription; applies only if autoChargeInvoice is false. Determines the number of days after the invoice is issued before the payment is due.","example":"net30","uniqueKey":"subscriptions.items.[INDEX].netTerms.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this subscription; applies only if autoChargeInvoice is false. Determines the number of days after the invoice is issued before the payment is due.","example":"net30","uniqueKey":"subscriptions.items.[INDEX].netTerms.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].netTerms","typeLabel":"enum\u003cstring> | null"},"chargeForUsageBasedPricesDuringTrial":{"oneOf":[{"type":"boolean","description":"Whether to charge for usage-based prices during the trial period. Only applies if isTrial is true.","example":false,"uniqueKey":"subscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to charge for usage-based prices during the trial period. Only applies if isTrial is true.","example":false,"uniqueKey":"subscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial","typeLabel":"boolean | null"}},"required":["createdAt","id","startDate","status","updatedAt","allowCustomerChanges","autoChargeInvoice","autoSyncInvoice","autoSendInvoice","paymentGateway","isTrial","customerId","planId","merchantId","plan"],"uniqueKey":"subscriptions.items.[INDEX]","typeLabel":"object"},"description":"The subscriptions associated with the customer","isRequired":true,"uniqueKey":"subscriptions","typeLabel":"object[]"},"activeSubscriptions":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the subscription was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].createdAt","typeLabel":"string\u003cdate>"},"id":{"type":"string","minLength":1,"description":"The Atlas subscription ID","example":"atlas-internal-subscription-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].id","typeLabel":"string"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the subscription","format":"date","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].startDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"string","description":"The start date of the subscription","format":"date-time","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].startDate.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].startDate","typeLabel":"string\u003cdate> | string\u003cdate-time>"},"status":{"type":"string","enum":["draft","pendingActivation","active","ended","deleted"],"description":"The status of the subscription","example":"active","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the subscription was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].updatedAt","typeLabel":"string\u003cdate>"},"allowCustomerChanges":{"type":"boolean","description":"Whether the customer can change the subscription, for example by cancelling it or creating another.","example":true,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].allowCustomerChanges","typeLabel":"boolean"},"autoChargeInvoice":{"type":"boolean","description":"Whether to automatically charge invoices for this subscription to the associated payment gateway. Requires a valid Stripe connection. Only compatible with a Stripe payment gateway.","example":false,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].autoChargeInvoice","typeLabel":"boolean"},"autoSyncInvoice":{"type":"boolean","description":"Whether to automatically sync invoices for this subscription to the associated payment gateway.","example":true,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].autoSyncInvoice","typeLabel":"boolean"},"autoSendInvoice":{"type":"boolean","description":"Whether to automatically send invoices for this subscription from the associated payment gateway to the customers email address.","example":true,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].autoSendInvoice","typeLabel":"boolean"},"paymentGateway":{"oneOf":[{"type":"string","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this subscription","example":"Stripe","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].paymentGateway.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this subscription","example":"Stripe","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].paymentGateway.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].paymentGateway","typeLabel":"enum\u003cstring> | null"},"isTrial":{"type":"boolean","description":"Whether this subscription is a trial subscription","example":false,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].isTrial","typeLabel":"boolean"},"customerId":{"type":"string","minLength":1,"description":"The Atlas customer ID","example":"atlas-internal-customer-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].customerId","typeLabel":"string"},"planId":{"type":"string","minLength":1,"description":"The Atlas plan ID","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].planId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].merchantId","typeLabel":"string"},"plan":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the plan was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.createdAt","typeLabel":"string\u003cdate>"},"crossEnvironmentId":{"type":"string","minLength":1,"description":"The cross environment ID of the plan","example":"plan-cross-env-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.crossEnvironmentId","typeLabel":"string"},"currency":{"type":"string","enum":["USD"],"description":"The currency for this plan","example":"USD","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.currency","typeLabel":"enum\u003cstring>"},"description":{"type":"string","minLength":1,"description":"The description of the plan","example":"A great plan for your needs","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.description","typeLabel":"string"},"id":{"type":"string","minLength":1,"description":"The Atlas plan ID","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.id","typeLabel":"string"},"isPrivate":{"type":"boolean","description":"Whether the plan is private","example":false,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.isPrivate","typeLabel":"boolean"},"name":{"type":"string","minLength":1,"description":"The name of the plan","example":"Pro","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.name","typeLabel":"string"},"netTerms":{"type":"string","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this plan","example":"net30","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.netTerms","typeLabel":"enum\u003cstring>"},"purchasable":{"type":"boolean","description":"Whether the plan is purchasable","example":true,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.purchasable","typeLabel":"boolean"},"requestPricingText":{"type":"string","minLength":0,"default":"Request pricing","description":"The text to display when requesting pricing for non-purchasable plans","example":"Contact us for pricing","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.requestPricingText","typeLabel":"string"},"requestPricingUrl":{"type":"string","minLength":0,"description":"The URL to redirect to when requesting pricing for non-purchasable plans","example":"https://example.com/request-pricing","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.requestPricingUrl","typeLabel":"string"},"status":{"type":"string","enum":["available","draft","archived","deleted"],"description":"The status of the plan","example":"available","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the plan was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.updatedAt","typeLabel":"string\u003cdate>"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.merchantId","typeLabel":"string"},"externalId":{"oneOf":[{"type":"string","minLength":1,"description":"The external ID of the plan (e.g. the plan ID in your system)","example":"external-plan-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.externalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The external ID of the plan (e.g. the plan ID in your system)","example":"external-plan-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.externalId","typeLabel":"string | null"},"basePlanPriceId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the monthly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the monthly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceId","typeLabel":"string | null"},"basePlanPriceQuarterlyId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the quarterly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the quarterly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId","typeLabel":"string | null"},"basePlanPriceAnnuallyId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the annual base plan price","example":"atlas-internal-price-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the annual base plan price","example":"atlas-internal-price-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId","typeLabel":"string | null"},"basePlanPriceMonthlyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the monthly base plan price","example":"active","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the monthly base plan price","example":"active","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPriceQuarterlyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the quarterly base plan price","example":"active","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the quarterly base plan price","example":"active","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPriceAnnuallyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the annual base plan price","example":"active","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the annual base plan price","example":"active","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPrice":{"oneOf":[{"type":"object","properties":{"billingCadence":{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this price","example":"monthly","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billingCadence","typeLabel":"enum\u003cstring>"},"billingMode":{"type":"string","enum":["advance","arrears","realTime"],"description":"The billing mode for this price","example":"advance","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billingMode","typeLabel":"enum\u003cstring>"},"blockOverage":{"type":"boolean","default":false,"description":"Whether to block overage for this price; applies only to real-time credit-based features","example":false,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.blockOverage","typeLabel":"boolean"},"createdAt":{"type":"string","format":"date","description":"The date and time the price was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.createdAt","typeLabel":"string\u003cdate>"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.entityType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","minLength":1,"description":"The name of the price. Inherited from the feature that this price is for.","example":"Pro Price","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.name","typeLabel":"string"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit","fixed"],"description":"The price type for this price","example":"unit","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.priceType","typeLabel":"enum\u003cstring>"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules.additionalProperties","typeLabel":"null"},"description":"The pricing rules for this price","example":{"quantity":1,"price":10},"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules","typeLabel":"object"},"status":{"type":"string","enum":["active","deleted"],"description":"The status of the price","example":"active","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.status","typeLabel":"enum\u003cstring>"},"usesCustomPricingUnit":{"type":"boolean","default":false,"description":"Whether this price uses a custom pricing unit","example":false,"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.usesCustomPricingUnit","typeLabel":"boolean"},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billableId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.merchantId","typeLabel":"string"},"limit":{"oneOf":[{"type":"integer","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit","typeLabel":"integer | null"},"maxUsage":{"oneOf":[{"type":"integer","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000,"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage","typeLabel":"integer | null"},"customPricingUnitId":{"oneOf":[{"type":"string","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123","uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId","typeLabel":"string | null"}},"required":["billingCadence","billingMode","blockOverage","createdAt","entityType","id","name","priceType","rules","status","usesCustomPricingUnit","billableId","merchantId"],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"billingCadence":{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this price","example":"monthly"},"billingMode":{"type":"string","enum":["advance","arrears","realTime"],"description":"The billing mode for this price","example":"advance"},"blockOverage":{"type":"boolean","default":false,"description":"Whether to block overage for this price; applies only to real-time credit-based features","example":false},"createdAt":{"type":"string","format":"date","description":"The date and time the price was created","example":"2021-01-01T00:00:00.000Z"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement"},"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123"},"limit":{"oneOf":[{"type":"integer","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100},{"type":"null","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100}]},"maxUsage":{"oneOf":[{"type":"integer","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000},{"type":"null","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000}]},"name":{"type":"string","minLength":1,"description":"The name of the price. Inherited from the feature that this price is for.","example":"Pro Price"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit","fixed"],"description":"The price type for this price","example":"unit"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null"}]},"description":"The pricing rules for this price","example":{"quantity":1,"price":10}},"status":{"type":"string","enum":["active","deleted"],"description":"The status of the price","example":"active"},"usesCustomPricingUnit":{"type":"boolean","default":false,"description":"Whether this price uses a custom pricing unit","example":false},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123"},"customPricingUnitId":{"oneOf":[{"type":"string","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123"},{"type":"null","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123"}]},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123"}},"required":["billingCadence","billingMode","blockOverage","createdAt","entityType","id","name","priceType","rules","status","usesCustomPricingUnit","billableId","merchantId"],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].plan.basePlanPrice","typeLabel":"object | null"}},"required":["createdAt","crossEnvironmentId","currency","description","id","isPrivate","name","netTerms","purchasable","requestPricingText","requestPricingUrl","status","updatedAt","merchantId"],"isRequired":true,"uniqueKey":"activeSubscriptions.items.[INDEX].plan","typeLabel":"object"},"billingCadence":{"oneOf":[{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this subscription","example":"monthly","uniqueKey":"activeSubscriptions.items.[INDEX].billingCadence.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this subscription","example":"monthly","uniqueKey":"activeSubscriptions.items.[INDEX].billingCadence.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].billingCadence","typeLabel":"enum\u003cstring> | null"},"currency":{"oneOf":[{"type":"string","enum":["USD"],"description":"The currency for this subscription","example":"USD","uniqueKey":"activeSubscriptions.items.[INDEX].currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["USD"],"description":"The currency for this subscription","example":"USD","uniqueKey":"activeSubscriptions.items.[INDEX].currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].currency","typeLabel":"enum\u003cstring> | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the subscription","format":"date","example":"2021-12-31T00:00:00.000Z","uniqueKey":"activeSubscriptions.items.[INDEX].endDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"string","description":"The end date of the subscription","format":"date-time","example":"2021-12-31T00:00:00.000Z","uniqueKey":"activeSubscriptions.items.[INDEX].endDate.oneOf.1","typeLabel":"string\u003cdate-time>"},{"description":"The end date of the subscription","example":"2021-12-31T00:00:00.000Z","uniqueKey":"activeSubscriptions.items.[INDEX].endDate.oneOf.2","typeLabel":"any"},{"type":"null","description":"The end date of the subscription","example":"2021-12-31T00:00:00.000Z","uniqueKey":"activeSubscriptions.items.[INDEX].endDate.oneOf.3","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].endDate","typeLabel":"string\u003cdate> | string\u003cdate-time> | any | null"},"netTerms":{"oneOf":[{"type":"string","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this subscription; applies only if autoChargeInvoice is false. Determines the number of days after the invoice is issued before the payment is due.","example":"net30","uniqueKey":"activeSubscriptions.items.[INDEX].netTerms.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this subscription; applies only if autoChargeInvoice is false. Determines the number of days after the invoice is issued before the payment is due.","example":"net30","uniqueKey":"activeSubscriptions.items.[INDEX].netTerms.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].netTerms","typeLabel":"enum\u003cstring> | null"},"chargeForUsageBasedPricesDuringTrial":{"oneOf":[{"type":"boolean","description":"Whether to charge for usage-based prices during the trial period. Only applies if isTrial is true.","example":false,"uniqueKey":"activeSubscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to charge for usage-based prices during the trial period. Only applies if isTrial is true.","example":false,"uniqueKey":"activeSubscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial.oneOf.1","typeLabel":"null"}],"uniqueKey":"activeSubscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial","typeLabel":"boolean | null"}},"required":["createdAt","id","startDate","status","updatedAt","allowCustomerChanges","autoChargeInvoice","autoSyncInvoice","autoSendInvoice","paymentGateway","isTrial","customerId","planId","merchantId","plan"],"uniqueKey":"activeSubscriptions.items.[INDEX]","typeLabel":"object"},"description":"The active subscriptions associated with the customer","isRequired":true,"uniqueKey":"activeSubscriptions","typeLabel":"object[]"},"upcomingSubscriptions":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the subscription was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].createdAt","typeLabel":"string\u003cdate>"},"id":{"type":"string","minLength":1,"description":"The Atlas subscription ID","example":"atlas-internal-subscription-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].id","typeLabel":"string"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the subscription","format":"date","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].startDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"string","description":"The start date of the subscription","format":"date-time","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].startDate.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].startDate","typeLabel":"string\u003cdate> | string\u003cdate-time>"},"status":{"type":"string","enum":["draft","pendingActivation","active","ended","deleted"],"description":"The status of the subscription","example":"active","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the subscription was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].updatedAt","typeLabel":"string\u003cdate>"},"allowCustomerChanges":{"type":"boolean","description":"Whether the customer can change the subscription, for example by cancelling it or creating another.","example":true,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].allowCustomerChanges","typeLabel":"boolean"},"autoChargeInvoice":{"type":"boolean","description":"Whether to automatically charge invoices for this subscription to the associated payment gateway. Requires a valid Stripe connection. Only compatible with a Stripe payment gateway.","example":false,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].autoChargeInvoice","typeLabel":"boolean"},"autoSyncInvoice":{"type":"boolean","description":"Whether to automatically sync invoices for this subscription to the associated payment gateway.","example":true,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].autoSyncInvoice","typeLabel":"boolean"},"autoSendInvoice":{"type":"boolean","description":"Whether to automatically send invoices for this subscription from the associated payment gateway to the customers email address.","example":true,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].autoSendInvoice","typeLabel":"boolean"},"paymentGateway":{"oneOf":[{"type":"string","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this subscription","example":"Stripe","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].paymentGateway.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this subscription","example":"Stripe","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].paymentGateway.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].paymentGateway","typeLabel":"enum\u003cstring> | null"},"isTrial":{"type":"boolean","description":"Whether this subscription is a trial subscription","example":false,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].isTrial","typeLabel":"boolean"},"customerId":{"type":"string","minLength":1,"description":"The Atlas customer ID","example":"atlas-internal-customer-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].customerId","typeLabel":"string"},"planId":{"type":"string","minLength":1,"description":"The Atlas plan ID","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].planId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].merchantId","typeLabel":"string"},"plan":{"type":"object","properties":{"createdAt":{"type":"string","format":"date","description":"The date and time the plan was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.createdAt","typeLabel":"string\u003cdate>"},"crossEnvironmentId":{"type":"string","minLength":1,"description":"The cross environment ID of the plan","example":"plan-cross-env-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.crossEnvironmentId","typeLabel":"string"},"currency":{"type":"string","enum":["USD"],"description":"The currency for this plan","example":"USD","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.currency","typeLabel":"enum\u003cstring>"},"description":{"type":"string","minLength":1,"description":"The description of the plan","example":"A great plan for your needs","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.description","typeLabel":"string"},"id":{"type":"string","minLength":1,"description":"The Atlas plan ID","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.id","typeLabel":"string"},"isPrivate":{"type":"boolean","description":"Whether the plan is private","example":false,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.isPrivate","typeLabel":"boolean"},"name":{"type":"string","minLength":1,"description":"The name of the plan","example":"Pro","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.name","typeLabel":"string"},"netTerms":{"type":"string","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this plan","example":"net30","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.netTerms","typeLabel":"enum\u003cstring>"},"purchasable":{"type":"boolean","description":"Whether the plan is purchasable","example":true,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.purchasable","typeLabel":"boolean"},"requestPricingText":{"type":"string","minLength":0,"default":"Request pricing","description":"The text to display when requesting pricing for non-purchasable plans","example":"Contact us for pricing","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.requestPricingText","typeLabel":"string"},"requestPricingUrl":{"type":"string","minLength":0,"description":"The URL to redirect to when requesting pricing for non-purchasable plans","example":"https://example.com/request-pricing","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.requestPricingUrl","typeLabel":"string"},"status":{"type":"string","enum":["available","draft","archived","deleted"],"description":"The status of the plan","example":"available","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the plan was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.updatedAt","typeLabel":"string\u003cdate>"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.merchantId","typeLabel":"string"},"externalId":{"oneOf":[{"type":"string","minLength":1,"description":"The external ID of the plan (e.g. the plan ID in your system)","example":"external-plan-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.externalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The external ID of the plan (e.g. the plan ID in your system)","example":"external-plan-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.externalId","typeLabel":"string | null"},"basePlanPriceId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the monthly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the monthly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceId","typeLabel":"string | null"},"basePlanPriceQuarterlyId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the quarterly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the quarterly base plan price","example":"atlas-internal-price-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyId","typeLabel":"string | null"},"basePlanPriceAnnuallyId":{"oneOf":[{"type":"string","minLength":1,"description":"The ID of the annual base plan price","example":"atlas-internal-price-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The ID of the annual base plan price","example":"atlas-internal-price-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyId","typeLabel":"string | null"},"basePlanPriceMonthlyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the monthly base plan price","example":"active","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the monthly base plan price","example":"active","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceMonthlyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPriceQuarterlyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the quarterly base plan price","example":"active","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the quarterly base plan price","example":"active","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceQuarterlyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPriceAnnuallyStatus":{"oneOf":[{"type":"string","enum":["active","archived"],"description":"The status of the annual base plan price","example":"active","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","archived"],"description":"The status of the annual base plan price","example":"active","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPriceAnnuallyStatus","typeLabel":"enum\u003cstring> | null"},"basePlanPrice":{"oneOf":[{"type":"object","properties":{"billingCadence":{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this price","example":"monthly","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billingCadence","typeLabel":"enum\u003cstring>"},"billingMode":{"type":"string","enum":["advance","arrears","realTime"],"description":"The billing mode for this price","example":"advance","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billingMode","typeLabel":"enum\u003cstring>"},"blockOverage":{"type":"boolean","default":false,"description":"Whether to block overage for this price; applies only to real-time credit-based features","example":false,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.blockOverage","typeLabel":"boolean"},"createdAt":{"type":"string","format":"date","description":"The date and time the price was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.createdAt","typeLabel":"string\u003cdate>"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.entityType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","minLength":1,"description":"The name of the price. Inherited from the feature that this price is for.","example":"Pro Price","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.name","typeLabel":"string"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit","fixed"],"description":"The price type for this price","example":"unit","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.priceType","typeLabel":"enum\u003cstring>"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules.additionalProperties","typeLabel":"null"},"description":"The pricing rules for this price","example":{"quantity":1,"price":10},"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.rules","typeLabel":"object"},"status":{"type":"string","enum":["active","deleted"],"description":"The status of the price","example":"active","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.status","typeLabel":"enum\u003cstring>"},"usesCustomPricingUnit":{"type":"boolean","default":false,"description":"Whether this price uses a custom pricing unit","example":false,"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.usesCustomPricingUnit","typeLabel":"boolean"},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.billableId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.merchantId","typeLabel":"string"},"limit":{"oneOf":[{"type":"integer","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.limit","typeLabel":"integer | null"},"maxUsage":{"oneOf":[{"type":"integer","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.maxUsage","typeLabel":"integer | null"},"customPricingUnitId":{"oneOf":[{"type":"string","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123","uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0.customPricingUnitId","typeLabel":"string | null"}},"required":["billingCadence","billingMode","blockOverage","createdAt","entityType","id","name","priceType","rules","status","usesCustomPricingUnit","billableId","merchantId"],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"billingCadence":{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this price","example":"monthly"},"billingMode":{"type":"string","enum":["advance","arrears","realTime"],"description":"The billing mode for this price","example":"advance"},"blockOverage":{"type":"boolean","default":false,"description":"Whether to block overage for this price; applies only to real-time credit-based features","example":false},"createdAt":{"type":"string","format":"date","description":"The date and time the price was created","example":"2021-01-01T00:00:00.000Z"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement"},"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123"},"limit":{"oneOf":[{"type":"integer","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100},{"type":"null","minimum":0,"description":"The limit for this price; applies only to limit-based features","example":100}]},"maxUsage":{"oneOf":[{"type":"integer","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000},{"type":"null","minimum":0,"description":"The maximum usage for this price; applies only to usage-based features","example":1000}]},"name":{"type":"string","minLength":1,"description":"The name of the price. Inherited from the feature that this price is for.","example":"Pro Price"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit","fixed"],"description":"The price type for this price","example":"unit"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null"}]},"description":"The pricing rules for this price","example":{"quantity":1,"price":10}},"status":{"type":"string","enum":["active","deleted"],"description":"The status of the price","example":"active"},"usesCustomPricingUnit":{"type":"boolean","default":false,"description":"Whether this price uses a custom pricing unit","example":false},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123"},"customPricingUnitId":{"oneOf":[{"type":"string","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123"},{"type":"null","minLength":1,"description":"The Atlas custom pricing unit ID","example":"atlas-internal-custom-pricing-unit-id-123"}]},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123"}},"required":["billingCadence","billingMode","blockOverage","createdAt","entityType","id","name","priceType","rules","status","usesCustomPricingUnit","billableId","merchantId"],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan.basePlanPrice","typeLabel":"object | null"}},"required":["createdAt","crossEnvironmentId","currency","description","id","isPrivate","name","netTerms","purchasable","requestPricingText","requestPricingUrl","status","updatedAt","merchantId"],"isRequired":true,"uniqueKey":"upcomingSubscriptions.items.[INDEX].plan","typeLabel":"object"},"billingCadence":{"oneOf":[{"type":"string","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this subscription","example":"monthly","uniqueKey":"upcomingSubscriptions.items.[INDEX].billingCadence.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["oneTime","monthly","quarterly","annually"],"description":"The billing cadence for this subscription","example":"monthly","uniqueKey":"upcomingSubscriptions.items.[INDEX].billingCadence.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].billingCadence","typeLabel":"enum\u003cstring> | null"},"currency":{"oneOf":[{"type":"string","enum":["USD"],"description":"The currency for this subscription","example":"USD","uniqueKey":"upcomingSubscriptions.items.[INDEX].currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["USD"],"description":"The currency for this subscription","example":"USD","uniqueKey":"upcomingSubscriptions.items.[INDEX].currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].currency","typeLabel":"enum\u003cstring> | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the subscription","format":"date","example":"2021-12-31T00:00:00.000Z","uniqueKey":"upcomingSubscriptions.items.[INDEX].endDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"string","description":"The end date of the subscription","format":"date-time","example":"2021-12-31T00:00:00.000Z","uniqueKey":"upcomingSubscriptions.items.[INDEX].endDate.oneOf.1","typeLabel":"string\u003cdate-time>"},{"description":"The end date of the subscription","example":"2021-12-31T00:00:00.000Z","uniqueKey":"upcomingSubscriptions.items.[INDEX].endDate.oneOf.2","typeLabel":"any"},{"type":"null","description":"The end date of the subscription","example":"2021-12-31T00:00:00.000Z","uniqueKey":"upcomingSubscriptions.items.[INDEX].endDate.oneOf.3","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].endDate","typeLabel":"string\u003cdate> | string\u003cdate-time> | any | null"},"netTerms":{"oneOf":[{"type":"string","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this subscription; applies only if autoChargeInvoice is false. Determines the number of days after the invoice is issued before the payment is due.","example":"net30","uniqueKey":"upcomingSubscriptions.items.[INDEX].netTerms.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["uponReceipt","net30","net60","net90"],"description":"The net terms for this subscription; applies only if autoChargeInvoice is false. Determines the number of days after the invoice is issued before the payment is due.","example":"net30","uniqueKey":"upcomingSubscriptions.items.[INDEX].netTerms.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].netTerms","typeLabel":"enum\u003cstring> | null"},"chargeForUsageBasedPricesDuringTrial":{"oneOf":[{"type":"boolean","description":"Whether to charge for usage-based prices during the trial period. Only applies if isTrial is true.","example":false,"uniqueKey":"upcomingSubscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to charge for usage-based prices during the trial period. Only applies if isTrial is true.","example":false,"uniqueKey":"upcomingSubscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial.oneOf.1","typeLabel":"null"}],"uniqueKey":"upcomingSubscriptions.items.[INDEX].chargeForUsageBasedPricesDuringTrial","typeLabel":"boolean | null"}},"required":["createdAt","id","startDate","status","updatedAt","allowCustomerChanges","autoChargeInvoice","autoSyncInvoice","autoSendInvoice","paymentGateway","isTrial","customerId","planId","merchantId","plan"],"uniqueKey":"upcomingSubscriptions.items.[INDEX]","typeLabel":"object"},"description":"The upcoming subscriptions associated with the customer","isRequired":true,"uniqueKey":"upcomingSubscriptions","typeLabel":"object[]"},"conditionalBillableAccess":{"type":"array","items":{"type":"object","properties":{"access":{"type":"boolean","description":"Whether the customer has access to the billable","example":true,"isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].access","typeLabel":"boolean"},"createdAt":{"type":"string","format":"date","description":"The date and time the conditional billable access was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].createdAt","typeLabel":"string\u003cdate>"},"endDate":{"type":"string","format":"date","description":"The end date of the conditional billable access","example":"2021-12-31T00:00:00.000Z","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].endDate","typeLabel":"string\u003cdate>"},"id":{"type":"string","minLength":1,"description":"The Atlas conditional billable access ID","example":"atlas-internal-conditional-billable-access-id-123","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].id","typeLabel":"string"},"invalidated":{"type":"boolean","description":"Whether the conditional billable access has been invalidated","example":false,"isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].invalidated","typeLabel":"boolean"},"startDate":{"type":"string","format":"date","description":"The start date of the conditional billable access","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].startDate","typeLabel":"string\u003cdate>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the conditional billable access was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].updatedAt","typeLabel":"string\u003cdate>"},"billableId":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].billableId","typeLabel":"string"},"customerId":{"type":"string","minLength":1,"description":"The Atlas customer ID","example":"atlas-internal-customer-id-123","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].customerId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].merchantId","typeLabel":"string"},"subscriptionId":{"type":"string","minLength":1,"description":"The Atlas subscription ID","example":"atlas-internal-subscription-id-123","isRequired":true,"uniqueKey":"conditionalBillableAccess.items.[INDEX].subscriptionId","typeLabel":"string"},"currentUsage":{"oneOf":[{"type":"number","minimum":0,"description":"The current usage for this conditional billable access","example":50,"uniqueKey":"conditionalBillableAccess.items.[INDEX].currentUsage.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The current usage for this conditional billable access","example":50,"uniqueKey":"conditionalBillableAccess.items.[INDEX].currentUsage.oneOf.1","typeLabel":"null"}],"uniqueKey":"conditionalBillableAccess.items.[INDEX].currentUsage","typeLabel":"number | null"}},"required":["access","createdAt","endDate","id","invalidated","startDate","updatedAt","billableId","customerId","merchantId","subscriptionId"],"uniqueKey":"conditionalBillableAccess.items.[INDEX]","typeLabel":"object"},"description":"The conditional billable access associated with the customer","isRequired":true,"uniqueKey":"conditionalBillableAccess","typeLabel":"object[]"},"customPricingUnits":{"type":"array","items":{"type":"object","properties":{"customPricingUnitId":{"type":"string","description":"The ID of the custom pricing unit","example":"atlas-internal-custom-pricing-unit-id-123","isRequired":true,"uniqueKey":"customPricingUnits.items.[INDEX].customPricingUnitId","typeLabel":"string"},"balance":{"type":"number","description":"The balance of the custom pricing unit","example":100,"isRequired":true,"uniqueKey":"customPricingUnits.items.[INDEX].balance","typeLabel":"number"}},"required":["customPricingUnitId","balance"],"uniqueKey":"customPricingUnits.items.[INDEX]","typeLabel":"object"},"description":"The custom pricing units associated with the customer","isRequired":true,"uniqueKey":"customPricingUnits","typeLabel":"object[]"},"customerPrivatePlans":{"type":"array","items":{"type":"object","properties":{"planId":{"type":"string","description":"The ID of the private plan","example":"atlas-internal-plan-id-123","isRequired":true,"uniqueKey":"customerPrivatePlans.items.[INDEX].planId","typeLabel":"string"}},"required":["planId"],"uniqueKey":"customerPrivatePlans.items.[INDEX]","typeLabel":"object"},"description":"The private plans associated with the customer","isRequired":true,"uniqueKey":"customerPrivatePlans","typeLabel":"object[]"},"isEligibleForTrial":{"type":"boolean","description":"Whether the customer is eligible for a trial subscription. Only returns true if the customer has no previous or current paid or trial subscriptions.","example":true,"isRequired":true,"uniqueKey":"isEligibleForTrial","typeLabel":"boolean"},"billingAddress1":{"oneOf":[{"type":"string","minLength":1,"description":"Billing address line 1","example":"123 Main St","uniqueKey":"billingAddress1.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing address line 1","example":"123 Main St","uniqueKey":"billingAddress1.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress1","typeLabel":"string | null"},"billingAddress2":{"oneOf":[{"type":"string","minLength":1,"description":"Billing address line 2","example":"Apt 1","uniqueKey":"billingAddress2.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing address line 2","example":"Apt 1","uniqueKey":"billingAddress2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress2","typeLabel":"string | null"},"billingCity":{"oneOf":[{"type":"string","minLength":1,"description":"Billing city","example":"Anytown","uniqueKey":"billingCity.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing city","example":"Anytown","uniqueKey":"billingCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingCity","typeLabel":"string | null"},"billingCountry":{"oneOf":[{"type":"string","minLength":1,"description":"Billing country","example":"US","uniqueKey":"billingCountry.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing country","example":"US","uniqueKey":"billingCountry.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingCountry","typeLabel":"string | null"},"billingState":{"oneOf":[{"type":"string","minLength":1,"description":"Billing state","example":"CA","uniqueKey":"billingState.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Billing state","example":"CA","uniqueKey":"billingState.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingState","typeLabel":"string | null"},"billingZipCode":{"oneOf":[{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","description":"Billing zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"billingZipCode.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d{5}(-\\d{4})?$","description":"Billing zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"billingZipCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingZipCode","typeLabel":"string | null"},"shippingAddress1":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping address line 1","example":"123 Main St","uniqueKey":"shippingAddress1.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping address line 1","example":"123 Main St","uniqueKey":"shippingAddress1.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress1","typeLabel":"string | null"},"shippingAddress2":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping address line 2","example":"Apt 1","uniqueKey":"shippingAddress2.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping address line 2","example":"Apt 1","uniqueKey":"shippingAddress2.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress2","typeLabel":"string | null"},"shippingCity":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping city","example":"Anytown","uniqueKey":"shippingCity.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping city","example":"Anytown","uniqueKey":"shippingCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingCity","typeLabel":"string | null"},"shippingCountry":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping country","example":"US","uniqueKey":"shippingCountry.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping country","example":"US","uniqueKey":"shippingCountry.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingCountry","typeLabel":"string | null"},"shippingState":{"oneOf":[{"type":"string","minLength":1,"description":"Shipping state","example":"CA","uniqueKey":"shippingState.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Shipping state","example":"CA","uniqueKey":"shippingState.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingState","typeLabel":"string | null"},"shippingZipCode":{"oneOf":[{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","description":"Shipping zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"shippingZipCode.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d{5}(-\\d{4})?$","description":"Shipping zip code. Must be 5 digits or 5+4 format.","example":"12345","uniqueKey":"shippingZipCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingZipCode","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","minLength":1,"format":"email","description":"The email of the customer","example":"john.doe@example.com","uniqueKey":"email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","minLength":1,"format":"email","description":"The email of the customer","example":"john.doe@example.com","uniqueKey":"email.oneOf.1","typeLabel":"null"}],"uniqueKey":"email","typeLabel":"string\u003cemail> | null"},"externalId":{"oneOf":[{"type":"string","minLength":1,"description":"The external ID of the customer (e.g. the customer ID in your system)","example":"external-customer-id-123","uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The external ID of the customer (e.g. the customer ID in your system)","example":"external-customer-id-123","uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"externalId","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","minLength":1,"description":"The name of the customer","example":"John Doe","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The name of the customer","example":"John Doe","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"quickBooksId":{"oneOf":[{"type":"string","minLength":1,"description":"The QuickBooks ID of the customer","example":"quickbooks-customer-id-123","uniqueKey":"quickBooksId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The QuickBooks ID of the customer","example":"quickbooks-customer-id-123","uniqueKey":"quickBooksId.oneOf.1","typeLabel":"null"}],"uniqueKey":"quickBooksId","typeLabel":"string | null"},"stripeId":{"oneOf":[{"type":"string","minLength":1,"description":"The Stripe ID of the customer","example":"stripe-customer-id-123","uniqueKey":"stripeId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The Stripe ID of the customer","example":"stripe-customer-id-123","uniqueKey":"stripeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripeId","typeLabel":"string | null"}},"required":["createdAt","id","updatedAt","merchantId","subscriptions","activeSubscriptions","upcomingSubscriptions","conditionalBillableAccess","customPricingUnits","customerPrivatePlans","isEligibleForTrial"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"createdAt":"2021-01-01T00:00:00.000Z","id":"atlas-internal-customer-id-123","updatedAt":"2021-01-01T00:00:00.000Z","merchantId":"atlas-internal-merchant-id-123","subscriptions":[{"createdAt":"2021-01-01T00:00:00.000Z","id":"atlas-internal-subscription-id-123","startDate":"2021-01-01T00:00:00.000Z","status":"active","updatedAt":"2021-01-01T00:00:00.000Z","allowCustomerChanges":true,"autoChargeInvoice":false,"autoSyncInvoice":true,"autoSendInvoice":true,"paymentGateway":"Stripe","isTrial":false,"customerId":"atlas-internal-customer-id-123","planId":"atlas-internal-plan-id-123","merchantId":"atlas-internal-merchant-id-123","plan":{"createdAt":"2021-01-01T00:00:00.000Z","crossEnvironmentId":"plan-cross-env-id-123","currency":"USD","description":"A great plan for your needs","id":"atlas-internal-plan-id-123","isPrivate":false,"name":"Pro","netTerms":"net30","purchasable":true,"requestPricingText":"Contact us for pricing","requestPricingUrl":"https://example.com/request-pricing","status":"available","updatedAt":"2021-01-01T00:00:00.000Z","merchantId":"atlas-internal-merchant-id-123","externalId":"external-plan-id-123","basePlanPriceId":"atlas-internal-price-id-123","basePlanPriceQuarterlyId":"atlas-internal-price-id-123","basePlanPriceAnnuallyId":"atlas-internal-price-id-123","basePlanPriceMonthlyStatus":"active","basePlanPriceQuarterlyStatus":"active","basePlanPriceAnnuallyStatus":"active","basePlanPrice":{"billingCadence":"monthly","billingMode":"advance","blockOverage":false,"createdAt":"2021-01-01T00:00:00.000Z","entityType":"entitlement","id":"atlas-internal-price-id-123","name":"Pro Price","priceType":"unit","rules":{"quantity":1,"price":10},"status":"active","usesCustomPricingUnit":false,"billableId":"atlas-internal-billable-id-123","merchantId":"atlas-internal-merchant-id-123","limit":100,"maxUsage":1000,"customPricingUnitId":"atlas-internal-custom-pricing-unit-id-123"}},"billingCadence":"monthly","currency":"USD","endDate":"2021-12-31T00:00:00.000Z","netTerms":"net30","chargeForUsageBasedPricesDuringTrial":false}],"activeSubscriptions":[{"createdAt":"2021-01-01T00:00:00.000Z","id":"atlas-internal-subscription-id-123","startDate":"2021-01-01T00:00:00.000Z","status":"active","updatedAt":"2021-01-01T00:00:00.000Z","allowCustomerChanges":true,"autoChargeInvoice":false,"autoSyncInvoice":true,"autoSendInvoice":true,"paymentGateway":"Stripe","isTrial":false,"customerId":"atlas-internal-customer-id-123","planId":"atlas-internal-plan-id-123","merchantId":"atlas-internal-merchant-id-123","plan":{"createdAt":"2021-01-01T00:00:00.000Z","crossEnvironmentId":"plan-cross-env-id-123","currency":"USD","description":"A great plan for your needs","id":"atlas-internal-plan-id-123","isPrivate":false,"name":"Pro","netTerms":"net30","purchasable":true,"requestPricingText":"Contact us for pricing","requestPricingUrl":"https://example.com/request-pricing","status":"available","updatedAt":"2021-01-01T00:00:00.000Z","merchantId":"atlas-internal-merchant-id-123","externalId":"external-plan-id-123","basePlanPriceId":"atlas-internal-price-id-123","basePlanPriceQuarterlyId":"atlas-internal-price-id-123","basePlanPriceAnnuallyId":"atlas-internal-price-id-123","basePlanPriceMonthlyStatus":"active","basePlanPriceQuarterlyStatus":"active","basePlanPriceAnnuallyStatus":"active","basePlanPrice":{"billingCadence":"monthly","billingMode":"advance","blockOverage":false,"createdAt":"2021-01-01T00:00:00.000Z","entityType":"entitlement","id":"atlas-internal-price-id-123","name":"Pro Price","priceType":"unit","rules":{"quantity":1,"price":10},"status":"active","usesCustomPricingUnit":false,"billableId":"atlas-internal-billable-id-123","merchantId":"atlas-internal-merchant-id-123","limit":100,"maxUsage":1000,"customPricingUnitId":"atlas-internal-custom-pricing-unit-id-123"}},"billingCadence":"monthly","currency":"USD","endDate":"2021-12-31T00:00:00.000Z","netTerms":"net30","chargeForUsageBasedPricesDuringTrial":false}],"upcomingSubscriptions":[{"createdAt":"2021-01-01T00:00:00.000Z","id":"atlas-internal-subscription-id-123","startDate":"2021-01-01T00:00:00.000Z","status":"active","updatedAt":"2021-01-01T00:00:00.000Z","allowCustomerChanges":true,"autoChargeInvoice":false,"autoSyncInvoice":true,"autoSendInvoice":true,"paymentGateway":"Stripe","isTrial":false,"customerId":"atlas-internal-customer-id-123","planId":"atlas-internal-plan-id-123","merchantId":"atlas-internal-merchant-id-123","plan":{"createdAt":"2021-01-01T00:00:00.000Z","crossEnvironmentId":"plan-cross-env-id-123","currency":"USD","description":"A great plan for your needs","id":"atlas-internal-plan-id-123","isPrivate":false,"name":"Pro","netTerms":"net30","purchasable":true,"requestPricingText":"Contact us for pricing","requestPricingUrl":"https://example.com/request-pricing","status":"available","updatedAt":"2021-01-01T00:00:00.000Z","merchantId":"atlas-internal-merchant-id-123","externalId":"external-plan-id-123","basePlanPriceId":"atlas-internal-price-id-123","basePlanPriceQuarterlyId":"atlas-internal-price-id-123","basePlanPriceAnnuallyId":"atlas-internal-price-id-123","basePlanPriceMonthlyStatus":"active","basePlanPriceQuarterlyStatus":"active","basePlanPriceAnnuallyStatus":"active","basePlanPrice":{"billingCadence":"monthly","billingMode":"advance","blockOverage":false,"createdAt":"2021-01-01T00:00:00.000Z","entityType":"entitlement","id":"atlas-internal-price-id-123","name":"Pro Price","priceType":"unit","rules":{"quantity":1,"price":10},"status":"active","usesCustomPricingUnit":false,"billableId":"atlas-internal-billable-id-123","merchantId":"atlas-internal-merchant-id-123","limit":100,"maxUsage":1000,"customPricingUnitId":"atlas-internal-custom-pricing-unit-id-123"}},"billingCadence":"monthly","currency":"USD","endDate":"2021-12-31T00:00:00.000Z","netTerms":"net30","chargeForUsageBasedPricesDuringTrial":false}],"conditionalBillableAccess":[{"access":true,"createdAt":"2021-01-01T00:00:00.000Z","endDate":"2021-12-31T00:00:00.000Z","id":"atlas-internal-conditional-billable-access-id-123","invalidated":false,"startDate":"2021-01-01T00:00:00.000Z","updatedAt":"2021-01-01T00:00:00.000Z","billableId":"atlas-internal-billable-id-123","customerId":"atlas-internal-customer-id-123","merchantId":"atlas-internal-merchant-id-123","subscriptionId":"atlas-internal-subscription-id-123","currentUsage":50}],"customPricingUnits":[{"customPricingUnitId":"atlas-internal-custom-pricing-unit-id-123","balance":100}],"customerPrivatePlans":[{"planId":"atlas-internal-plan-id-123"}],"isEligibleForTrial":true,"billingAddress1":"123 Main St","billingAddress2":"Apt 1","billingCity":"Anytown","billingCountry":"US","billingState":"CA","billingZipCode":"12345","shippingAddress1":"123 Main St","shippingAddress2":"Apt 1","shippingCity":"Anytown","shippingCountry":"US","shippingState":"CA","shippingZipCode":"12345","email":"john.doe@example.com","externalId":"external-customer-id-123","name":"John Doe","quickBooksId":"quickbooks-customer-id-123","stripeId":"stripe-customer-id-123"}}},"exampleType":"generated"}},"exampleType":"generated"},"cf671ca1-b30e-4e10-a857-edfb962ef27a":{"description":"There is an issue with the request data. See the response for more details.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6fd3b8a9-ca04-4f02-b91d-6d2ca7fb3d9a":{"description":"Invalid API key provided.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"e7657b66-b2af-47b1-8e39-6016504a79c8":{"description":"A customer with this external ID already exists.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"4fdab2e4-3c25-4265-9820-b57e8ee85f76":{"apiKeyAuth":{"type":"apiKey","name":"x-api-key","in":"header","description":"You can obtain this key from the Atlas dashboard. It must be of type `secret`","scopes":[]}}},"servers":{"3c9753c2-e6e2-45af-9d3e-d3e995223724":{"url":"https://platform.runonatlas.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"x-api-key","in":"header","description":"You can obtain this key from the Atlas dashboard. It must be of type `secret`","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"You can obtain this key from the Atlas dashboard. It must be of type `secret`","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"https://platform.runonatlas.com/external/schema"},"subdomain":"atlas-e6c381cc","siteName":"Atlas","title":"Create customer with default plan subscription - Atlas","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-19T16:23:28.698Z","originalFileLocation":"api-reference/customers/create-customer-with-default-plan-subscription.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 a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Atlas\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create customer with default plan subscription - Atlas\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Atlas\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://atlas-e6c381cc.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+customer+with+default+plan+subscription\u0026amp;description=Create+a+new+customer+with+a+unique+external+ID+%28e.g.+the+customer+ID+in+your+system%29.+Also+automatically+subscribes+the+customer+to+the+default+plan+if+eligibl\u0026amp;theme=fad73015577ccd4d16edaa20\u0026amp;signature=c284b148ac4eea0df9919838727e73c67f19f1a16faeb8edfe69ba65244d5e07\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create customer with default plan subscription - Atlas\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://atlas-e6c381cc.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+customer+with+default+plan+subscription\u0026amp;description=Create+a+new+customer+with+a+unique+external+ID+%28e.g.+the+customer+ID+in+your+system%29.+Also+automatically+subscribes+the+customer+to+the+default+plan+if+eligibl\u0026amp;theme=fad73015577ccd4d16edaa20\u0026amp;signature=c284b148ac4eea0df9919838727e73c67f19f1a16faeb8edfe69ba65244d5e07\">\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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Atlas\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9A47D5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription\">\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-customer-with-default-plan-subscription.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.runonatlas.com/#organization\",\"name\":\"Atlas\",\"url\":\"https://docs.runonatlas.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/atlas-e6c381cc/CZyope2K7u39JYzl/logo/atlas-lightmode.png?fit=max\u0026auto=format\u0026n=CZyope2K7u39JYzl\u0026q=85\u0026s=8936437d0db9d56dba50ba9b17d3f4aa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.runonatlas.com#website\",\"name\":\"Atlas\",\"url\":\"https://docs.runonatlas.com\",\"publisher\":{\"@id\":\"https://docs.runonatlas.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription#webpage\",\"url\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription\",\"name\":\"Create customer with default plan subscription\",\"description\":\"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.\",\"dateModified\":\"2026-02-19T16:23:28.698Z\",\"isPartOf\":{\"@id\":\"https://docs.runonatlas.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://docs.runonatlas.com/api-reference/customers/get-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create customer with default plan subscription\",\"item\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription#apireference\",\"headline\":\"Create customer with default plan subscription\",\"name\":\"Create customer with default plan subscription\",\"description\":\"Create a new customer with a unique external ID (e.g. the customer ID in your system). Also automatically subscribes the customer to the default plan if eligible.\",\"url\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription\",\"mainEntityOfPage\":{\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-customer-with-default-plan-subscription#webpage\"},\"dateModified\":\"2026-02-19T16:23:28.698Z\",\"publisher\":{\"@id\":\"https://docs.runonatlas.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.runonatlas.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Atlas\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Atlas","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/ZjejsUX7"}]},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Developer Portal","pages":[{"title":"Developer Portal","href":"/developer-portal/how-does-atlas-work"}]},{"tab":"Advanced Atlas","pages":[{"title":"Advanced Atlas","href":"/advanced-atlas"}]},{"tab":"API Reference","groups":[{"group":"Events","pages":[{"title":"Ingest events","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/event/","href":"/api-reference/events/ingest-events"}]},{"group":"Customers","pages":[{"title":"Get customers","description":"Get a paginated list of customers.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers","href":"/api-reference/customers/get-customers"},{"title":"Create customer with default plan subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers","href":"/api-reference/customers/create-customer-with-default-plan-subscription"},{"title":"Get customer transactions","description":"Get a paginated list of transactions for a customer by external ID (e.g. the customer ID in your system).","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/external-id/{externalId}/transactions","href":"/api-reference/customers/get-customer-transactions"},{"title":"Get customer with expanded data","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/external-id/{externalId}/expanded","href":"/api-reference/customers/get-customer-with-expanded-data"},{"title":"Get custom pricing unit usage","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/external-id/{externalId}/customPricingUnits/{customPricingUnitId}/usage","href":"/api-reference/customers/get-custom-pricing-unit-usage"},{"title":"Get customer by ID","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/{id}","href":"/api-reference/customers/get-customer-by-id"},{"title":"Create Stripe setup checkout session for payment method update","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/external-id/{externalId}/stripe/checkout-sessions/setup","href":"/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update"},{"title":"Upsert customer","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/upsert","href":"/api-reference/customers/upsert-customer"},{"title":"Bulk upsert customers","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/upsert/bulk","href":"/api-reference/customers/bulk-upsert-customers"}]},{"group":"Invoices","pages":[{"title":"Get invoice with line items","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/invoices/{invoiceId}/with-line-items","href":"/api-reference/invoices/get-invoice-with-line-items"}]},{"group":"Subscriptions","pages":[{"title":"Get subscriptions","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/subscriptions","href":"/api-reference/subscriptions/get-subscriptions"},{"title":"Create subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions","href":"/api-reference/subscriptions/create-subscription"},{"title":"Create multiple subscriptions","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions/bulk","href":"/api-reference/subscriptions/create-multiple-subscriptions"},{"title":"Get subscription by ID","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/subscriptions/{id}","href":"/api-reference/subscriptions/get-subscription-by-id"},{"title":"Delete subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema delete /external/subscriptions/{id}","href":"/api-reference/subscriptions/delete-subscription"},{"title":"Get subscription by ID with expanded data","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/subscriptions/{id}/expanded","href":"/api-reference/subscriptions/get-subscription-by-id-with-expanded-data"},{"title":"Cancel subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancel-subscription"},{"title":"Renew cancelled subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions/{id}/renew","href":"/api-reference/subscriptions/renew-cancelled-subscription"}]}]}]},"basePath":"","title":"Create customer with default plan subscription - Atlas","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}