BodyliaBodylia OpenB2BSign in
← All guides

Credit / debit note

nutrab2b.finance.credit_noted.v2 · Finance

Purpose
Adjust an invoice for returns, price differences, short shipment or rebates.
When to send
Agreed correction.
Sender → receiver
Supplier → Buyer
Expected responses
ACK
Equivalent standards
X12: 812 · EDIFACT: INVOIC (381/383)
Scenarios using it
Short receipt settled with credit note · Currency precision (ISO 4217)

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
note_numberstringyesNote number
invoice_typestringyes381 credit or 383 debitinvoice_type
invoice_numberstringyesOriginal invoice
currencystringyesCurrencycurrency
reasonstringyesReason
linesarray<object>yesLines
line_nointegeryesLine
line_amountnumberyesAmount
tax_totalnumberyesTax
totalnumberyesTotalNB-R001 NB-R011

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-credit_note-INV-9001-1",
  "type": "nutrab2b.finance.credit_noted.v2",
  "source": "urn:gln:4012345000009:erp",
  "subject": "INV-9001",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/CREDIT_NOTE.json",
  "sender": {
    "gln": "4012345000009"
  },
  "receiver": {
    "gln": "0614141000012"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "CREDIT_NOTE:INV-9001:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "note_number": "CN-120",
    "invoice_type": "381",
    "invoice_number": "INV-9001",
    "currency": "USD",
    "reason": "Short shipment 10 kg",
    "lines": [
      {
        "line_no": 1,
        "line_amount": 580
      }
    ],
    "tax_total": 0,
    "total": 580
  }
}

Mapping checklist