Record custody
record_custodyRecord a custody event on a shipment: pickup, checkpoint, handoff, delivered, exception or note. Pass the chip uid (and signature) read at the handoff and Aeroz verifies it on the spot, turning a signature on a form into proof of presence. On a high_value lane a handoff without a verified chip raises a finding, and so does a chip that is not among the shipment's items (even an authentic one: verify_result is then uid_not_in_shipment; chip_verify_result is the chip's own verdict). pickup moves the shipment to in_transit and must come before delivered (logged telemetry also counts as departure), and delivered closes it. A delivered or cancelled shipment is final: it accepts only note events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lng | No | ||
| uid | No | ||
| kind | Yes | ||
| note | No | ||
| actor | No | ||
| location | No | ||
| signature | No | ||
| occurred_at | No | ||
| shipment_id | Yes |