Skip to main content

Update an order action

PATCH /v1/order_actions/{order_action_id}

Changes the fields you send. This is how a response is recorded.

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Path parameters​

NameTypeRequired
order_action_idstringyes

Request body​

FieldTypeRequired
namestring
descriptionstring
on_activities_type"break" | "delivery" | "end" | "pickup" | "start"
consumer_trackingboolean
is_mandatoryboolean
is_blockingboolean
prompt_requestobject or null
order_idstring
status"CANCELED" | "COMPLETED" | "CREATED" | "FAILED"
status_descriptionnull or string
prompt_responseobject or null
modified_atnull or stringyes
tagsarray of string
attributesobject

Responses​

200​

resource: OrderAction

FieldTypeRequired
namestringyes
descriptionstringyes
on_activities_type"break" | "delivery" | "end" | "pickup" | "start"yes
consumer_trackingbooleanyes
is_mandatorybooleanyes
is_blockingbooleanyes
prompt_requestobject or nullyes
order_idstringyes
status"CANCELED" | "COMPLETED" | "CREATED" | "FAILED"yes
status_descriptionnull or stringyes
prompt_responseobject or nullyes
idstringyes
created_atstringyes
modified_atnull or stringyes
deleted_atnull or stringyes
created_bystringyes
modified_bynull or stringyes
deleted_bynull or stringyes
ownersarray of stringyes
tagsarray of stringyes
attributesobjectyes

Example​

curl -X PATCH 'https://orders-api.cloud.zoopit.no/v1/order_actions/{order_action_id}'
-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.