API reference
moveOpenOrderItems
Required permission: RestaurantOpenOrderWrite
moveOpenOrderItems(
restaurantId: ID!
input: OpenOrderMoveItemInput!
): OpenOrderItemsMovedArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
OpenOrderMoveItemInput! |
Returns
Example
mutation MoveOpenOrderItems($restaurantId: ID!, $input: OpenOrderMoveItemInput!) {
moveOpenOrderItems(restaurantId: $restaurantId, input: $input) {
from {
id
amountCanceled
amountMoved
amountPaid
amountPayable
batchesLength
}
to {
id
amountCanceled
amountMoved
amountPaid
amountPayable
batchesLength
}
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { moveOpenOrderItems(...) { __typename } }"}'