API reference

markOrderAsCompletedByCustomer

Sets the flag "completedByCustomer" to true, which indicates that the customer has indicated that the order has been received by them Required permission: OrderCreator

graphql
markOrderAsCompletedByCustomer(
  restaurantId: ID!
  orderId: ID!
): Order

Arguments

Name Type Description
restaurantId ID!
orderId ID!

Returns

Order

Example

graphql
mutation MarkOrderAsCompletedByCustomer($restaurantId: ID!, $orderId: ID!) {
  markOrderAsCompletedByCustomer(restaurantId: $restaurantId, orderId: $orderId) {
    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 { markOrderAsCompletedByCustomer(...) { __typename } }"}'