{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Issuing Credit Notes","description":"Complete documentation for integrating Cheqi's digital receipt platform","keywords":["cheqi","digital receipts","api","sdk","java","javascript"],"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"issuing-credit-notes","__idx":0},"children":["Issuing Credit Notes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After validating a customer return, calculate the accepted credit from your authoritative transaction data and submit a definitive credit-note generation input. The SDK resolves the original receipt's owner devices, encrypts the same input independently for each device, and submits it through the credit-note endpoint."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Cheqi does not calculate or move the refund"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your system owns eligibility, accepted quantity, financial and tax calculations, payment processing, reconciliation, and customer communication. The SDK serializes the values you provide without recalculating them."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"amount-signs","__idx":1},"children":["Amount signs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Supply positive quantities and positive credit amounts. A credit note represents the reversal through its document type; negative quantities or totals are not required and produce incorrect UBL semantics for the current generator."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example, a full credit of a €100.00 net line with 21% VAT uses:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["quantity"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subtotal"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100.00"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["totalTaxAmount"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["21.00"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["totalAmount"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["121.00"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"generation-input","__idx":2},"children":["Generation input"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The plaintext encrypted for each owner device has two top-level properties:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["creditNoteTemplateRequest"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Definitive merchant-supplied credit-note values."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["taxesApplied"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," when no tax applies; otherwise provide tax entries with values."]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"creditNoteTemplateRequest\": {\n    \"documentNumber\": \"CN-2026-0042\",\n    \"originatorDocumentReference\": \"INV-2026-0042\",\n    \"identifiers\": [\n      { \"type\": \"RETURN_AUTHORIZATION\", \"value\": \"RMA-91827\" }\n    ],\n    \"issueDate\": \"2026-08-05T14:30:22Z\",\n    \"currency\": \"EUR\",\n    \"creditNoteSubtotal\": 100.00,\n    \"totalBeforeTax\": 100.00,\n    \"totalTaxAmount\": 21.00,\n    \"totalAmount\": 121.00,\n    \"products\": [\n      {\n        \"identifier\": \"SKU-AIRMAX-BLK-42\",\n        \"brandName\": \"Nike\",\n        \"name\": \"AirMax\",\n        \"quantity\": 1,\n        \"baseQuantity\": 1,\n        \"unitCode\": \"C62\",\n        \"unitPrice\": 100.00,\n        \"subtotal\": 100.00,\n        \"total\": 121.00,\n        \"taxes\": [\n          {\n            \"rate\": 21,\n            \"type\": \"VAT\",\n            \"taxableAmount\": 100.00,\n            \"amount\": 21.00,\n            \"category\": \"STANDARD\"\n          }\n        ]\n      }\n    ],\n    \"taxes\": [\n      {\n        \"rate\": 21,\n        \"type\": \"VAT\",\n        \"taxableAmount\": 100.00,\n        \"amount\": 21.00,\n        \"label\": \"VAT 21%\",\n        \"category\": \"STANDARD\"\n      }\n    ]\n  },\n  \"taxesApplied\": true\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["C62"]}," is the UN/ECE unit code for one item. Use the unit and tax category appropriate to the original transaction."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"required-credit-note-properties","__idx":3},"children":["Required credit-note properties"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["documentNumber"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your unique credit-note number."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originatorDocumentReference"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your document number for the original receipt."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["issueDate"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ISO 8601 issue date and time."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ISO 4217 code."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["creditNoteSubtotal"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Line subtotal before document-level adjustments and tax."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["totalBeforeTax"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Total after document-level adjustments, excluding tax."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["totalTaxAmount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Total tax credit."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["totalAmount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tax-inclusive total credit."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["products"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["At least one credited product."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every product needs ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifier"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["quantity"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unitCode"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unitPrice"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subtotal"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["total"]},". The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifier"]}," should match the return request's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["productId"]}," and the original receipt product's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifier"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["taxesApplied"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", include document-level tax entries and the relevant product-level entries. Each tax needs ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rate"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["taxableAmount"]},"; include ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," for the calculated tax credit. When tax does not apply, set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["taxesApplied"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," and the tax arrays may be empty."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Optional document properties are ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifiers"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["discounts"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["charges"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["period"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["jurisdictionalData"]},". The legacy ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["note"]}," property is ignored by the current document generator; configure the company's receipt text when a seller note should appear."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/creditnote/credit-notes#merchant-credit-note-input"},"children":["Credit Notes"]}," for the full property summary."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"build-from-a-return-request","__idx":4},"children":["Build from a return request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["request.productId"]}," and the parent receipt identifiers to look up the original line in your own system. Do not trust prices or derive refund eligibility from customer input."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"function buildCreditNoteGenerationInput(returnRequest, originalReceipt) {\n  const acceptedLines = validateAndPriceReturn(returnRequest, originalReceipt);\n\n  const products = acceptedLines.map(({ originalLine, acceptedQuantity }) => {\n    const subtotal = calculateNetCredit(originalLine, acceptedQuantity);\n    const tax = calculateTaxCredit(originalLine, acceptedQuantity);\n\n    return {\n      identifier: originalLine.identifier,\n      brandName: originalLine.brandName,\n      name: originalLine.name,\n      quantity: acceptedQuantity,\n      baseQuantity: originalLine.baseQuantity ?? 1,\n      unitCode: originalLine.unitCode,\n      unitPrice: originalLine.unitPrice,\n      subtotal,\n      total: subtotal + tax,\n      taxes: [{\n        rate: originalLine.taxRate,\n        type: originalLine.taxType,\n        taxableAmount: subtotal,\n        amount: tax,\n        category: originalLine.taxCategory\n      }]\n    };\n  });\n\n  const totalBeforeTax = products.reduce((sum, line) => sum + line.subtotal, 0);\n  const totalTaxAmount = products.reduce(\n    (sum, line) => sum + line.taxes.reduce((taxSum, tax) => taxSum + tax.amount, 0),\n    0\n  );\n\n  return {\n    creditNoteTemplateRequest: {\n      documentNumber: generateCreditNoteNumber(),\n      originatorDocumentReference: returnRequest.receiptId,\n      issueDate: new Date().toISOString(),\n      currency: originalReceipt.currency,\n      creditNoteSubtotal: totalBeforeTax,\n      totalBeforeTax,\n      totalTaxAmount,\n      totalAmount: totalBeforeTax + totalTaxAmount,\n      products,\n      taxes: aggregateTaxes(products)\n    },\n    taxesApplied: originalReceipt.taxesApplied\n  };\n}\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use decimal-safe arithmetic in production; the example leaves those business-specific functions to your implementation."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"issue-with-javascript-or-typescript","__idx":5},"children":["Issue with JavaScript or TypeScript"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Identify the recipient through the parent ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cheqiReceiptId"]},", then pass that same ID separately as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentCheqiReceiptId"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const parentCheqiReceiptId = returnRequest.cheqiReceiptId;\nconst identification = { cheqiReceiptId: parentCheqiReceiptId };\nconst generationInput = buildCreditNoteGenerationInput(\n  returnRequest,\n  originalReceipt\n);\n\nconst result = await sdk.creditNoteService.issueCreditNote(\n  identification,\n  parentCheqiReceiptId,\n  generationInput\n);\n\nif (result.isAccepted()) {\n  console.log(\"Credit note accepted\", result.cheqiReceiptId);\n}\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For OAuth, pass the access token as the fourth argument. To specify a store and OAuth token, pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["storeId"]}," as the fourth argument and the token as the fifth."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"issue-with-java","__idx":6},"children":["Issue with Java"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The current Java method accepts the generation input as an object while the public typed schema is being finalized:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"Map<String, Object> generationInput = Map.of(\n    \"creditNoteTemplateRequest\", creditNoteTemplateRequest,\n    \"taxesApplied\", taxesApplied\n);\n\nIdentificationDetails identification = new IdentificationDetails()\n    .cheqiReceiptId(returnRequest.getCheqiReceiptId());\n\nCreditNoteResult result = sdk.getCreditNoteService().issueCreditNote(\n    identification,\n    returnRequest.getCheqiReceiptId(),\n    generationInput\n);\n\nif (result.isAccepted()) {\n    log.info(\"Credit note accepted: {}\", result.getCheqiReceiptId());\n}\n","lang":"java"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The OAuth overload takes ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accessToken"]}," after the generation input. An overload with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["storeId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accessToken"]}," is also available."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"result-and-lifecycle","__idx":7},"children":["Result and lifecycle"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An accepted SDK result contains:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cheqiReceiptId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Identifier assigned to the new credit-note generation job/document."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentCheqiReceiptId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Original receipt ID supplied by the merchant."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["matchId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Recipient-resolution match identifier."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Initial submission status."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdAt"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Submission timestamp."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Acceptance means the encrypted generation job was queued; it does not mean a payment refund has been completed. Update the original return request's status separately using its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["requestId"]},", and only mark it ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COMPLETED"]}," when your return workflow has actually finished."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related","__idx":8},"children":["Related"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/creditnote/receiving-returns"},"children":["Receiving Return Requests"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/creditnote/credit-notes"},"children":["Credit Notes property reference"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/creditnote/ubl-format"},"children":["UBL XML Credit Note Format"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk/java"},"children":["Java SDK"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk/javascript"},"children":["JavaScript SDK"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk/overview"},"children":["Request another SDK language"]}]}]}]},"headings":[{"value":"Issuing Credit Notes","id":"issuing-credit-notes","depth":1},{"value":"Amount signs","id":"amount-signs","depth":2},{"value":"Generation input","id":"generation-input","depth":2},{"value":"Required credit-note properties","id":"required-credit-note-properties","depth":3},{"value":"Build from a return request","id":"build-from-a-return-request","depth":2},{"value":"Issue with JavaScript or TypeScript","id":"issue-with-javascript-or-typescript","depth":2},{"value":"Issue with Java","id":"issue-with-java","depth":2},{"value":"Result and lifecycle","id":"result-and-lifecycle","depth":2},{"value":"Related","id":"related","depth":2}],"frontmatter":{"title":"Issuing Credit Notes","description":"Build and issue a definitive encrypted credit note linked to an original receipt","seo":{"title":"Issuing Credit Notes"}},"lastModified":"2026-08-11T23:21:19.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/creditnote/issuing-credit-notes","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}