Get Events by Identifier
curl --request GET \
--url https://api.example.com/provenance/{identifier}import requests
url = "https://api.example.com/provenance/{identifier}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/provenance/{identifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/provenance/{identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/provenance/{identifier}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/provenance/{identifier}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/provenance/{identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-11-07T05:31:56Z",
"eventTime": "2023-11-07T05:31:56Z",
"eventType": "ASSOCIATION_EVENT",
"action": "OBSERVE",
"userId": "<string>",
"eventTag": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deleted": true,
"deletedAt": "2023-11-07T05:31:56Z"
},
"bizStep": "ACCEPTING",
"disposition": "ACTIVE",
"quantityList": [
{
"epcClass": "<string>",
"quantity": 123,
"unit": "<string>"
}
],
"outputQuantityList": [
{
"epcClass": "<string>",
"quantity": 123,
"unit": "<string>"
}
],
"inputQuantityList": [
{
"epcClass": "<string>",
"quantity": 123,
"unit": "<string>"
}
],
"sourceList": [
{
"sourceType": "OWNING_PARTY",
"source": "<string>",
"partner": "<string>"
}
],
"destinationList": [
{
"destinationType": "OWNING_PARTY",
"destination": "<string>",
"partner": "<string>"
}
],
"readPoint": {
"identifier": "<string>",
"lat": 123,
"lng": 123
},
"seafoodEventData": {
"catchArea": "<string>"
},
"epcs": [
{
"epc": "<string>"
}
],
"inputEpcs": [
{
"epc": "<string>"
}
],
"outputEpcs": [
{
"epc": "<string>"
}
],
"images": [
"<string>"
]
}
]Provenance
Get Events by Identifier
Get all events associated with a provided identifier
GET
/
provenance
/
{identifier}
Get Events by Identifier
curl --request GET \
--url https://api.example.com/provenance/{identifier}import requests
url = "https://api.example.com/provenance/{identifier}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/provenance/{identifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/provenance/{identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/provenance/{identifier}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/provenance/{identifier}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/provenance/{identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-11-07T05:31:56Z",
"eventTime": "2023-11-07T05:31:56Z",
"eventType": "ASSOCIATION_EVENT",
"action": "OBSERVE",
"userId": "<string>",
"eventTag": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deleted": true,
"deletedAt": "2023-11-07T05:31:56Z"
},
"bizStep": "ACCEPTING",
"disposition": "ACTIVE",
"quantityList": [
{
"epcClass": "<string>",
"quantity": 123,
"unit": "<string>"
}
],
"outputQuantityList": [
{
"epcClass": "<string>",
"quantity": 123,
"unit": "<string>"
}
],
"inputQuantityList": [
{
"epcClass": "<string>",
"quantity": 123,
"unit": "<string>"
}
],
"sourceList": [
{
"sourceType": "OWNING_PARTY",
"source": "<string>",
"partner": "<string>"
}
],
"destinationList": [
{
"destinationType": "OWNING_PARTY",
"destination": "<string>",
"partner": "<string>"
}
],
"readPoint": {
"identifier": "<string>",
"lat": 123,
"lng": 123
},
"seafoodEventData": {
"catchArea": "<string>"
},
"epcs": [
{
"epc": "<string>"
}
],
"inputEpcs": [
{
"epc": "<string>"
}
],
"outputEpcs": [
{
"epc": "<string>"
}
],
"images": [
"<string>"
]
}
]Response
The events have been successfully retrieved
The business step associated with the event
Available options:
ACCEPTING, ARRIVING, ASSEMBLING, COLLECTING, COMMISSIONING, CONSIGNING, CREATING_CLASS_INSTANCE, CYCLE_COUNTING, DECOMMISSIONING, DEPARTING, DESTROYING, DISASSEMBLING, DISPENSING, ENCODING, ENTERING_EXITING, HOLDING, INSPECTING, INSTALLING, KILLING, LOADING, OTHER, PACKING, PICKING, RECEIVING, REMOVING, REPACKAGING, REPAIRING, REPLACING, RESERVING, RETAIL_SELLING, SHIPPING, STAGING_OUTBOUND, STOCK_TAKING, STOCKING, STORING, TRANSPORTING, UNLOADING, UNPACKING, VOID_SHIPPING, SENSOR_REPORTING, SAMPLING The disposition of the event
Available options:
ACTIVE, CONTAINER_CLOSED, DAMAGED, DESTROYED, DISPENSED, DISPOSED, ENCODED, EXPIRED, IN_PROGRESS, IN_TRANSIT, INACTIVE, NO_PEDIGREE_MATCH, NON_SELLABLE_OTHER, PARTIALLY_DISPENSED, RECALLED, RESERVED, RETAIL_SOLD, RETURNED, SELLABLE_ACCESSIBLE, SELLABLE_NOT_ACCESSIBLE, STOLEN, UNKNOWN, AVAILABLE, COMPLETENESS_VERIFIED, COMPLETENESS_INFERRED, CONFORMANT, CONTAINER_OPEN, MISMATCH_INSTANCE, MISMATCH_CLASS, MISMATCH_QUANTITY, NEEDS_REPLACEMENT, NON_CONFORMANT, UNAVAILABLE