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 21, 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 GS1 type: LGTIN, SGTIN, SSCC or -- 
       IBM Food Trust type: LFTPI, SFTPI, FTLPN (https://food.ibm.com/ift/docs/identifiers-foodtrust/) -->
      <epc>urn:epc:id:sscc:0614141.0123456789</epc>
      <epc>urn:ibm:ift:product:serial:obj:0614141000000.107346.2016</epc>
    </epcList>
    <!--Optional: List of epcs associated with this payload.-->
    <productList>
      <product>urn:ibm:ift:product:class:1234567890123.ProductID</product>
    </productList>
    <!--Optional: List of IBM Food Trust product classes associated with this payload.-->
    <locationList>
      <!--Location elements of GS1 type: GLN, SGLN or -- 
      IBM Food Trust type: FTLI, SFTLI (https://food.ibm.com/ift/docs/identifiers-foodtrust/)-->
      <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 associated with this payload.-->
    <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