schedule_collection

Updated May 29, 20261 min read

Set or revise the shipment collection schedule.

The right tool when the carrier needs to know when to pick up — or when the merchant / warehouse wants to change the pickup window.

Parameters

NameTypeRequiredDescription
tenantIdstringYesThe tenant.
shipment_idstringYesCarriyo shipment ID or partner_shipment_reference.
scheduled_datestringNoDate-only collection schedule.
scheduled_fromstringNoISO 8601 collection window start.
scheduled_tostringNoISO 8601 collection window end.

Schedule fields

Pass at least one schedule field. Two forms supported:

// Single date
{ "scheduled_date": "2026-05-09" }

// Time window
{
  "scheduled_from": "2026-05-09T13:00:00+04:00",
  "scheduled_to":   "2026-05-09T17:00:00+04:00"
}

Which form to use depends on the carrier — most accept either, but some require a window. Test once with the target carrier to confirm.

Example agent prompts

"Schedule collection for SHP-12345 on Saturday."

schedule_collection(
  tenantId="…",
  shipment_id="SHP-12345",
  scheduled_date="2026-05-09"
)

"Push collection to Saturday afternoon, 1pm–5pm UAE time."

schedule_collection(
  tenantId="…",
  shipment_id="SHP-12345",
  scheduled_from="2026-05-09T13:00:00+04:00",
  scheduled_to="2026-05-09T17:00:00+04:00"
)
  • schedule_delivery — the delivery-side counterpart.
  • get_shipment — confirm the shipment is in a state where collection is still being scheduled (not already picked up).