BodyliaBodylia OpenB2BSign in
← All guides

Facility

nutrab2b.master.facility_upserted.v2 · Master data

Purpose
Describe a site (farm, extraction plant, CDMO, warehouse, lab) with its registrations and capabilities.
When to send
New site, change in registrations or capabilities.
Sender → receiver
Facility owner → Hub and buyers
Expected responses
ACK
Equivalent standards
GS1: GLN location master · SAP: Plant (T001W)
Scenarios using it
-

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
glnstringyesFacility GLN^\d{13}$
owner_glnstringyesOwning party GLN^\d{13}$
namestringyesFacility name
typestringyesFacility typefacility_type
addressobjectyesPostal address
linesarray<string>Street lines
citystringCity
postal_codestringPostal code
regionstringState / province (ISO 3166-2 subdivision)
countrystringyesCountrycountry
geoobjectCoordinates (EUDR / origin traceability)
latnumberyesLatitude
lonnumberyesLongitude
polygon_wktstringPlot polygon WKT (wild collection / farm)
schemesarray<string>Quality schemes held (quality_scheme codes)
capabilitiesarray<string>Product forms produced (product_form codes)
storagearray<string>Storage classes available

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-facility-FACILITY-1",
  "type": "nutrab2b.master.facility_upserted.v2",
  "source": "urn:gln:0614141000012:erp",
  "subject": "FACILITY",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/FACILITY.json",
  "sender": {
    "gln": "0614141000012"
  },
  "receiver": {
    "gln": "4012345000009"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "FACILITY:FACILITY:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "gln": "4012345000016",
    "owner_gln": "4012345000009",
    "name": "Bengaluru extraction plant",
    "type": "EXTRACTION",
    "address": {
      "city": "Bengaluru",
      "country": "IN"
    },
    "geo": {
      "lat": 13.07,
      "lon": 77.58
    },
    "schemes": [
      "CGMP_111",
      "FSSC_22000",
      "FSSAI"
    ],
    "capabilities": [
      "EXTRACT_DRY",
      "POWDER"
    ],
    "storage": [
      "AMBIENT",
      "DRY"
    ]
  }
}

Mapping checklist