Back to website Open portal

Available

Multi-invoice credit note schema

Generated consolidated credit note fields, the document allocation table, and the computed discrepancy rows.

Updated 2026-09-24

Use typeId: 13 for a consolidated credit note that credits many original invoices, debit notes, or bills in one document — marketplace fee adjustments, seller credits, anything printing an “Original Invoice Number” column.

document_allocations holds one row per distinct referenced document, and lineItems one row per printed fee line. Both tie back to the document they credit through reference_doc_number — never document_number, which this type does not use on either table.

discrepancies[].typeCompares
document_allocation_count_mismatchsummary_data.document_allocation_count against the number of document_allocations rows returned.
allocation_total_mismatchsummary_data.total_amount against the sum of document_allocations[].credit_amount.
allocation_taxable_mismatchsummary_data.taxable_amount against the sum of document_allocations[].taxable_amount.
line_item_document_mismatchEach document’s credit_amount against the sum of its line items, grouped by reference_doc_number. A line with no printed amount is reconstructed from taxable_amount plus its tax parts.

Credit notes often print their amounts as negatives (-INR 950.00). The extracted values are always absolute positive amounts. Missing template fields are omitted from the payload; missing arrays and objects are still normalized to empty containers, and a field the model returned as null is dropped. document_allocations and lineItems are removed entirely when empty. This type ignores requireLineItems; both settings resolve to the same template.

Fields

Field Type Template Description
processed_data.discrepancies[].actual number #Actual amount or count Returned Generated from the current multi-invoice credit note template.
processed_data.discrepancies[].difference number #Absolute numeric difference Returned Generated from the current multi-invoice credit note template.
processed_data.discrepancies[].expected number #Expected amount or count Returned Generated from the current multi-invoice credit note template.
processed_data.discrepancies[].reason string #Short plain-language reason Returned Generated from the current multi-invoice credit note template.
processed_data.discrepancies[].reference string #Related document number, or credit_note for note-level mismatches Returned Generated from the current multi-invoice credit note template.
processed_data.discrepancies[].type string #Stable mismatch type Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].cgst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].credit_amount float #Total credit amount against this document including tax Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].description string #Optional rolled-up description when the summary table groups by document Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].gst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].hsn_sac string #When a single HSN/SAC applies to the whole document group Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].igst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].reference_doc_date string (ISO 8601 date format) yyyy-mm-dd #Original Invoice Date when printed Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].reference_doc_number string #Original Invoice Number / Doc No of the referenced document Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].sgst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].taxable_amount float #Fee / taxable credit amount against this document Returned Generated from the current multi-invoice credit note template.
processed_data.document_allocations[].type string #Document being credited against: invoice, debit note, credit note, bill, or the printed label. Use invoice for an original invoice Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].amount float #Top-table line total including tax when printed; otherwise taxable + tax Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].cgst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].cgst_rate number Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].description string #Description of Service from the top table (e.g. Fixed Closing Fee, Listing Fee) Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].hsn_sac string #Category of Service / HSN / SAC from the top table Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].igst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].igst_rate number Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].reference_doc_date string (ISO 8601 date format) yyyy-mm-dd #Original Invoice Date from the TOP summary table Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].reference_doc_number string #Original Invoice Number / Doc No this line maps to (from the TOP summary table) Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].ser_no string #SI No from the TOP summary table Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].sgst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].sgst_rate number Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].tax_rate number #Printed tax rate percent, e.g. 18 Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].taxable_amount float #Top-table fee/service amount before tax Returned Generated from the current multi-invoice credit note template.
processed_data.lineItems[].type string #Document type this line credits against: invoice, debit note, credit note, bill, or the printed label. Use invoice for an original invoice Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.bill_to_address string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.bill_to_name string #Recipient / bill-to party Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.bill_to_pincode number Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.bill_to_state string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.cgst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.credit_note_date string (ISO 8601 date format) yyyy-mm-dd Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.credit_note_number string #Credit note / credit memo number Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.currency string #ISO currency code, for example INR Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.document_allocation_count integer #Number of distinct referenced documents in document_allocations Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.from_cin string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.from_gstin string #Issuer GSTIN Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.from_pan string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.gst_amount float #Total GST (CGST+SGST+IGST) Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.igst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.irn string #IRN when printed Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.issuer_address string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.issuer_name string #Party issuing the credit note Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.issuer_pincode number Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.issuer_state string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.notes string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.place_of_supply string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.reason string #Reason for credit / fee adjustment when printed Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.reference_number string #Any additional credit-note-level reference Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.sgst_amount float Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.state_ut_code string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.taxable_amount float #Subtotal of fees / taxable credit amount before tax Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.to_gstin string #Bill-to / recipient GSTIN Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.to_pan string Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.total_amount float #Total credit note amount including tax Returned Generated from the current multi-invoice credit note template.
processed_data.summary_data.type Credit Note Returned Generated from the current multi-invoice credit note template.