Sending EPCIS 2.0 events
Available
Send the GS1 EPCIS 2.0 events your ERP or EPCIS repository records for your lots, cartons and shipments.
POST /v1/epcis/capture takes an EPCIS 2.0 JSON-LD document of at most 500 events and 1 MiB, with an API token with the role tenant_admin. Each event must name a lot, carton or shipment your tenant already holds; CropPath answers with one result per event: accepted, duplicate, or rejected with a reason.
curl -sSO https://<host>/developers/downloads/epcis-capture-example.jsonld
curl -sS https://<host>/v1/epcis/capture \
-H "Authorization: Bearer $CROPPATH_TOKEN" \
-H "Content-Type: application/ld+json" \
--data-binary @epcis-capture-example.jsonldSending the same document again after a timeout is safe: an event whose eventID is already stored with the same content is reported as a duplicate. The same eventID with other content is rejected.
An event you send is your statement: it is stored as self-declared and never raises a lot's trust tier.
An event stays Self-declared even when it carries a valid device signature (agri:deviceSignature): CropPath does not check signatures in captured events. Evidence counts above Self-declared only when the device itself sends its signed envelope to POST /v1/ingest/<route>, where CropPath checks the signature and that a CropPath administrator approved the device, the key and the gateway that signed it.
In the API reference
Downloads
This portal serves these files: you do not need access to the source repository.