Make a customer tracking link
create_share_linkChanges data: makes a tracking link for one customer on one shipment, as the person who connected this app, and records it in the organization's audit log. The link is public: anyone who holds the url can open the shipment's public tracking page, so give it only to the customer it is for. Use it only when the user asks for a link to send to a customer. customer_reference is the customer's own reference, such as their order number; a shipment has one active link per reference, so asking again for the same reference returns the existing link instead of making a second. The organization must have public tracking pages switched on and the shipment must be live and shared publicly, otherwise the answer says so: tell the user. Answers with the link, including its url; revoke_share_link withdraws it.
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>",
"customer_reference": "<customer_reference>"
},
"name": "create_share_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional name for the link, such as the customer's name. Shown to the team, not on the page. | |
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. | |
| customer_reference | Yes | The customer's own reference for this shipment, such as their order number. |