API reference

moveOpenOrderItems

Required permission: RestaurantOpenOrderWrite

graphql
moveOpenOrderItems(
  restaurantId: ID!
  input: OpenOrderMoveItemInput!
): OpenOrderItemsMoved

Arguments

Name Type Description
restaurantId ID!
input OpenOrderMoveItemInput!

Returns

OpenOrderItemsMoved

Example

graphql
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
    }
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { moveOpenOrderItems(...) { __typename } }"}'