Create an order event
Create a new order event
scopes:
- admin:shopping
- write:shopping
- write:shopping:/orders/ANY/events
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
Authorization: Bearer {access_token}where the access_token is JSON Web Tokens (JWT).
Path Parameters
An id that uniquely identifies the account.
9The resource identifier string
Body
order event
The state of the event
error, failure, success, pending The type of service used, used to differentiate this status from other services
The status reported by the service
"ready_for_pickup"
A short description of the reason for the status
"food prepared"
Additional service data related to the event
{
"pickup_location": {
"latitude": 37.42242,
"longitude": -122.08585,
"postal_code": "0342",
"address": "Smallwei"
}
}Response
event
The type corresponding to this event
api-event, service-event The state of the event
error, failure, success, pending The type of service used, used to differentiate this status from other services
The status reported by the service
"ready_for_pickup"
The resource ID. Defaults to UUID v4
40"bd04c959-d159-49b4-a096-2d84e014a8da"
The date-time when the resource was created
The ID of the user/client created the resource
40"bd04c959-d159-49b4-a096-2d84e014a8da"
A short description of the reason for the status
"food prepared"
Additional service data related to the event
{
"pickup_location": {
"latitude": 37.42242,
"longitude": -122.08585,
"postal_code": "0342",
"address": "Smallwei"
}
}The links related to resource
1