order.events
aid_orders_id_events_post
Create a new order event
scopes:
- admin:shopping
- write:shopping
- write:shopping:/orders/ANY/events
post/accounts/{aid}/shopping/orders/{order_id}/events
Path parameters
aidstring ^[PT]{1}\d{8}$ required
An id that uniquely identifies the account.
order_idstring required
The resource identifier string
Request body
Example request
{
"description": "food prepared",
"service_status": "ready_for_pickup",
"metadata": {
"pickup_location": {
"latitude": 37.42242,
"longitude": -122.08585,
"postal_code": "0342",
"address": "Smallwei"
}
}
}Response
event
Example response
{
"id": "bd04c959-d159-49b4-a096-2d84e014a8da",
"created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
"description": "food prepared",
"service_status": "ready_for_pickup",
"metadata": {
"pickup_location": {
"latitude": 37.42242,
"longitude": -122.08585,
"postal_code": "0342",
"address": "Smallwei"
}
}
}