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-->
  <!--ATTENTION: Comments for each 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 associated with this payload-->
    <epcList>
      <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-->
    <!--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/)-->
    <productList>
      <product><Indicator><CompanyPrefix><ItemRef><CheckDigit></product>
      <product>urn:ibm:ift:product:class:1234567890123.ProductID</product>
    </productList>
    <!--Optional: List of product classes associated with this payload-->
    <!--Product class level elements of GS1 type: GTIN or -- 
        IBM Food Trust type: FTPI (https://food.ibm.com/ift/docs/identifiers-foodtrust/)-->
    <locationList>
      <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-->
    <!--Location elements of GS1 type: GLN, SGLN or -- 
        IBM Food Trust type: FTLI, SFTLI (https://food.ibm.com/ift/docs/identifiers-foodtrust/)-->
    <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