{"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/invoices/get-invoice-with-line-items","slug":"/api-reference/invoices/get-invoice-with-line-items","pageMetadata":{"title":"Get invoice with line items","description":"Get an invoice with its line items attached, including expanded price and billable information.","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","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: \"Get an invoice with its line items attached, including expanded price and billable information.\"\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":"Get invoice with line items","description":"Get an invoice with its line items attached, including expanded price and billable information.","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","autogeneratedByOpenApi":true,"hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Get an invoice with its line items attached, including expanded price and billable information.","summary":"Get invoice with line items","tags":["Invoices"],"security":["15db7b46-a155-4b8a-81c8-1fcbec7d99f2"],"parameters":["244393b6-4503-424e-97f3-87730d49c73e"],"responses":{"200":"f95754a4-5ca1-427b-a5d9-d33dc437a085","400":"b4af078b-da69-445e-b85e-6de72350d624","401":"3dec95e9-b365-4995-bb68-ac42ac2c4b02","404":"19c63cf7-33e8-46ed-b1cb-9b3dced329df"},"method":"get","type":"path","servers":["3c9753c2-e6e2-45af-9d3e-d3e995223724"],"path":"/external/invoices/{invoiceId}/with-line-items","baseUrlOptions":["https://platform.runonatlas.com"],"title":"Get invoice with line items","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"244393b6-4503-424e-97f3-87730d49c73e":{"schema":{"type":"string","minLength":1,"description":"The Atlas invoice ID associated with the invoice line item","example":"atlas-internal-invoice-id-123","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"The Atlas invoice ID associated with the invoice line item","name":"invoiceId","in":"path"}},"responses":{"f95754a4-5ca1-427b-a5d9-d33dc437a085":{"description":"The invoice with its line items that have been retrieved.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The Atlas invoice ID","example":"atlas-internal-invoice-id-123","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"createdAt":{"type":"string","format":"date","description":"The date and time the invoice was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate>"},"dueDate":{"type":"string","format":"date","description":"The due date of the invoice","example":"2021-01-31T00:00:00.000Z","isRequired":true,"uniqueKey":"dueDate","typeLabel":"string\u003cdate>"},"externalId":{"oneOf":[{"type":"string","minLength":1,"description":"The external ID of the invoice (e.g. the invoice ID in your payment gateway)","example":"external-invoice-id-123","isRequired":true,"uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"The external ID of the invoice (e.g. the invoice ID in your payment gateway)","example":"external-invoice-id-123","isRequired":true,"uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"externalId","typeLabel":"string | null"},"issueDate":{"type":"string","format":"date","description":"The issue date of the invoice","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"issueDate","typeLabel":"string\u003cdate>"},"pendingDate":{"type":"string","format":"date","description":"The pending date of the invoice","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"pendingDate","typeLabel":"string\u003cdate>"},"status":{"type":"string","enum":["test","draft","pending","paused","readyToSync","syncing","readyToCollect","pendingPayment","readyToSend","sending","issued","paymentActionRequired","paymentFailed","paid","void","overdue","deletedFromPaymentGateway","uncollectible"],"description":"The status of the invoice","example":"issued","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the invoice was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate>"},"vanityId":{"type":"number","description":"The vanity ID of the invoice","example":123456,"isRequired":true,"uniqueKey":"vanityId","typeLabel":"number"},"vanityIdString":{"type":"string","description":"The vanity ID of the invoice as a string","example":"123456","isRequired":true,"uniqueKey":"vanityIdString","typeLabel":"string"},"customerId":{"type":"string","minLength":1,"description":"The Atlas customer ID","example":"atlas-internal-customer-id-123","isRequired":true,"uniqueKey":"customerId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"merchantId","typeLabel":"string"},"subscriptionId":{"type":"string","minLength":1,"description":"The Atlas subscription ID","example":"atlas-internal-subscription-id-123","isRequired":true,"uniqueKey":"subscriptionId","typeLabel":"string"},"autoSyncInvoice":{"oneOf":[{"type":"boolean","description":"Whether to automatically sync this invoice to the associated payment gateway","example":true,"isRequired":true,"uniqueKey":"autoSyncInvoice.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to automatically sync this invoice to the associated payment gateway","example":true,"isRequired":true,"uniqueKey":"autoSyncInvoice.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"autoSyncInvoice","typeLabel":"boolean | null"},"autoSendInvoice":{"oneOf":[{"type":"boolean","description":"Whether to automatically send this invoice from the associated payment gateway to the customers email address","example":true,"isRequired":true,"uniqueKey":"autoSendInvoice.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to automatically send this invoice from the associated payment gateway to the customers email address","example":true,"isRequired":true,"uniqueKey":"autoSendInvoice.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"autoSendInvoice","typeLabel":"boolean | null"},"autoChargeInvoice":{"oneOf":[{"type":"boolean","description":"Whether to automatically charge this invoice to the associated payment gateway","example":false,"isRequired":true,"uniqueKey":"autoChargeInvoice.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to automatically charge this invoice to the associated payment gateway","example":false,"isRequired":true,"uniqueKey":"autoChargeInvoice.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"autoChargeInvoice","typeLabel":"boolean | null"},"paymentGateway":{"oneOf":[{"type":"string","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this invoice","example":"Stripe","isRequired":true,"uniqueKey":"paymentGateway.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Stripe","QuickBooks","Xero"],"description":"The selected payment gateway for this invoice","example":"Stripe","isRequired":true,"uniqueKey":"paymentGateway.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"paymentGateway","typeLabel":"enum\u003cstring> | null"},"invoiceLineItems":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","description":"The amount of the invoice line item","example":100,"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].amount","typeLabel":"number"},"createdAt":{"type":"string","format":"date","description":"The date and time the invoice line item was created","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].createdAt","typeLabel":"string\u003cdate>"},"description":{"type":"string","minLength":1,"description":"The description of the invoice line item","example":"Pro Plan - Monthly","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].description","typeLabel":"string"},"details":{"type":"object","properties":{"appliedMaximum":{"type":"number","uniqueKey":"invoiceLineItems.items.[INDEX].details.appliedMaximum","typeLabel":"number"},"appliedMinimum":{"type":"number","uniqueKey":"invoiceLineItems.items.[INDEX].details.appliedMinimum","typeLabel":"number"},"quantity":{"type":"number","uniqueKey":"invoiceLineItems.items.[INDEX].details.quantity","typeLabel":"number"},"subItems":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].details.subItems.items.[INDEX].quantity","typeLabel":"number"},"price":{"type":"number","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].details.subItems.items.[INDEX].price","typeLabel":"number"},"amount":{"type":"number","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].details.subItems.items.[INDEX].amount","typeLabel":"number"},"name":{"type":"string","uniqueKey":"invoiceLineItems.items.[INDEX].details.subItems.items.[INDEX].name","typeLabel":"string"}},"required":["quantity","price","amount"],"description":"A sub-item within the invoice line item details","example":{"name":"Additional Feature","quantity":1,"price":50,"amount":50},"uniqueKey":"invoiceLineItems.items.[INDEX].details.subItems.items.[INDEX]","typeLabel":"object"},"uniqueKey":"invoiceLineItems.items.[INDEX].details.subItems","typeLabel":"object[]"},"unitPrice":{"type":"number","uniqueKey":"invoiceLineItems.items.[INDEX].details.unitPrice","typeLabel":"number"}},"description":"The details of the invoice line item","example":{"quantity":1,"unitPrice":100},"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].details","typeLabel":"object"},"endDate":{"type":"string","format":"date","description":"The end date of the invoice line item","example":"2021-01-31T00:00:00.000Z","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].endDate","typeLabel":"string\u003cdate>"},"id":{"type":"string","minLength":1,"description":"The Atlas invoice line item ID","example":"atlas-internal-invoice-line-item-id-123","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].id","typeLabel":"string"},"startDate":{"type":"string","format":"date","description":"The start date of the invoice line item","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].startDate","typeLabel":"string\u003cdate>"},"updatedAt":{"type":"string","format":"date","description":"The date and time the invoice line item was last updated","example":"2021-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].updatedAt","typeLabel":"string\u003cdate>"},"invoiceId":{"type":"string","minLength":1,"description":"The Atlas invoice ID associated with the invoice line item","example":"atlas-internal-invoice-id-123","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].invoiceId","typeLabel":"string"},"merchantId":{"type":"string","minLength":1,"description":"The Atlas merchant ID associated with the invoice line item","example":"atlas-internal-merchant-id-123","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].merchantId","typeLabel":"string"},"priceId":{"type":"string","minLength":1,"description":"The Atlas price ID associated with the invoice line item","example":"atlas-internal-price-id-123","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].priceId","typeLabel":"string"},"price":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The Atlas price ID","example":"atlas-internal-price-id-123","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.id","typeLabel":"string"},"entityType":{"type":"string","enum":["entitlement","metric"],"description":"The entity type for this price","example":"entitlement","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.entityType","typeLabel":"enum\u003cstring>"},"billingMode":{"type":"string","enum":["arrears","realTime","advance"],"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billingMode","typeLabel":"enum\u003cstring>"},"rules":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"invoiceLineItems.items.[INDEX].price.rules.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceLineItems.items.[INDEX].price.rules.additionalProperties","typeLabel":"null"},"description":"The pricing rules for this price","example":{"quantity":1,"price":10},"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.rules","typeLabel":"object"},"priceType":{"type":"string","enum":["bulk","matrix","none","package","tier","unit"],"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.priceType","typeLabel":"enum\u003cstring>"},"billable":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.id","typeLabel":"string"},"showOnInvoice":{"type":"boolean","description":"Whether the billable should be shown on the invoice","example":true,"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.showOnInvoice","typeLabel":"boolean"},"hidden":{"type":"boolean","description":"Whether the billable is hidden","example":false,"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.hidden","typeLabel":"boolean"},"singleUnitLabel":{"oneOf":[{"type":"string","description":"The label for a single unit of the billable","example":"Unit","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.singleUnitLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"The label for a single unit of the billable","example":"Unit","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.singleUnitLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.singleUnitLabel","typeLabel":"string | null"},"multipleUnitLabel":{"oneOf":[{"type":"string","description":"The label for multiple units of the billable","example":"Units","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.multipleUnitLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"The label for multiple units of the billable","example":"Units","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.multipleUnitLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0.multipleUnitLabel","typeLabel":"string | null"}},"required":["id","showOnInvoice","hidden","singleUnitLabel","multipleUnitLabel"],"description":"The billable associated with the price","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","minLength":1,"description":"The Atlas billable ID","example":"atlas-internal-billable-id-123"},"showOnInvoice":{"type":"boolean","description":"Whether the billable should be shown on the invoice","example":true},"hidden":{"type":"boolean","description":"Whether the billable is hidden","example":false},"singleUnitLabel":{"oneOf":[{"type":"string","description":"The label for a single unit of the billable","example":"Unit"},{"type":"null","description":"The label for a single unit of the billable","example":"Unit"}]},"multipleUnitLabel":{"oneOf":[{"type":"string","description":"The label for multiple units of the billable","example":"Units"},{"type":"null","description":"The label for multiple units of the billable","example":"Units"}]}},"required":["id","showOnInvoice","hidden","singleUnitLabel","multipleUnitLabel"],"description":"The billable associated with the price","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price.billable","typeLabel":"object | null"}},"required":["id","entityType","billingMode","rules","priceType","billable"],"description":"The price associated with the invoice line item","isRequired":true,"uniqueKey":"invoiceLineItems.items.[INDEX].price","typeLabel":"object"}},"required":["amount","createdAt","description","details","endDate","id","startDate","updatedAt","invoiceId","merchantId","priceId","price"],"uniqueKey":"invoiceLineItems.items.[INDEX]","typeLabel":"object"},"description":"The line items associated with the invoice","isRequired":true,"uniqueKey":"invoiceLineItems","typeLabel":"object[]"}},"required":["id","createdAt","dueDate","externalId","issueDate","pendingDate","status","updatedAt","vanityId","vanityIdString","customerId","merchantId","subscriptionId","autoSyncInvoice","autoSendInvoice","autoChargeInvoice","paymentGateway","invoiceLineItems"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"atlas-internal-invoice-id-123","createdAt":"2021-01-01T00:00:00.000Z","dueDate":"2021-01-31T00:00:00.000Z","externalId":"external-invoice-id-123","issueDate":"2021-01-01T00:00:00.000Z","pendingDate":"2021-01-01T00:00:00.000Z","status":"issued","updatedAt":"2021-01-01T00:00:00.000Z","vanityId":123456,"vanityIdString":"123456","customerId":"atlas-internal-customer-id-123","merchantId":"atlas-internal-merchant-id-123","subscriptionId":"atlas-internal-subscription-id-123","autoSyncInvoice":true,"autoSendInvoice":true,"autoChargeInvoice":false,"paymentGateway":"Stripe","invoiceLineItems":[{"amount":100,"createdAt":"2021-01-01T00:00:00.000Z","description":"Pro Plan - Monthly","details":{"quantity":1,"unitPrice":100},"endDate":"2021-01-31T00:00:00.000Z","id":"atlas-internal-invoice-line-item-id-123","startDate":"2021-01-01T00:00:00.000Z","updatedAt":"2021-01-01T00:00:00.000Z","invoiceId":"atlas-internal-invoice-id-123","merchantId":"atlas-internal-merchant-id-123","priceId":"atlas-internal-price-id-123","price":{"id":"atlas-internal-price-id-123","entityType":"entitlement","billingMode":"arrears","rules":{"quantity":1,"price":10},"priceType":"bulk","billable":{"id":"atlas-internal-billable-id-123","showOnInvoice":true,"hidden":false,"singleUnitLabel":"Unit","multipleUnitLabel":"Units"}}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"b4af078b-da69-445e-b85e-6de72350d624":{"description":"There is an issue with the request data. See the response for more details.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"3dec95e9-b365-4995-bb68-ac42ac2c4b02":{"description":"Invalid API key provided.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"19c63cf7-33e8-46ed-b1cb-9b3dced329df":{"description":"Invoice not found.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"15db7b46-a155-4b8a-81c8-1fcbec7d99f2":{"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":"Get invoice with line items - Atlas","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-19T16:23:28.772Z","originalFileLocation":"api-reference/invoices/get-invoice-with-line-items.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=\"Get an invoice with its line items attached, including expanded price and billable information.\">\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=\"Get invoice with line items - Atlas\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get an invoice with its line items attached, including expanded price and billable information.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Atlas\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items\">\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=Invoices\u0026amp;title=Get+invoice+with+line+items\u0026amp;description=Get+an+invoice+with+its+line+items+attached%2C+including+expanded+price+and+billable+information.\u0026amp;theme=fad73015577ccd4d16edaa20\u0026amp;signature=10aa5db3a28e01c3c5d74797f920255977f98f9d3b3a86bfc5f5895985f44a9e\">\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=\"Get invoice with line items - Atlas\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get an invoice with its line items attached, including expanded price and billable information.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://atlas-e6c381cc.mintlify.app/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Get+invoice+with+line+items\u0026amp;description=Get+an+invoice+with+its+line+items+attached%2C+including+expanded+price+and+billable+information.\u0026amp;theme=fad73015577ccd4d16edaa20\u0026amp;signature=10aa5db3a28e01c3c5d74797f920255977f98f9d3b3a86bfc5f5895985f44a9e\">\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/invoices/get-invoice-with-line-items\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/invoices/get-invoice-with-line-items.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/invoices/get-invoice-with-line-items#webpage\",\"url\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items\",\"name\":\"Get invoice with line items\",\"description\":\"Get an invoice with its line items attached, including expanded price and billable information.\",\"dateModified\":\"2026-02-19T16:23:28.772Z\",\"isPartOf\":{\"@id\":\"https://docs.runonatlas.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Atlas\",\"item\":\"https://docs.runonatlas.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get invoice with line items\",\"item\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items#apireference\",\"headline\":\"Get invoice with line items\",\"name\":\"Get invoice with line items\",\"description\":\"Get an invoice with its line items attached, including expanded price and billable information.\",\"url\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items\",\"mainEntityOfPage\":{\"@id\":\"https://docs.runonatlas.com/api-reference/invoices/get-invoice-with-line-items#webpage\"},\"dateModified\":\"2026-02-19T16:23:28.772Z\",\"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","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","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","description":"Bulk upsert customers into Atlas by unique external ID (e.g. the customer ID in your system). Does not automatically subscribe the customers to the default plan if eligible.","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","description":"Get a paginated list of 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":"Get invoice with line items - 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"]}