Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

xml_Payload

Josh Horton edited this page Jan 12, 2021 · 15 revisions
<?xml version="1.0" encoding="UTF-8"?>
<ift:payload xmlns:ift="urn:ibm:ift:xsd:1">
  <!-- XML message to communicate generic string-encoded payloads to IBM Food Trust.-->
  <!-- NOTE : Comments for a field appear BELOW the field. -->
  <payloadMessage>
    <payloadID>string</payloadID>
    <!--Mandatory: ID of this payload.-->
    <payloadTime>2018-09-28T21:49:45Z</payloadTime>
    <!--Optional: Timestamp for this payload message.-->
    <payloadContentType>application/json</payloadContentType>
    <!--Optional: http content type of payload - application/json -->
    <payloadTypeURI>string</payloadTypeURI>
    <!--Mandatory: URI for payload type - string or json triple or sensor -->
    <eventIDList>
      <eventID>eventID1</eventID>
      <eventID>eventID2</eventID>
    </eventIDList>
    <!--Optional: List of events with which this payload is associated.-->
    <epcList>
      <!--Zero or more epc elements of type: GTIN, LGTIN, SGTIN, SSCC -->
      <epc>urn:epc:id:sscc:0614141.0123456789</epc>
      <epc>urn:ibm:ift:product:serial:obj:0614141000000.107346.2016</epc>
    </epcList>
    <!--Optional: List of epcs with which this payload is associated.-->
    <productList>
      <product>urn:ibm:ift:product:class:1234567890123.ProductID</product>
    </productList>
    <!--Optional: List of products (IBM product IDs) with which this payload is associated.-->
    <locationList>
      <!--Location elements of type: EPC-SGLN or IBM Food Trust location-with-extension -->
      <location>urn:epc:id:sgln:0614141.00777.0</location>
      <location>urn:ibm:ift:location:extension:loc:1234567890123.store-123.toy-department</location>
    </locationList>
    <!--Optional: List of locations with which this payload is associated.-->
    <payload>string</payload>
    <!--Mandatory: payload - string or json triple or sensor -->
  </payloadMessage>
  <!--Optional: Additional payloadMessage(s) can be added.-->
</ift:payload>
Clone this wiki locally