API reference

createOpenOrderBatch

Required permission: RestaurantOpenOrderWrite

graphql
createOpenOrderBatch(
  restaurantId: ID!
  openOrderId: ID!
  input: OpenOrderBatchInput!
): OpenOrder

Arguments

Name Type Description
restaurantId ID!
openOrderId ID!
input OpenOrderBatchInput!

Returns

OpenOrder

Example

graphql
mutation CreateOpenOrderBatch($restaurantId: ID!, $openOrderId: ID!, $input: OpenOrderBatchInput!) {
  createOpenOrderBatch(restaurantId: $restaurantId, openOrderId: $openOrderId, input: $input) {
    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 { createOpenOrderBatch(...) { __typename } }"}'