Build on CropPath
Connect devices, packing lines, ERPs and partner systems to CropPath's traceability records: the HTTP API reference, SDKs, integration guides and an online sandbox to try the API.
Start here
Sandbox for trying the API
Available
One request gives you a test company with demo data and an API token valid for 24 hours, on CropPath's sandbox server.
API tokens and device certificates
Available
How a system or a device proves who it is to the API.
Authentication
Available
Which credential a system uses, what it may call, and the answers that ask for one more step.
Errors
Available
The shape of every error answer, the codes to handle and when to retry.
Pagination
Available
How lists return their records one page at a time.
Rate limits
Available
Which routes are limited, by how much, and what to do with a 429 or a 503.
API reference
Every operation, schema and webhook event of the HTTP API (419 operations).
SDKs
Python SDK
Available
For gateways and capable devices: signed envelopes, a queue that holds them while offline, MQTT and HTTPS transports, drivers.
C SDK
Available
For microcontroller devices (ESP32, STM32) that cannot run Python.
C++ SDK
Available
A C++ wrapper over the C device SDK.
TypeScript SDK
Available
A typed client of the whole HTTP API for packing houses and ERP integrations, on Node 20 or later.
Java SDK
Available
A typed client of the HTTP API for Java systems.
C# / .NET SDK
Available
A typed client of the HTTP API for .NET systems.
Go SDK
Available
A typed client of the HTTP API for services written in Go.
Integration guides
Harvest app
Available
Co-ops record signed harvests at a collection point from a registered browser, even without a network.
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.
Webhooks
Available
Receive signed events at your HTTPS endpoint when a lot is sealed, recalled or withdrawn, its displayed trust tier changes, a lab result is recorded, a shipment departs, or a consumer files a report on one of your fruits.
Idempotency keys
Available
Retry a create safely: the repeat gets the first response instead of running again.
Batch requests
Available
Create up to 1,000 fruits, cartons, carton contents, harvest declarations or growers in one request: all written, or nothing.
Tamper evidence
Available
Every day CropPath publishes a fingerprint of the activity log, the device data, the seals and the review decisions, time-stamped by an outside authority. Anyone who keeps a copy can later check that those records were not changed, by CropPath included.
OAuth2 client credentials
Available
OAuth2 client credentials authentication for company integrations.
API versioning and changelog
Available
How the API changes: the versioning policy and the changelog.
Public reads and caching
Available
Reading public lot and fruit records without a credential, and how long a copy may be cached.
Trust tiers for buyers
Available
What each tier means, how a lot's tier is set, and why after the seal it can only go down.
Data export
Available
Records of lots for an authority or a buyer, and an archive of everything a company holds.
Device and gateway onboarding
Available
Register a gateway and its devices, their keys and certificates, and get them approved so that their records count.
Verify a lot as a buyer
Available
Check a sealed lot's signed documents and the daily fingerprints without an account or CropPath software.