BodyliaBodylia OpenB2BSign in
← All guides

Invoice

nutrab2b.finance.invoiced.v2 · Finance

Purpose
Commercial invoice with lines, tax and charges; must reconcile with PO and receipt (three-way match).
When to send
Goods shipped/received per terms.
Sender → receiver
Supplier → Buyer
Expected responses
ACK, REMITTANCE
Equivalent standards
X12: 810 · EDIFACT: INVOIC · GS1: Invoice · SAP: INVOIC IDoc / MIRO
Scenarios using it
Full order-to-cash · Three-way match failures · Short receipt settled with credit note · Invoice totals do not add up

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
invoice_numberstringyesInvoice number
invoice_typestringyesTypeinvoice_type
invoice_datedateyesDate
po_numberstringyesPO
asn_idstringShipment
currencystringyesCurrencycurrency
payment_termsstringyesTermspayment_terms
due_datedateDue date
linesarray<object>yesInvoice lines
line_nointegeryesLine
po_line_nointegeryesPO lineNB-R012 NB-R014
item_idstringyesItem
quantityobjectyesInvoiced quantity
valuenumberyesQuantity
uomstringyesUnit of measureuom
unit_pricenumberyesUnit priceNB-R011 NB-R012
line_amountnumberyesquantity × unit priceNB-R001
tax_categorystringTax categorytax_category
tax_rate_pctnumberTax rate %
chargesarray<object>Freight, insurance, discounts (negative)
typestringyesfreight | insurance | discount | other^(freight|insurance|discount|other)$
amountnumberyesAmount
tax_totalnumberyesTotal taxNB-R001
totalnumberyesGrand total = Σ lines + charges + taxNB-R001 NB-R011

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-invoice-PO-55012-1",
  "type": "nutrab2b.finance.invoiced.v2",
  "source": "urn:gln:4012345000009:erp",
  "subject": "PO-55012",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/INVOICE.json",
  "sender": {
    "gln": "4012345000009"
  },
  "receiver": {
    "gln": "0614141000012"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "INVOICE:PO-55012:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "invoice_number": "INV-9001",
    "invoice_type": "380",
    "invoice_date": "2026-12-03",
    "po_number": "PO-55012",
    "asn_id": "ASN-9001",
    "currency": "USD",
    "payment_terms": "NET30",
    "due_date": "2027-01-02",
    "lines": [
      {
        "line_no": 1,
        "po_line_no": 1,
        "item_id": "ASH-KSM-5",
        "quantity": {
          "value": 500,
          "uom": "KGM"
        },
        "unit_price": 58,
        "line_amount": 29000,
        "tax_category": "Z",
        "tax_rate_pct": 0
      }
    ],
    "charges": [
      {
        "type": "freight",
        "amount": 1250
      }
    ],
    "tax_total": 0,
    "total": 30250
  }
}

Mapping checklist