BodyliaBodylia OpenB2BSign in
← All guides

Self-billing invoice

nutrab2b.finance.self_billed.v2 · Finance

Purpose
Buyer issues the invoice on the supplier's behalf from receipts (consignment, toll).
When to send
Consumption or receipt.
Sender → receiver
Buyer → Supplier
Expected responses
ACK
Equivalent standards
EDIFACT: INVOIC (389) · SAP: ERS (MRRL)
Scenarios using it
-

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
invoice_numberstringyesSelf-billed number
receipt_idstringyesReceipt basis
currencystringyesCurrencycurrency
linesarray<object>yesLines
line_nointegeryesLine
item_idstringyesItem
quantityobjectyesQuantity
valuenumberyesQuantity
uomstringyesUnit of measureuom
unit_pricenumberyesPrice
line_amountnumberyesAmount
tax_totalnumberyesTax
totalnumberyesTotalNB-R001

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-self_billing-SB-44-1",
  "type": "nutrab2b.finance.self_billed.v2",
  "source": "urn:gln:0614141000012:erp",
  "subject": "SB-44",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/SELF_BILLING.json",
  "sender": {
    "gln": "0614141000012"
  },
  "receiver": {
    "gln": "4012345000009"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "SELF_BILLING:SB-44:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "invoice_number": "SB-44",
    "receipt_id": "GR-3301",
    "currency": "USD",
    "lines": [
      {
        "line_no": 1,
        "item_id": "ASH-KSM-5",
        "quantity": {
          "value": 100,
          "uom": "KGM"
        },
        "unit_price": 56,
        "line_amount": 5600
      }
    ],
    "tax_total": 0,
    "total": 5600
  }
}

Mapping checklist