API reference
createOpenOrder
Required permission: RestaurantOpenOrderWrite
createOpenOrder(
restaurantId: ID!
input: OpenOrderInput!
): OpenOrderArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
OpenOrderInput! |
Returns
Example
mutation CreateOpenOrder($restaurantId: ID!, $input: OpenOrderInput!) {
createOpenOrder(restaurantId: $restaurantId, input: $input) {
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 { createOpenOrder(...) { __typename } }"}'