Get Shipping Events
Method: GET
/data-provider/events/shipping
As a Data Provider of iFoodDS, you can use the Get Ship Event API to retrieve ship event data from the iFoodDS Trace Exchange platform.
info
This endpoint is being refined and thus subject to change. These docs will update when changes are made.
Request
Type: application/json
Retrieving ship events via the API is done through paging. The request requires a series of query parameters which define the page that must be returned. These parameters must be supplied in the url when the get is executed in order to return the result set for the page being queried.
Query Parameters
Optional
page
(number): The page index of the events to return. The first page is index 0.size
(number): The number of results to return per page. Default value is 20.submitStartDateTime
(datetime): Filters results to include only events submitted after the specified date and time.submitEndDateTime
(datetime): Filters results to include only events submitted before the specified date and time.eventStartDateTime
(datetime): Filters results to include only events with an event date and time after the specified date and time.eventEndDateTime
(datetime): Filters results to include only events with an event date and time before the specified date and time.purchaseOrderNumber
: Filters results to include only events exactly matching the specified purchase order number.asnNumber
: Filters results to include only events exactly matching the specified ASN (advanced shipping notice) number.shipFromLocationCode
: The exact ship from vendor location code on the event.shipToLocationCode
: The exact ship to location code on the event.
Data Constraints
Please note the following data constraints:
strings
allow a maximum of 100 charactersdatetimes
must use the format:yyyy-MM-ddTHH:mm:ss
Response
- 200
- 400
Return result for the shipping event data queried.
{
"content": [
{
"id": "<event id>",
"eventDateTime": "<event date>",
"dataProviderVendorId": "<data provider vendor id>",
"dataProviderVendorName": "<data provider vendor name>",
"purchaseOrderDate": "<purchase order date>",
"purchaseOrderNumber": "<purchase order number>",
"billOfLadingNumber": "<bol number>",
"asnNumber": "<ASN (advanced shipping notice) number>",
"expectedDeliveryDate": "<expected delivery date>",
"shipFromLocationCode": "<ship from vendor location code>",
"shipToLocationCode": "<ship to location code>",
"productList": [
{
"palletId": "<pallet id>",
"palletLayers": "<pallet layers>",
"cartonsPerLayer": "<cartons per layer>",
"poLineNumber": "<purchase order line number>",
"vendorItemCode": "<vendor item code>",
"purchaserItemCode": "<purchaser item code>",
"caseGtin": "<case GTIN (Global Trade Identification Number)",
"caseLotNumber": "<case lot number>",
"shipQuantity": "<pallet quantity>",
"shipQuantityUom": "<ship quantity uom> (Units of Measure)",
"expirationDate": "<expiration date>",
"productionDate": "<production date>",
"packagingDate": "<packaging date>",
"bestBeforeDate": "<best before date>",
"harvestDate": "<harvest date>",
"countryOfOrigin": "<country of origin>",
"tlcSourceReferenceDuns": "<TLC source reference duns>",
"tlcSourceReferenceGln": "<TLC source reference gln>",
"tlcSourceReferenceFfrn": "<TLC source reference ffrn>"
"tlcSourceReferenceFei": "<TLC source reference fei>"
"tlcSourceReferenceUrl": "<TLC source reference url>",
"tlcSourceReferenceOther": "<TLC source reference other>",
"tlcSourceName": "<TLC source name>",
"tlcSourceAddress1": "<TLC source address 1>",
"tlcSourceAddress2": "<TLC source address 2>",
"tlcSourceCity": "<TLC source city>",
"tlcSourceState": "<TLC source state>",
"tlcSourcePostalCode": "<TLC source postal code>",
"tlcSourcePhoneNumber": "<TLC source phone number>",
"itemUpc": "<product UPC (Universal Product Code)>",
"itemPlu": "<product PLU>",
"itemDateCode": "<product date code>",
"itemDateCodeType": "<product date code type>"
}
]
}
],
"pageable": {
"pageNumber": <page number>,
"pageSize": <page size>,
"sort": {
"unsorted": <is unsorted>,
"sorted": <is sorted>,
"empty": <is page empty>
},
"offset": <offset size>,
"unpaged": <is unpaged>,
"paged": <is paged>
},
"totalPages": <total pages>,
"totalElements": <total elements>,
"last": <is last page>,
"numberOfElements": <number of elements>,
"size": <page size>,
"number": <page number>,
"sort": {
"unsorted": <is unsorted>,
"sorted": <is sorted>,
"empty": <is empty>
},
"first": <is first page>,
"empty": <is page empty>
}
Content
id
(uuid): The unique id of the eventeventDateTime
(datetime): Date and time the order was actually shippeddataProviderVendorId
(string): Your ID for the vendor/supplierdataProviderVendorName
(string): Name of the vendor/supplierpurchaseOrderDate
(date): Purchase order datepurchaseOrderNumber
(string): The purchase order number you received from your customerbillOfLadingNumber
(string): The Bill of Lading provided by you to your customerasnNumber
(string): This is the unique identifier for the ASN you provide to your customer (if you provide one)expectedDeliveryDate
(date): Date when shipper expects to deliver goods to recipientshipFromLocationCode
(string): The vendor’s location code for ship from locationshipToLocationCode
(string): The buyer’s location code for ship to location. This should be provided as part of the Purchase OrderproductList
(object[])palletId
(string): GS1 Serial Shipping Container Code, SSCC-18 (if provided)palletLayers
(number): Number of layers per palletcartonsPerLayer
(number): Number of cartons per layerpoLineNumber
(string): Line number in the purchase order for this item; this links the Traceability Lot Code to the line item on the POvendorItemCode
(string): This is the vendor's (or your) internal product id or item code stored in their master data. If the cases shipped are labeled with a case GTIN-14, this information should be stored in the product master data record for the item code / product id referencedpurchaserItemCode
(string): This is the purchaser's product item code provided via their PO or other form of data sharing. This information is stored in your master data. If the customer has shared a GTIN, it should be stored in the master data record. The purchaser's item code may also be the purchaser’s GTIN, but not necessarily-–it could be a SKU or another type of ID. This may point to the receiver’s master product data recordcaseGtin
(string): GTIN-14 of cases on palletcaseLotNumber
(string): This is the Lot Number displayed on the case label you are providing to the customer. This will be required starting in January 2026shipQuantity
(number): The number of units of this Traceability Lot Code on the palletshipQuantityUom
(string): Unit of measure (e.g., Case)expirationDate
(date): The expiration dateproductionDate
(date): The production datepackagingDate
(date): The packaging datebestBeforeDate
(date): The best before dateharvestDate
(date): The harvesting datecountryOfOrigin
(string): The three letter country code of origintlcSourceReferenceDuns
(string): 9 Digit Dun & Bradstreet Number, must be registered in DUNS and available to FDA. The TLC Source reference DUNS + 4tlcSourceReferenceGln
(string): 13 Digit GS1 Global Location Number. Must be registered in GS1 US Data Hub | Location. The TLC Source reference GLNtlcSourceReferenceFfrn
(string): FDA Food Facility Registration Number, must be current in FDA Facility Regisration Database. The TLC Source reference FFRNtlcSourceReferenceFei
(string): FDA Establishment Identifier. This number may be requested at no cost from FDA. The TLC Source reference FEItlcSourceReferenceUrl
(string): A web link point to a site where FDA may access the TLC Source Reference. The TLC Source reference URLtlcSourceReferenceOther
(string): This could be another identifier. One can prefix the ID with a type to make it easier to lookup. For example: 'USDAEgg: Plant 42"tlcSourceName
(string): The TLC source nametlcSourceAddress1
(string): The TLC Source physical street address line 1 informationtlcSourceAddress2
(string): The TLC Source physical street address line 2 information, if applicabletlcSourceCity
(string): The TLC Source city locationtlcSourceState
(string): The TLC Source state or region locationtlcSourcePostalCode
(string): The TLC Source ZIP or postal codetlcSourceCountry
(string): The TLC Source countrytlcSourcePhoneNumber
(string): The TLC Source phone numberitemUpc
(string): Item-level Universal Product Code, may be GTIN-8, GTIN-12, or GTIN-13. GS1 GTIN Executive SummaryitemPlu
(string): Include if items in the case are marked with PLU numbers; this may be used instead of UPCitemDateCode
(date): Often items are marked with a date code; if so, this field can be used to capture ititemDateCodeType
(string): Indicate the type of date code if provided
Pageable
pageable
(object)pageNumber
(number): The current page number in the page series. Index 0 is first pagepageSize
(number): The number of events contained in the pageoffset
(number): If there is an offset specified on there return results this will be populates. Default is 0unpaged
(boolean): If the record set is unpaged then true else falsepaged
(boolean): If the record set is paged then true else falsesort
(object)unsorted
(boolean): If the record set is unsorted then true else falsesorted
(boolean): If the record set is sorted then true else falseempty
(boolean): If the record set is empty then true else false
totalPages
(number): The total amount of pages that contain all events in the querytotalElements
(number): The total amount of events in the querylast
(boolean): If the page is the last in the series then true else falsenumberOfElements
(number): The total amount of events in the tablesize
(number): The number of events contained in the pagenumber
(number): The current page number in the page seriessort
(object)unsorted
(boolean): If the record set is unsorted then true else falsesorted
(boolean): If the record set is sorted then true else falseempty
(boolean): If the record set is empty then true else false
first
(boolean): If the page is the first in the series then true else falseempty
(boolean): If the page is empty then true else false
Description of what user-fixable validation error occurred and in what part of the payload
{
"timestamp": "2024-12-08T20:47:54.096+00:00",
"status": 400,
"error": "Bad Request",
"message": "<error description>"
}