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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shipment_id": "<shipment_id>",
"kind": "<kind>"
},
"name": "record_custody"
}
}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 |