Skip to content

8. EPCIS Document Templates ‐ Association Event

Jaewook Byun edited this page Aug 31, 2023 · 2 revisions

Copyright © 2020-2023 Jaewook Byun all rights reserved.

Introduction

  • This page shows a concise set of association events in both XML and JSON formats
  • Each pair of events in both formats is equivalent and produces the same automatically generated hash identifier where
    • a JSON format contains GS1 Digital Link and condensed CBV
    • a XML format contains EPC and full CBV

Association Event 1 - Action ADD location minimal

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE project>
<epcis:AssociationEvent xmlns:epcis="urn:epcglobal:epcis:xsd:2" schemaVersion="2.0" creationDate="2022-11-11T14:59:02.099+09:00">
    <eventTime>2022-11-11T14:59:02.099+09:00</eventTime>
    <eventTimeZoneOffset>+09:00</eventTimeZoneOffset>
    <certificationInfo>https://customsauthority.example.gov/certificate/ABC12345</certificationInfo>
    <parentID>urn:epc:id:sgln:4012345.00001.0</parentID>
    <childEPCs>
        <epc>urn:epc:id:giai:4000001.12345</epc>
    </childEPCs>
    <childQuantityList>
        <quantityElement>
            <epcClass>urn:epc:idpat:itip:4000001.012345.04.04.*</epcClass>
            <quantity>1</quantity>
        </quantityElement>
    </childQuantityList>
    <action>ADD</action>
</epcis:AssociationEvent>

{
    "@context": "https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld",
    "type": "AssociationEvent",
    "eventTime": "2022-11-11T14:59:02.099+09:00",
    "eventTimeZoneOffset": "+09:00",
    "certificationInfo": "https://customsauthority.example.gov/certificate/ABC12345",
    "parentID" : "https://id.gs1.org/414/4012345000016",
    "childEPCs": [
        "https://id.gs1.org/8004/400000112345"
    ],
    "action": "ADD",
    "childQuantityList": [
        {
            "epcClass": "https://id.gs1.org/8006/040000011234520404",
            "quantity": 1
        }
    ]
}