BodyliaBodylia OpenB2BSign in
← All guides

Deviation request

nutrab2b.quality.deviation_decided.v2 · Quality & compliance

Purpose
Request and record approval to ship or use material outside specification, with conditions and expiry.
When to send
OOS result where use may still be acceptable.
Sender → receiver
Supplier (request) / buyer (decision) → Counterparty
Expected responses
ACK
Equivalent standards
-
Scenarios using it
Out-of-spec lot ships under deviation

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
deviation_idstringyesDeviation id
lot_numberstringyesLot
analytestringyesParameteranalyte
requestedstringyesWhat deviates and by how much
decisionstringyesrequested | approved | rejected^(requested|approved|rejected)$
conditionsstringConditions of approval
valid_untildateApproval valid until

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-deviation-ASH-26-121-1",
  "type": "nutrab2b.quality.deviation_decided.v2",
  "source": "urn:gln:4012345000009:erp",
  "subject": "ASH-26-121",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/DEVIATION.json",
  "sender": {
    "gln": "4012345000009"
  },
  "receiver": {
    "gln": "0614141000012"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "DEVIATION:ASH-26-121:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "deviation_id": "DEV-19",
    "lot_number": "ASH-26-121",
    "analyte": "LOD",
    "requested": "LOD 6.2% vs ≤ 6.0%",
    "decision": "approved",
    "conditions": "Use within 6 months; store DRY",
    "valid_until": "2027-06-30"
  }
}

Mapping checklist