Skip to content

EPCIS Object Delete

EPCIS Object (Delete) -> (layer: 'event', label: 'decommissioning')

GS1 to JSON mapping

This section shows the GS1 XML to JSON mappings. JSON keys are on the left, and the XPaths to the corresponding tag in GS1 XML are on the right, separated by a colon character (:).

// Context Node: /epcis:EPCISDocument/EPSICBody/EventList/ObjectEvent
  "eventID" : "baseExtension/eventID",
  "eventTime" : "eventTime",
  "generationInfo" : {
    "isConnectorGenerated" : "true | false",
    "generatedFromEventID" : ""
  "recordTime" : "recordTime",
  "eventTimeZoneOffset": "eventTimeZoneOffset",
  "epcList" : [
  // Context Node: extension/quantityList
  "quantityList" : [
      "epcClass" : "epcClass",
      "quantity" : "quantity",
      "quantity_uom" : "uom",
  "flatEPCList" : [
  "flatGTINList" : [
  "action" : "DELETE",
  "bizStep" : "bizStep",
  "disposition" : "disposition",
  "readPoint" : "readPoint/id",
  "bizLocation" : "bizLocation",
  "sourceList" : [
      "type" : "sourceList/source/@type",
      "source" : "sourceList/source"
  "destinationList" : [
      "type" : "destinationList/destination/@type",
      "destination" : "destinationList/destination",
  // Context Node: bizTransactionList
  "bizTransactionList" : [
      "type" : "bizTransaction/@type",
      "bizTransaction" : "bizTransaction"


The following example shows a valid GS1 XML file for input. The JSON output follows.

Note: The following fields have been removed for GDPR compliance:

  1. StandardBusinessDocumentHeader.Sender.ContactInformation (all sub-elements)
  2. StandardBusinessDocumentHeader.Receiver.ContactInformation (all sub-elements)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        xmlns:xsi="" creationDate="2005-07-11T11:30:47.0Z" schemaVersion="1.2">
                <!--MANDATORY. UTC time (ISO 8601) when event occurred.-->
                <!--OPTIONAL. Time-zone of location, as an offset from UTC.-->
                    <!--OPTIONAL. Unique ID for the event. If not specified, it will be assigned by the system and returned in the body of the response.-->
                    <!--Additional entries go here-->
                <!--MANDATORY that either epcList or quantityList (see below) be present.-->
                <!--List of decommissioned instance-level objects (SSCC, SGTIN).-->
                <!--LGTINs and other class-level objects go in quantityList (see below)-->
                <!--General SGTIN syntax: urn:epc:id:sgtin:CompanyPrefix.ItemRefAndIndicator.SerialNumber-->
                <!--CompanyPrefix.ItemRefAndIndicator ahould have 13 digits (without counting dots).-->
                <!--CompanyPrefix is equal to the CompanyPrefix derived from GTIN-14.-->
                <!--ItemRefAndIndicator is formed by concatenating the first digit (Indicator) from GTIN-14 with ItemRef digits from GTIN-14.-->
                <!--GTIN-14 check digit is dropped.-->
                <!--GTIN-12 or GTIN-13 should first be converted to GTIN-14 by adding leading 0s before above conversion.-->
                <!--General EPC SSCC syntax: urn:epc:id:sscc:CompanyPrefix.SerialRefAndExtension-->
                <!--EPC SSCC is 17 digits-->
                <!--CompanyPrefix is equal to the CompanyPrefix in GS1 SSCC-->
                <!--SerialReferenceAndExtension is formed by concatenating the first digit (Extension) from GS1 SSCC with SerialRef digits from GS1 SSCC.-->
                <!--GS1 SSCC check digit is dropped.-->
                <!--MANDATORY. EPCIS action. Don't change-->
                <!--OPTIONAL. From>
                <!--The business step that this event was a part of.-->
                <!--OPTIONAL. From>
                <!--The condition of the objects after this event.-->
                <!--OPTIONAL: SGLN for point at which the decommissioning occurred. Used if multiple facilities GLNs (look below for the Mandatory GLN).-->
                <!--General syntax of SGLN: urn:epc:id:sgln:CompanyPrefix.LocationReference.Extension-->
                <!--CompanyPrefix.LocationReference are the first 12 digits of GLN (13th check digit is not included).-->
                <!--Extension can be a single 0 digit (denoting no extension), or can be any number of digits without leading zeros-->
                <!--MANDATORY: SGLN (extensible global location number) for the business location where the event occurred.-->
                <!--See above for SGLN format-->
                    <bizTransaction type="urn:epcglobal:cbv:btt:prodorder">urn:epcglobal:cbv:bt:string:string </bizTransaction>
                    <bizTransaction type="urn:epcglobal:cbv:btt:desadv">urn:epcglobal:cbv:bt:string:string</bizTransaction>
                    <!--Additional entries go here-->
                <!--OPTIONAL. From Page 28 of>
                <!--List of business transactions associated with this event.-->
                <!--The example above shows a production order and a despatch advice (ASN)-->
                <!--General syntax: urn:epcglobal:cbv:bt:GLN:TransactionID-->
                <!--Where GLN is the 13-digit GLN of the party that defines the transaction.-->
                <!--NOTE: Even though this field is optional, our provenance graph uses events as backbones while tracing.-->
                <!--Thus transaction linkages to EPCIS events are required if the client wants correct transaction ordering during trace queries.-->
                            <!--MANDATORY for quantityElement. Class-level EPCs like LGTINs. See note below for description.-->
                            <!--MANDATORY for quantityElement.-->
                            <!--Meaning: 10 cases of LGTIN '0614141.107346' belonging to lot '101'-->
                            <!--MANDATORY for quantityElement. Item quantity unit of measurement. "CS" = Case. Also valid: KG, KGM, EA.-->
                        <!--Additional quantityElement entries go here.-->
                    <!--MANDATORY that either epcList or quantityList be present.-->
                    <!--List of decommissioned class-level objects like LGTINS (GTIN+lot) along with their quantity and unit of measure.-->
                    <!--LGTINs should be constructed to be as unique as possible; by concatenating time/dtae of creation with object id, e.g.-->
                    <!--General LGTIN syntax: urn:epc:id:sgtin:CompanyPrefix.ItemRefAndIndicator.Lot-->
                    <!--CompanyPrefix.ItemRefAndIndicator ahould have 13 digits (without counting dots).-->
                    <!--CompanyPrefix is equal to the CompanyPrefix derived from GTIN.-->
                    <!--ItemRefAndIndicator is formed by concatenating the first digit (Indicator) from GTIN with ItemRef digits from GTIN.-->
                    <!--GTIN check digit is dropped.-->
                    <!--If a GTIN (without lot) is to be represented, the following syntax is used:-->
                    <!--From Page 35 of>
                    <!--urn:epc:idpat:sgtin:CompanyPrefix.ItemRefAndIndicator.* where -->
                    <!--CompanyPrefix.ItemRefAndIndicator is 13 digits as above.-->
                        <source type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:string.string.integer</source>
                        <!--Additional source entries go here.-->
                        <!--OPTIONAL: SGLN of the facility or facilities that goods are being sent from.-->
                        <!--MANDATORY if this event involves a transfer of goods.-->
                        <destination type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:string.string.integer</destination>
                        <!--Additional destination entries go here.-->
                        <!--OPTIONAL: SGLN of the receiving facility or facilities.-->
                        <!--MANDATORY if this event involves a transfer of goods. -->


The following example shows the JSON output from the input GS1 XML file above.

    "eventTime": "2013-06-08T14:58:56.591Z",
    "eventTimeZoneOffset": "+02:00",
    "epcList": [
    "action": "DELETE",
    "bizStep": "urn:epcglobal:cbv:bizstep:decommissioning",
    "disposition": "urn:epcglobal:cbv:disp:inactive",
    "readPoint": "urn:epc:id:sgln:string.string.integer",
    "bizLocation": "urn:epc:id:sgln:string.string.integer",
    "bizTransactionList": [
        "bizTransaction": "urn:epcglobal:cbv:bt:string:string ",
        "type": "urn:epcglobal:cbv:btt:prodorder"
        "bizTransaction": "urn:epcglobal:cbv:bt:string:string",
        "type": "urn:epcglobal:cbv:btt:desadv"
    "quantityList": [
        "epcClass": "urn:epc:class:lgtin:string.string.string",
        "quantity": "10",
        "quantity_uom": "CS"
    "sourceList": [
        "source": "urn:epc:id:sgln:string.string.integer",
        "type": "urn:epcglobal:cbv:sdt:owning_party"
    "destinationList": [
        "destination": "urn:epc:id:sgln:string.string.integer",
        "type": "urn:epcglobal:cbv:sdt:owning_party"
    "flatEPCList": [
    "flatGTINList": [
    "generationInfo": {
      "isConnectorGenerated": "false"
    "eventID": "urn:uuid:string"