Create a task
POST /v1/tasks
A pickup, delivery, service or replacement for an order.
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Request body
| Field | Type | Required |
|---|---|---|
type | "delivery" | "pickup" | "replacement" | "service" | |
amounts | object | |
order_id | string | |
type_alias | null or string | |
_places_time_windows_earliest_start | null or string | |
_places_time_windows_latest_start | null or string | |
_places_time_windows_earliest_end | null or string | |
_places_time_windows_latest_end | null or string | |
owner | string | yes |
places | array of object | yes |
Responses
201
resource: PartialTaskWithId
| Field | Type | Required |
|---|---|---|
attributes | object | |
type | "delivery" | "pickup" | "replacement" | "service" | |
amounts | object | |
created_at | string | |
modified_at | null or string | |
deleted_at | null or string | |
created_by | string | |
modified_by | null or string | |
deleted_by | null or string | |
owners | array of string | |
tags | array of string | |
order_id | string | |
type_alias | null or string | |
places | array of object | |
_places_time_windows_earliest_start | null or string | |
_places_time_windows_latest_start | null or string | |
_places_time_windows_earliest_end | null or string | |
_places_time_windows_latest_end | null or string | |
id | string | yes |
Example
curl -X POST 'https://orders-api.cloud.zoopit.no/v1/tasks'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'
Try it in the interactive Orders API reference.
Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.