API reference
updateOrder
Required permission: RestaurantWrite
updateOrder(
restaurantId: ID!
orderId: ID!
attributes: [AttributeInput!]!
): OrderArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
orderId |
ID! |
|
attributes |
[AttributeInput!]! |
Returns
Example
mutation UpdateOrder($restaurantId: ID!, $orderId: ID!, $attributes: [AttributeInput!]!) {
updateOrder(restaurantId: $restaurantId, orderId: $orderId, attributes: $attributes) {
id
estimatedDeliveryTime
grossAmount
needsKitchenPrint
deliveryHeroLongCode
deliveryTime
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateOrder(...) { __typename } }"}'