API reference

updateOrder

Required permission: RestaurantWrite

graphql
updateOrder(
  restaurantId: ID!
  orderId: ID!
  attributes: [AttributeInput!]!
): Order

Arguments

Name Type Description
restaurantId ID!
orderId ID!
attributes [AttributeInput!]!

Returns

Order

Example

graphql
mutation UpdateOrder($restaurantId: ID!, $orderId: ID!, $attributes: [AttributeInput!]!) {
  updateOrder(restaurantId: $restaurantId, orderId: $orderId, attributes: $attributes) {
    id
    estimatedDeliveryTime
    grossAmount
    needsKitchenPrint
    deliveryHeroLongCode
    deliveryTime
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateOrder(...) { __typename } }"}'