Get Transformation Events
/data-provider/events/transformation
As a Data Provider of iFoodDS, you can use the Get Transformation Event API to query transformation event data from the iFoodDS Trace Exchange platform.
This endpoint is being refined and thus subject to change. These docs will update when changes are made.
Request
Type: application/json
Retrieving transformation 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.workOrderNumber
(string): The exact work order number on the event.transformationLocationCode
(string): The exact transformation code on the event.foodUsedWoLineNumber
(string): The exact food used work order line number on the event.foodProducedWoLineNumber
(string): The exact food produced work order line number on the event.foodUsedItemCode
(string): The exact food used item code on the event.foodProducedItemCode
(string): The exact food produced item code on the event.
Data Constraints
Please note the following data constraints:
datetimes
must use the format:yyyy-MM-ddTHH:mm:ss
Response
- 200
- 400
Return result for the transformation event data queried.
{
"content": [
{
"id": "<event id>",
"dataProviderVendorId": "<data provider vendor ID>",
"dataProviderVendorName": "<data provider vendor name>",
"eventDateTime": "<event date>",
"workOrderNumber": "<work order number>",
"foodProduced": [
{
"acceptableSpeciesName": "<acceptable species name>",
"alternateItemCode": "<alternate item code>",
"brandName": "<brand name>",
"caseGtin": "case <GTIN (Global Trade Item Number)>",
"lotCode": "<lot code>",
"productId": "<product id>",
"quantity": "<quantity>",
"quantityUom": "<uom> (Units of Measure)",
"ftlCategory": "<FTL (Food Traceability List) category>",
"isFtlItem": <is ftl item>,
"gtin": "<GTIN (Global Trade Item Number)>",
"innerPackUpc": "<inner pack UPC>",
"itemDescription": "<item description>",
"packSize": "<pack size>",
"packStyle": "<pack style>",
"productCommodity": "<product commodity",
"productVariety": "<product variety>",
"scientificName": "<scientific name>",
"woLineNumber": "<work order line number>",
"iotDevicePalletProduced": "<iot device pallet produced>",
"ssccPalletProduced": "<sscc pallet produced>",
"lpnPalletProduced": "<lpn pallet produced>"
}
],
"foodUsed": [
{
"acceptableSpeciesName": "<acceptable species name>",
"alternateItemCode": "<alternate item code>",
"brandName": "<brand name>",
"caseGtin": "case <GTIN (Global Trade Item Number)>",
"lotCode": "<lot code>",
"productId": "<product id>",
"quantity": "<quantity>",
"quantityUom": "<uom> (Units of Measure)",
"ftlCategory": "<FTL (Food Traceability List) category>",
"isFtlItem": <is ftl item>,
"gtin": "<GTIN (Global Trade Item Number)>",
"innerPackUpc": "<inner pack UPC>",
"itemDescription": "<item description>",
"packSize": "<pack size>",
"packStyle": "<pack style>",
"productCommodity": "<product commodity",
"productVariety": "<product variety>",
"scientificName": "<scientific name>",
"woLineNumber": "<work order line number>",
"iotDevicePalletUsed": "<iot device pallet used>",
"ssccPalletUsed": "<sscc pallet used>",
"lpnPalletUsed": "<lpn pallet used>"
}
],
"location" : {
"id": "<id>",
"gln": "<GLN (global location number)>",
"city": "<city>",
"duns": "<DUNS number>",
"state": "<state>",
"market": <market>,
"region": "<region>",
"country": "<country>",
"geoFence": "<geo fence>",
"postalCode": "<postal code>",
"phoneNumber": "<phone number>",
"businessUnit": "<business unit>",
"locationName": "<location name>,
"locationType": "<location type>",
"glnAssignedBy": "<GLN assigned by>",
"gpsCoordinates": "<GPS coordinates>",
"streetAddress1": "<street address 1>",
"streetAddress2": "<street address 2>",
"isCoveredByGdst": <is covered by gdst>,
"parentLocationId": "<parent location id>",
"isPrimaryLocation": <is primary location>,
"alternateLocationId": "<alternate location id>"
}
}
],
"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 id of the transformation eventdataProviderVendorId
(string): The ID you, the data provider, have for the vendor.dataProviderVendorName
(string): The name you, the data provider, have for the vendor.eventDateTime
(datetime): Date and time of the eventworkOrderNumber
(string): Work order numberfoodProduced
(array): Array of food products produced from transformationacceptableSpeciesName
(string): Acceptable species namealternateItemCode
(string): Alternate item codebrandName
(string): Brand namecaseGtin
(string): GTIN of the caselotCode
(string): Lot codeproductId
(string): Product IDquantity
(number): Quantity producedquantityUom
(string): Unit of measure for the quantityftlCategory
(string)*: Indicates the product's FTL category, i.e. “soft cheese”, “shell eggs”, “nut butter”, “cucumbers”, “herbs”, “leafy greens”, “melons”, “peppers”, “sprouts”, “tomatoes”, “tropical tree fruits”, “fresh-cut fruits”, “fresh-cut vegetables”, “finfish”, “smoked finfish”, “crustaceans”, “molluscan shellfish”, “ready-to-eat deli salads”, or “multiple-ftl-ingredients” *Required if on the FTLisFtlItem
(boolean): Indicates if the item is on the Food Traceability Listgtin
(string): Case-level Global Trade Identification Number (GTIN-14). GS1 GTIN Executive SummaryinnerPackUpc
(string): Point of sale barcode, may be GTIN-8, GTIN-12, GTIN-13, or GTIN-14. GS1 GTIN Executive SummaryitemDescription
(string): Description of the itempackSize
(string): Size of the packpackStyle
(string): Style of the packproductCommodity
(string): Commodity of the productproductVariety
(string): Variety of the productscientificName
(string): Scientific namewoLineNumber
(string): Work order line numberiotDevicePalletProduced
(string): The IoT Device associated to the palletssccPalletProduced
(string): The SSCC associated to the palletlpnPalletProduced
(string): The LPN associated to the pallet
foodUsed
(array): Array of food used in transformationacceptableSpeciesName
(string): Acceptable species namealternateItemCode
(string): Alternate item codebrandName
(string): Brand namecaseGtin
(string): GTIN of the caselotCode
(string): Lot codeproductId
(string): Product IDquantity
(number): Quantity producedquantityUom
(string): Unit of measure for the quantityftlCategory
(string)*: Indicates the product's FTL category, i.e. “soft cheese”, “shell eggs”, “nut butter”, “cucumbers”, “herbs”, “leafy greens”, “melons”, “peppers”, “sprouts”, “tomatoes”, “tropical tree fruits”, “fresh-cut fruits”, “fresh-cut vegetables”, “finfish”, “smoked finfish”, “crustaceans”, “molluscan shellfish”, “ready-to-eat deli salads”, or “multiple-ftl-ingredients” *Required if on the FTLisFtlItem
(boolean): Indicates if the item is on the Food Traceability Listgtin
(string): Case-level Global Trade Identification Number (GTIN-14) GS1 GTIN Executive SummaryinnerPackUpc
(string): Point of sale barcode, may be GTIN-8, GTIN-12, GTIN-13, or GTIN-14. GS1 GTIN Executive SummaryitemDescription
(string): Description of the itempackSize
(string): Size of the packpackStyle
(string): Style of the packproductCommodity
(string): Commodity of the productproductVariety
(string): Variety of the productscientificName
(string): Scientific namewoLineNumber
(string): Work order line numberiotDevicePalletUsed
(string): The IoT Device associated to the palletssccPalletUsed
(string): The SSCC associated to the palletlpnPalletUsed
(string): The LPN associated to the pallet
location
(object): Location the transformation took placeid
(string): Location identifierlocation name
(string): The name of the locationlocation type
(string): The type of location (e.g. "Internal", "Supplier", or "Customer")alternateLocationCode
(string): Alternate location codestreetAddress1
(string): Primary street addressstreetAddress2
(string): Secondary street addresscity
(string): City of the locationstate
(string): State of the locationpostalCode
(string): Postal codecountry
(string): Country of the locationregion
(string): Region identifierduns
(string): DUNS numbergeoFence
(string): Geo-fence coordinatesgln
(string): GS1 Global Location Number, a 13-digit string. GS1 GTIN Executive SummaryglnAssignedBy
(string): Entity that assigned the GLNgpsCoordinates
(string): GPS coordinatesisCoveredByGdst
(boolean): Indicates if the location is covered by GDSTisPrimaryLocation
(boolean): Indicates if this is the primary locationmarket
(string): Market identifierparentLocationId
(string): Parent location IDphoneNumber
(string): Phone numberbusinessUnit
(string): Business unit identifier
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>"
}