Skip to main content

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​

FieldTypeRequired
type"delivery" | "pickup" | "replacement" | "service"
amountsobject
order_idstring
type_aliasnull or string
_places_time_windows_earliest_startnull or string
_places_time_windows_latest_startnull or string
_places_time_windows_earliest_endnull or string
_places_time_windows_latest_endnull or string
ownerstringyes
placesarray of objectyes

Responses​

201​

resource: PartialTaskWithId

FieldTypeRequired
attributesobject
type"delivery" | "pickup" | "replacement" | "service"
amountsobject
created_atstring
modified_atnull or string
deleted_atnull or string
created_bystring
modified_bynull or string
deleted_bynull or string
ownersarray of string
tagsarray of string
order_idstring
type_aliasnull or string
placesarray of object
_places_time_windows_earliest_startnull or string
_places_time_windows_latest_startnull or string
_places_time_windows_earliest_endnull or string
_places_time_windows_latest_endnull or string
idstringyes

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.