Create a delivery task
tookan_create_delivery_taskWRITE: create a delivery task (job) for a customer address, due by job_delivery_datetime in the given timezone. Optionally assign it to an agent (fleet_id) or team, or let Tookan auto-assign it within the team. Returns job_id and tracking link. Always uses the address given here, not one saved for the customer's phone (ignore_customer_lat_long 1). POST /v2/create_task (has_pickup 0, has_delivery 1, layout_type 0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Comma-separated agent tags used by auto-assignment. | |
| notify | No | Send the customer/agent notifications. | |
| team_id | No | Team to put the task in (from tookan_list_teams). | |
| fleet_id | No | Agent to assign the task to (from tookan_list_agents). | |
| latitude | No | Delivery latitude (else Tookan geocodes the address). | |
| order_id | No | Your own reference for the task. | |
| timezone | Yes | Minutes to ADD to local time to get UTC (Tookan's convention): IST = -330, CET = -60, EST = 300, PST = 480. | |
| longitude | No | Delivery longitude. | |
| customer_email | No | Customer email. | |
| customer_phone | No | Customer phone, e.g. "+12015555555". | |
| auto_assignment | No | Let Tookan auto-assign the task to an agent of team_id. | |
| job_description | No | What is to be delivered. | |
| customer_address | Yes | Delivery address. | |
| customer_username | No | Customer name. | |
| job_delivery_datetime | Yes | Deliver before this local time, YYYY-MM-DD HH:MM:SS. |