The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint.
Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs.
This endpoint is idempotent, repeated submissions with the same document_id and status will not result in duplicate processing.
Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.
The access token received from the authorization server in the OAuth 2.0 flow.
Scopes
write_access
Post e-invoicing document status to Chargebee
Path Parameters
document_id
string
required
Unique identifier of the submitted document.
Body
application/x-www-form-urlencoded
status
enum<string>
required
Current status of the document after processing by the provider.
Available options:
SUCCESS,
IN_PROGRESS,
FAILED,
ACCEPTED,
REJECTED,
MESSAGE_ACKNOWLEDGEMENT,
IN_PROCESS,
UNDER_QUERY,
CONDITIONALLY_ACCEPTED,
PAID
timestamp
string
required
Timestamp (UTC) in seconds indicating when the status was determined.
einvoicing_provider_id
string
Identifier of the e‑invoicing provider
provider_response
string
JSON string containing an optional array of raw payloads received from the e-invoicing provider that is used for downstream mapping and for audits.
The JSON should be an array of objects with the following structure:
[{"source": "string", "received_at": "date-time", "payload": {object}}]
Optional JSON array of key-value pairs returned by the e-invoicing provider (e.g. Receipt Message ID, Response Message ID, Receiver ID).
Chargebee stores this in einvoice properties and appends entries on each callback, similar to provider_response.
Format: [{"key": "string", "value": "string"}, ...]
Optional list of errors (if any) returned by the provider if status is FAILED.
Encoded using Chargebee's form-urlencoded bracket notation, e.g. errors[0][code].
Maximum array length: 50
Show child attributes
related_documents
object[]
Optional list of related (secondary) document status objects, encoded using Chargebee's
form-urlencoded bracket notation, e.g. related_documents[0][document_id].
Use this to include secondary documents such as ubl-applicationresponse that influenced the
primary document outcome. Chargebee may store this for diagnostics; it does not change the
primary idempotency key.
Maximum array length: 10
Show child attributes
Response
Callback payload received and validated successfully. No retry required.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Chargebee Partner docs","colors":{"primary":"#ff3300","light":"#ff3300","dark":"#01283a"},"logo":{"light":"https://mintcdn.com/cb/t_llHYxnCXjWsl_M/logo/light.svg?fit=max\u0026auto=format\u0026n=t_llHYxnCXjWsl_M\u0026q=85\u0026s=ea8284652978e0e228b6e8490b85f386","dark":"https://mintcdn.com/cb/t_llHYxnCXjWsl_M/logo/dark.svg?fit=max\u0026auto=format\u0026n=t_llHYxnCXjWsl_M\u0026q=85\u0026s=ec5bfa91e37e3d17f52113436b5fa3c4"},"favicon":"https://mintcdn.com/cb/5NA3_g6K23tnaaEn/logo/favicon.png?fit=max\u0026auto=format\u0026n=5NA3_g6K23tnaaEn\u0026q=85\u0026s=f9754a80dbaca6ded2263ed1f98043a0","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl"],"prefill":true}},"background":{},"navbar":{"links":[{"href":"mailto:support@chargebee.com","label":"Support"}]},"integrations":{"ga4":{"measurementId":"G‑EJ2MQ2ENV4"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cb","hasAudioNarration":false,"actualSubdomain":"cb","customDomains":["spidocs.chargebee.com"],"gitSource":{"type":"github","owner":"chargebee","repo":"cb-partner-spi","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed672b197e48bb5f92b9a1","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":41},{"language":"default","tag":"Tax SPI","count":16},{"language":"default","tag":"Einvoicing SPI","count":14},{"language":"default","tag":"Tax Registration Number Validation SPI","count":9},{"language":"default","tag":"Tax Registration Number Validation","count":5},{"language":"default","tag":"CreditNote","count":4},{"language":"default","tag":"Invoice","count":4},{"language":"default","tag":"Health","count":3},{"language":"default","tag":"Authentication","count":3},{"language":"default","tag":"Authorization","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note","slug":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note","pageMetadata":{"openapi":"post /api/v2/credit_notes/{document_id}/einvoice_status","title":"Receive document status updates for a credit note","description":"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint.\n\nChargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs.\n\nThis endpoint is **idempotent**, repeated submissions with the same `document_id` and `status` will not result in duplicate processing.\n\nRequires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\n","href":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"This endpoint is \", _jsx(_components.strong, {\n children: \"idempotent\"\n }), \", repeated submissions with the same \", _jsx(_components.code, {\n children: \"document_id\"\n }), \" and \", _jsx(_components.code, {\n children: \"status\"\n }), \" will not result in duplicate processing.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /api/v2/credit_notes/{document_id}/einvoice_status","title":"Receive document status updates for a credit note","description":"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint.\n\nChargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs.\n\nThis endpoint is **idempotent**, repeated submissions with the same `document_id` and `status` will not result in duplicate processing.\n\nRequires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\n","href":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint.\n\nChargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs.\n\nThis endpoint is **idempotent**, repeated submissions with the same `document_id` and `status` will not result in duplicate processing.\n\nRequires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\n","operationId":"einvoicingDocumentStatusCallbackForCreditNote","parameters":["2b60be5d-bb81-4467-84ee-e9b5b546f277"],"requestBody":"e88c65bc-8782-417c-890e-b8d986648fc1","responses":{"200":"9712350b-e900-47ee-8151-02e7a1ca0f10","202":"aacfd42b-1b6b-43c4-b043-9040a0e83ca5","400":"1484c2f9-7bbd-4605-85e1-09772c51cd63","401":"c7742bfb-44a0-4de5-a1c7-c3ba01bd49f0","422":"90312953-9d05-4d89-b132-c286480e848f","500":"68c3a96c-555c-47f2-a1f5-81f11ed75d1e"},"security":["9f8bb869-6e0d-4e70-ba24-e3c2fe45cfec"],"servers":["9b873620-43ca-42e7-9ab8-e9555d18136d"],"summary":"Receive document status updates for a credit note","tags":["Callbacks"],"x-content-type":"application/x-www-form-urlencoded","x-accepts":"application/json","x-codeSamples":[{"lang":"cURL","label":"Credit note document submission successful","source":"curl --request POST \\\n --url https://{domain}.chargebee.com/api/v2/credit_notes/CN20250205/einvoice_status \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/x-www-form-urlencoded' \\\n --data-urlencode 'einvoicing_provider_id=avalara' \\\n --data-urlencode 'status=ACCEPTED' \\\n --data-urlencode 'timestamp=2025-05-23T13:22:50.519Z'\n"},{"lang":"cURL","label":"Credit note document submission failed","source":"curl --request POST \\\n --url https://{domain}.chargebee.com/api/v2/credit_notes/CN20250205/einvoice_status \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/x-www-form-urlencoded' \\\n --data-urlencode 'einvoicing_provider_id=avalara' \\\n --data-urlencode 'status=FAILED' \\\n --data-urlencode 'timestamp=2025-05-23T13:22:50.519Z' \\\n --data-urlencode 'errors[0][code]=MISSING_REQUIRED_DATA' \\\n --data-urlencode 'errors[0][message]=An Invoice shall at least have one VAT breakdown group' \\\n --data-urlencode 'errors[0][help_url]=https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER'\n"}],"method":"post","type":"path","path":"/api/v2/credit_notes/{document_id}/einvoice_status","baseUrlOptions":["https://{domain}.chargebee.com"],"title":"Receive document status updates for a credit note","codeSamples":[{"label":"Credit note document submission successful","lang":"cURL","source":"curl --request POST \\\n --url https://{domain}.chargebee.com/api/v2/credit_notes/CN20250205/einvoice_status \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/x-www-form-urlencoded' \\\n --data-urlencode 'einvoicing_provider_id=avalara' \\\n --data-urlencode 'status=ACCEPTED' \\\n --data-urlencode 'timestamp=2025-05-23T13:22:50.519Z'\n"},{"label":"Credit note document submission failed","lang":"cURL","source":"curl --request POST \\\n --url https://{domain}.chargebee.com/api/v2/credit_notes/CN20250205/einvoice_status \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/x-www-form-urlencoded' \\\n --data-urlencode 'einvoicing_provider_id=avalara' \\\n --data-urlencode 'status=FAILED' \\\n --data-urlencode 'timestamp=2025-05-23T13:22:50.519Z' \\\n --data-urlencode 'errors[0][code]=MISSING_REQUIRED_DATA' \\\n --data-urlencode 'errors[0][message]=An Invoice shall at least have one VAT breakdown group' \\\n --data-urlencode 'errors[0][help_url]=https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER'\n"}],"requestExampleLanguages":["bash"],"requiredOnlyExamples":true,"requestExampleType":"codeSamples","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.timestamp":"\u003cstring>","body.einvoicing_provider_id":"\u003cstring>","body.provider_response":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","body.provider_references":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Receiver ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@sbx.avalara.io\"}]","body.errors.items.0.message":"The request did not contain a required property","body.errors.items.0.code":"MISSING_REQUIRED_DATA","body.errors.items.0.help_url":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER","body.related_documents.items.0.document_id":"\u003cstring>","body.related_documents.items.0.document_type":"ubl-applicationresponse","body.related_documents.items.0.timestamp":"\u003cstring>","body.related_documents.items.0.provider_response":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","body.related_documents.items.0.provider_references":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"}]","body.related_documents.items.0.errors":"[{\"code\":\"AR_VALIDATION_FAILED\",\"message\":\"Invalid response code\"}]\n"}]},"dependencies":{"parameters":{"2b60be5d-bb81-4467-84ee-e9b5b546f277":{"description":"Unique identifier of the submitted document.","explode":false,"in":"path","name":"document_id","required":true,"schema":{"type":"string","isRequired":true,"description":"Unique identifier of the submitted document.","uniqueKey":"","typeLabel":"string"},"style":"simple"}},"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"status":{"description":"Current status of the document after processing by the provider.","enum":["SUCCESS","IN_PROGRESS","FAILED","ACCEPTED","REJECTED","MESSAGE_ACKNOWLEDGEMENT","IN_PROCESS","UNDER_QUERY","CONDITIONALLY_ACCEPTED","PAID"],"type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"timestamp":{"description":"Timestamp (UTC) in seconds indicating when the status was determined.","type":"string","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"einvoicing_provider_id":{"description":"Identifier of the e‑invoicing provider","type":"string","uniqueKey":"einvoicing_provider_id","typeLabel":"string"},"provider_response":{"description":"JSON string containing an optional array of raw payloads received from the e-invoicing provider that is used for downstream mapping and for audits.\nThe JSON should be an array of objects with the following structure:\n[{\"source\": \"string\", \"received_at\": \"date-time\", \"payload\": {object}}]\n","example":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","type":"string","uniqueKey":"provider_response","typeLabel":"string"},"provider_references":{"description":"Optional JSON array of key-value pairs returned by the e-invoicing provider (e.g. Receipt Message ID, Response Message ID, Receiver ID).\nChargebee stores this in einvoice properties and appends entries on each callback, similar to provider_response.\nFormat: [{\"key\": \"string\", \"value\": \"string\"}, ...]\n","example":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Receiver ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@sbx.avalara.io\"}]","type":"string","uniqueKey":"provider_references","typeLabel":"string"},"errors":{"description":"Optional list of errors (if any) returned by the provider if status is FAILED.\nEncoded using Chargebee's form-urlencoded bracket notation, e.g. `errors[0][code]`.\n","items":{"description":"Error details returned by the provider.","properties":{"message":{"description":"Human-readable error message describing what went wrong.","example":"The request did not contain a required property","maxLength":500,"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"description":"Error code identifying the type of error.","example":"MISSING_REQUIRED_DATA","maxLength":100,"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"help_url":{"description":"Optional URL to documentation or help resources for this error.","example":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER","format":"uri","maxLength":500,"type":"string","uniqueKey":"errors.items.[INDEX].help_url","typeLabel":"string\u003curi>"}},"required":["message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"related_documents":{"description":"Optional list of related (secondary) document status objects, encoded using Chargebee's\nform-urlencoded bracket notation, e.g. `related_documents[0][document_id]`.\n\nUse this to include secondary documents such as `ubl-applicationresponse` that influenced the\nprimary document outcome. Chargebee may store this for diagnostics; it does not change the\nprimary idempotency key.\n","items":{"description":"Related/secondary document status details.","properties":{"document_id":{"description":"Unique identifier of the related submitted document in Chargebee tracking.","maxLength":100,"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].document_id","typeLabel":"string"},"document_type":{"description":"Document type of the related document (e.g., ubl-applicationresponse).","example":"ubl-applicationresponse","maxLength":100,"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].document_type","typeLabel":"string"},"status":{"description":"Current status of the related document.","enum":["SUCCESS","IN_PROGRESS","FAILED"],"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"flow":{"description":"The direction flow of the related document.","enum":["INBOUND","OUTBOUND"],"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].flow","typeLabel":"enum\u003cstring>"},"timestamp":{"description":"Timestamp (UTC) in seconds indicating when the related document status was determined.","type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].timestamp","typeLabel":"string"},"provider_response":{"description":"JSON string containing an optional array of raw payloads received from the e-invoicing provider that is used for downstream mapping and for audits.\nThe JSON should be an array of objects with the following structure:\n[{\"source\": \"string\", \"received_at\": \"date-time\", \"payload\": {object}}]\n","example":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","type":"string","uniqueKey":"related_documents.items.[INDEX].provider_response","typeLabel":"string"},"provider_references":{"description":"Optional JSON array of key-value pairs for this related document (e.g. Receipt Message ID, Response Message ID).\nChargebee stores this in the artifact properties and appends entries on each callback, similar to provider_response.\nFormat: [{\"key\": \"string\", \"value\": \"string\"}, ...]\n","example":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"}]","type":"string","uniqueKey":"related_documents.items.[INDEX].provider_references","typeLabel":"string"},"errors":{"description":"Provider errors for the related document (stringified JSON array).\nPresent when `status=FAILED`.\n","example":"[{\"code\":\"AR_VALIDATION_FAILED\",\"message\":\"Invalid response code\"}]\n","type":"string","uniqueKey":"related_documents.items.[INDEX].errors","typeLabel":"string"}},"required":["document_id","document_type","flow","status","timestamp"],"type":"object","uniqueKey":"related_documents.items.[INDEX]","typeLabel":"object"},"maxItems":10,"type":"array","uniqueKey":"related_documents","typeLabel":"object[]"}},"required":["status","timestamp"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"timestamp":"\u003cstring>","einvoicing_provider_id":"\u003cstring>","provider_response":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","provider_references":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Receiver ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@sbx.avalara.io\"}]","errors":[{"message":"The request did not contain a required property","code":"MISSING_REQUIRED_DATA","help_url":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER"}],"related_documents":[{"document_id":"\u003cstring>","document_type":"ubl-applicationresponse","timestamp":"\u003cstring>","provider_response":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","provider_references":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"}]","errors":"[{\"code\":\"AR_VALIDATION_FAILED\",\"message\":\"Invalid response code\"}]\n"}]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"9712350b-e900-47ee-8151-02e7a1ca0f10":{"description":"Callback payload received and validated successfully. No retry required.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"aacfd42b-1b6b-43c4-b043-9040a0e83ca5":{"description":"Callback request accepted for asynchronous processing.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1484c2f9-7bbd-4605-85e1-09772c51cd63":{"content":{"application/json":{"schema":{"properties":{"errors":{"items":{"description":"Error details returned by the provider.","properties":{"message":{"description":"Human-readable error message describing what went wrong.","example":"The request did not contain a required property","maxLength":500,"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"description":"Error code identifying the type of error.","example":"MISSING_REQUIRED_DATA","maxLength":100,"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"help_url":{"description":"Optional URL to documentation or help resources for this error.","example":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER","format":"uri","maxLength":500,"type":"string","uniqueKey":"errors.items.[INDEX].help_url","typeLabel":"string\u003curi>"}},"required":["message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"related_documents":{"items":{"description":"Related/secondary document status details.","properties":{"document_id":{"description":"Unique identifier of the related submitted document in Chargebee tracking.","maxLength":100,"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].document_id","typeLabel":"string"},"document_type":{"description":"Document type of the related document (e.g., ubl-applicationresponse).","example":"ubl-applicationresponse","maxLength":100,"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].document_type","typeLabel":"string"},"status":{"description":"Current status of the related document.","enum":["SUCCESS","IN_PROGRESS","FAILED"],"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"flow":{"description":"The direction flow of the related document.","enum":["INBOUND","OUTBOUND"],"type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].flow","typeLabel":"enum\u003cstring>"},"timestamp":{"description":"Timestamp (UTC) in seconds indicating when the related document status was determined.","type":"string","isRequired":true,"uniqueKey":"related_documents.items.[INDEX].timestamp","typeLabel":"string"},"provider_response":{"description":"JSON string containing an optional array of raw payloads received from the e-invoicing provider that is used for downstream mapping and for audits.\nThe JSON should be an array of objects with the following structure:\n[{\"source\": \"string\", \"received_at\": \"date-time\", \"payload\": {object}}]\n","example":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","type":"string","uniqueKey":"related_documents.items.[INDEX].provider_response","typeLabel":"string"},"provider_references":{"description":"Optional JSON array of key-value pairs for this related document (e.g. Receipt Message ID, Response Message ID).\nChargebee stores this in the artifact properties and appends entries on each callback, similar to provider_response.\nFormat: [{\"key\": \"string\", \"value\": \"string\"}, ...]\n","example":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"}]","type":"string","uniqueKey":"related_documents.items.[INDEX].provider_references","typeLabel":"string"},"errors":{"description":"Provider errors for the related document (stringified JSON array).\nPresent when `status=FAILED`.\n","example":"[{\"code\":\"AR_VALIDATION_FAILED\",\"message\":\"Invalid response code\"}]\n","type":"string","uniqueKey":"related_documents.items.[INDEX].errors","typeLabel":"string"}},"required":["document_id","document_type","flow","status","timestamp"],"type":"object","uniqueKey":"related_documents.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"related_documents","typeLabel":"object[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"message":"The request did not contain a required property","code":"MISSING_REQUIRED_DATA","help_url":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER"}],"related_documents":[{"document_id":"\u003cstring>","document_type":"ubl-applicationresponse","status":"SUCCESS","flow":"INBOUND","timestamp":"\u003cstring>","provider_response":"{\"source\":\"avalara\",\"received_at\":\"2025-12-29T12:17:47.791Z\",\"payload\":{\"id\":\"ad110f2d-9d0a-4435-a8ea-a36caaceb8c7\",\"companyId\":\"304382fd-1268-4e7b-86db-a8d51ff309d5\",\"status\":\"Complete\"}}","provider_references":"[{\"key\":\"Receipt Message ID\",\"value\":\"3ed9530e-f2e8-4733-ace8-f868a5e077eb@einvoicing.sbx.avalara.io\"},{\"key\":\"Response Message ID\",\"value\":\"3ed9530e-f2e8-4733-aeffe8-f868a5e077eb@einvoicing.sbx.avalara.io\"}]","errors":"[{\"code\":\"AR_VALIDATION_FAILED\",\"message\":\"Invalid response code\"}]\n"}]}}},"exampleType":"generated"}},"description":"Invalid payload or required fields missing.","exampleType":"generated"},"c7742bfb-44a0-4de5-a1c7-c3ba01bd49f0":{"description":"Unauthorized request. Signature validation failed or sender is not allowed.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"90312953-9d05-4d89-b132-c286480e848f":{"description":"Payload was well-formed but could not be processed (e.g., unknown document ID).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"68c3a96c-555c-47f2-a1f5-81f11ed75d1e":{"description":"Internal server error. Retry may be attempted by the sender.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"9f8bb869-6e0d-4e70-ba24-e3c2fe45cfec":{"authorizationCode":{"flows":{"authorizationCode":{"authorizationUrl":"https://app.chargebee.com/oauth2/authorize","scopes":{"write_access":"Post e-invoicing document status to Chargebee"},"tokenUrl":"https://app.chargebee.com/oauth2/token"}},"type":"oauth2","scopes":["write_access"]}}},"servers":{"9b873620-43ca-42e7-9ab8-e9555d18136d":{"description":"Callback server for invoice document status","url":"https://{domain}.chargebee.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"flows":{"authorizationCode":{"authorizationUrl":"https://app.chargebee.com/oauth2/authorize","scopes":{"write_access":"Post e-invoicing document status to Chargebee"},"tokenUrl":"https://app.chargebee.com/oauth2/token"}},"type":"oauth2","scopes":["write_access"]},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"The access token received from the authorization server in the OAuth 2.0 flow.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"authorizationCode","name":"Authorization"}],"title":"authorizationCode"}]},"originalFileLocation":"spec/spi/generated/einvoicing/api/openapi.yaml"},"subdomain":"cb","siteName":"Chargebee Partner docs","title":"Receive document status updates for a credit note - Chargebee Partner docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-25T14:29:08.859Z","originalFileLocation":"api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note.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=\"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint. Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs. This endpoint is idempotent, repeated submissions with the same document_id and status will not result in duplicate processing. Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chargebee Partner docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_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/cb/t3SWCatkguaBu2Q3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Receive document status updates for a credit note - Chargebee Partner docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint. Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs. This endpoint is idempotent, repeated submissions with the same document_id and status will not result in duplicate processing. Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chargebee Partner docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cb.mintlify.site/_mintlify/api/og/v2?division=Callbacks\u0026amp;title=Receive+document+status+updates+for+a+credit+note\u0026amp;description=The+adapter+receives+a+webhook+from+the+provider%2C+transforms+the+payload+into+Chargebee%E2%80%99s+standardized+schema%2C+and+forwards+the+final+document+status+to+this+en\u0026amp;theme=5c6997a84c8bc4c1bb578bc5\u0026amp;signature=429de4448a01156f6cc64483f9b54cdaf80b0021e046e6c38b2eeb358d00273a\">\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=\"Receive document status updates for a credit note - Chargebee Partner docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint. Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs. This endpoint is idempotent, repeated submissions with the same document_id and status will not result in duplicate processing. Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cb.mintlify.site/_mintlify/api/og/v2?division=Callbacks\u0026amp;title=Receive+document+status+updates+for+a+credit+note\u0026amp;description=The+adapter+receives+a+webhook+from+the+provider%2C+transforms+the+payload+into+Chargebee%E2%80%99s+standardized+schema%2C+and+forwards+the+final+document+status+to+this+en\u0026amp;theme=5c6997a84c8bc4c1bb578bc5\u0026amp;signature=429de4448a01156f6cc64483f9b54cdaf80b0021e046e6c38b2eeb358d00273a\">\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/cb/t3SWCatkguaBu2Q3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chargebee Partner docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff3300\">\u003clink data-mint-head rel=\"canonical\" href=\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://spidocs.chargebee.com/#organization\",\"name\":\"Chargebee Partner docs\",\"url\":\"https://spidocs.chargebee.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cb/t_llHYxnCXjWsl_M/logo/light.svg?fit=max\u0026auto=format\u0026n=t_llHYxnCXjWsl_M\u0026q=85\u0026s=ea8284652978e0e228b6e8490b85f386\"}},{\"@type\":\"WebSite\",\"@id\":\"https://spidocs.chargebee.com#website\",\"name\":\"Chargebee Partner docs\",\"url\":\"https://spidocs.chargebee.com\",\"publisher\":{\"@id\":\"https://spidocs.chargebee.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note#webpage\",\"url\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note\",\"name\":\"Receive document status updates for a credit note\",\"description\":\"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint. Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs. This endpoint is idempotent, repeated submissions with the same document_id and status will not result in duplicate processing. Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\",\"dateModified\":\"2026-05-25T14:29:08.859Z\",\"isPartOf\":{\"@id\":\"https://spidocs.chargebee.com#website\"},\"breadcrumb\":{\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Einvoicing SPI\",\"item\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/docs/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Callbacks\",\"item\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-invoice\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Receive document status updates for a credit note\",\"item\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note#apireference\",\"headline\":\"Receive document status updates for a credit note\",\"name\":\"Receive document status updates for a credit note\",\"description\":\"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint. Chargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs. This endpoint is idempotent, repeated submissions with the same document_id and status will not result in duplicate processing. Requires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\",\"url\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note\",\"mainEntityOfPage\":{\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note#webpage\"},\"dateModified\":\"2026-05-25T14:29:08.859Z\",\"publisher\":{\"@id\":\"https://spidocs.chargebee.com/#organization\"},\"isPartOf\":{\"@id\":\"https://spidocs.chargebee.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chargebee Partner docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chargebee Partner docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note.md","siteName":"Chargebee Partner docs","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Partner SPI","pages":[{"title":"Overview","href":"/api-reference/partner-spi/overview"}]},{"group":"Tax SPI","pages":[{"title":null,"href":"/api-reference/tax-spi/docs/overview"},{"title":null,"href":"/api-reference/tax-spi/docs/authorization"},{"group":"Address","pages":[{"openapi":"post /address/validate","title":"Address validation","href":"/api-reference/tax-spi/endpoints/v1/address-validation"},{"openapi":"post /address/check-taxability","title":"Check taxability","href":"/api-reference/tax-spi/endpoints/v1/check-taxability"}]},{"group":"TaxEstimate","pages":[{"openapi":"post /tax-estimate","title":"Estimate tax","href":"/api-reference/tax-spi/endpoints/v1/estimate-tax"}]},{"group":"Invoice","pages":[{"openapi":"post /invoices","title":"Create Invoice","href":"/api-reference/tax-spi/endpoints/v1/create-invoice"},{"openapi":"get /invoices/{invoiceId}","title":"Retrieve Invoice","href":"/api-reference/tax-spi/endpoints/v1/retrieve-invoice"},{"openapi":"post /invoices/{invoiceId}/commit","title":"Commit Invoice","href":"/api-reference/tax-spi/endpoints/v1/commit-invoice"},{"openapi":"post /invoices/{invoiceId}/void","title":"Void Invoice","href":"/api-reference/tax-spi/endpoints/v1/void-invoice"}]},{"group":"CreditNote","pages":[{"openapi":"post /credit-notes","title":"Create credit note","href":"/api-reference/tax-spi/endpoints/v1/create-credit-note"},{"openapi":"get /credit-notes/{creditNoteId}","title":"Retrieve credit note","href":"/api-reference/tax-spi/endpoints/v1/retrieve-credit-note"},{"openapi":"post /credit-notes/{creditNoteId}/commit","title":"Commit credit note","href":"/api-reference/tax-spi/endpoints/v1/commit-credit-note"},{"openapi":"post /credit-notes/{creditNoteId}/void","title":"Void credit note","href":"/api-reference/tax-spi/endpoints/v1/void-credit-note"}]},{"group":"Authentication","pages":[{"openapi":"post /credentials/validate","title":"Validate credentials","href":"/api-reference/tax-spi/endpoints/v1/validate-credentials"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Fetch the health status of the Service Provider.","href":"/api-reference/tax-spi/endpoints/v1/fetch-the-health-status-of-the-service-provider"}]},{"title":"Testing with Postman","href":"/api-reference/tax-spi/docs/testing-with-postman"}]},{"group":"Tax Registration Number Validation SPI","pages":[{"title":null,"href":"/api-reference/tax-reg-number-validate/docs/overview"},{"group":"Authentication","pages":[{"openapi":"post /credentials/validate","title":"Validate credentials","href":"/api-reference/tax-reg-number-validate/endpoints/v1/validate-credentials"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Fetch the health status of the Service Provider.","href":"/api-reference/tax-reg-number-validate/endpoints/v1/fetch-the-health-status-of-the-service-provider"}]},{"group":"Tax Registration Number Validation","pages":[{"openapi":"post /trn/validate/batch","title":"Validate the tax registration numbers in batch","href":"/api-reference/tax-reg-number-validate/endpoints/v1/validate-the-tax-registration-numbers-in-batch"},{"openapi":"post /trn/validate","title":"Validate the tax registration number","href":"/api-reference/tax-reg-number-validate/endpoints/v1/validate-the-tax-registration-number"},{"openapi":"get /trn/validate/{requestId}","title":"Get the response of tax registration number validate request","href":"/api-reference/tax-reg-number-validate/endpoints/v1/get-the-response-of-tax-registration-number-validate-request"},{"openapi":"get /trn/validate/batch/{batchId}","title":"Get the response of batch of tax registration numbers","href":"/api-reference/tax-reg-number-validate/endpoints/v1/get-the-response-of-batch-of-tax-registration-numbers"},{"openapi":"delete /trn/validate/batch/{batchId}","title":"Delete the request of batch of tax registration numbers validation","href":"/api-reference/tax-reg-number-validate/endpoints/v1/delete-the-request-of-batch-of-tax-registration-numbers-validation"}]},{"title":"Testing with Postman","href":"/api-reference/tax-reg-number-validate/docs/testing-with-postman"}]},{"group":"Einvoicing SPI","pages":[{"title":null,"href":"/api-reference/einvoicing-spi/docs/overview"},{"group":"Authorization","pages":[{"title":null,"href":"/api-reference/einvoicing-spi/docs/authorization/overview"},{"title":"Chargebee to Adapter (Header-Based Auth)","href":"/api-reference/einvoicing-spi/docs/authorization/chargebee_to_adapter"},{"title":"Adapter to Chargebee(OAuth 2.0)","href":"/api-reference/einvoicing-spi/docs/authorization/adapter_to_chargebee"}]},{"group":"Activations","pages":[{"openapi":"get /einvoicing/activations","title":"Retrieve a list of Activations.","href":"/api-reference/einvoicing-spi/endpoints/v1/activations/retrieve-a-list-of-activations"},{"openapi":"get /einvoicing/data_input_fields","title":"Retrieves data input fields","href":"/api-reference/einvoicing-spi/endpoints/v1/activations/retrieves-data-input-fields"}]},{"group":"Documents","pages":[{"openapi":"post /einvoicing/documents","title":"Submit a document","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document"},{"openapi":"get /einvoicing/documents/{document_id}/status","title":"Get Document Status","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/get-document-status"},{"openapi":"get /einvoicing/documents/{document_id}/download","title":"Download Document","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/download-document"}]},{"group":"Callbacks","pages":[{"openapi":"post /api/v2/invoices/{document_id}/einvoice_status","title":"Receive document status updates for an invoice","description":"The adapter receives a webhook from the provider, transforms the payload into Chargebee’s standardized schema, and forwards the final document status to this endpoint.\n\nChargebee uses this callback to update internal document tracking states and trigger downstream workflows such as customer notifications or audit logs.\n\nThis endpoint is **idempotent**, repeated submissions with the same `document_id` and `status` will not result in duplicate processing.\n\nRequires an OAuth 2.0 access token authorized via the merchant OAuth flow. The Chargebee merchant must authorize the e-invoicing app via the OAuth flow to allow it to make authenticated POST calls to this endpoint.\n","href":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-invoice"},{"openapi":"post /api/v2/credit_notes/{document_id}/einvoice_status","title":"Receive document status updates for a credit note","href":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note"}]},{"group":"Authentication","pages":[{"openapi":"post /credentials/validate","title":"Validate credentials","description":"This endpoint is used to validate the credentials used to call the Service Provider.","href":"/api-reference/common/validate-credentials"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Fetch the health status of the Service Provider.","href":"/api-reference/common/fetch-the-health-status-of-the-service-provider"}]},{"title":"Testing with Postman","href":"/api-reference/einvoicing-spi/docs/testing-with-postman"}]},{"group":"Troubleshooting","pages":[{"title":null,"href":"/api-reference/troubleshooting"}]}]},{"tab":"App Onboarding","pages":[{"title":"App Onboarding","href":"/app-onboarding/guide"}]}]},"basePath":"","title":"Receive document status updates for a credit note - Chargebee Partner docs","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}