API reference
finishOrder
Required permission: RestaurantWrite
finishOrder(
restaurantId: ID!
orderId: ID!
): OrderArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
orderId |
ID! |
Returns
Example
mutation FinishOrder($restaurantId: ID!, $orderId: ID!) {
finishOrder(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 { finishOrder(...) { __typename } }"}'