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
markOrderAsCompletedByCustomer(
restaurantId: ID!
orderId: ID!
): OrderArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
orderId |
ID! |
Returns
Example
mutation MarkOrderAsCompletedByCustomer($restaurantId: ID!, $orderId: ID!) {
markOrderAsCompletedByCustomer(restaurantId: $restaurantId, orderId: $orderId) {
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 { markOrderAsCompletedByCustomer(...) { __typename } }"}'