Add an action to an order
POST /v1/order_actions
Something the driver must do on the order at a given kind of stop (on_activities_type), such as
answer a question, take photos or collect a signature.
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Request body
| Field | Type | Required |
|---|---|---|
name | string | |
description | string | |
on_activities_type | "break" | "delivery" | "end" | "pickup" | "start" | |
consumer_tracking | boolean | |
is_mandatory | boolean | |
is_blocking | boolean | |
prompt_request | object or null | |
order_id | string | |
status | "CANCELED" | "COMPLETED" | "CREATED" | "FAILED" | |
status_description | null or string | |
prompt_response | object or null | |
owner | string | yes |
tags | array of string | yes |
attributes | object | yes |
Responses
201
resource: OrderAction
| Field | Type | Required |
|---|---|---|
name | string | yes |
description | string | yes |
on_activities_type | "break" | "delivery" | "end" | "pickup" | "start" | yes |
consumer_tracking | boolean | yes |
is_mandatory | boolean | yes |
is_blocking | boolean | yes |
prompt_request | object or null | yes |
order_id | string | yes |
status | "CANCELED" | "COMPLETED" | "CREATED" | "FAILED" | yes |
status_description | null or string | yes |
prompt_response | object or null | yes |
id | string | yes |
created_at | string | yes |
modified_at | null or string | yes |
deleted_at | null or string | yes |
created_by | string | yes |
modified_by | null or string | yes |
deleted_by | null or string | yes |
owners | array of string | yes |
tags | array of string | yes |
attributes | object | yes |
Example
curl -X POST 'https://orders-api.cloud.zoopit.no/v1/order_actions'
-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.