API reference
acceptOrder
Required permission: RestaurantRead
acceptOrder(
restaurantId: ID!
digitalSlipId: ID!
): DigitalSlipArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
digitalSlipId |
ID! |
Returns
Example
mutation AcceptOrder($restaurantId: ID!, $digitalSlipId: ID!) {
acceptOrder(restaurantId: $restaurantId, digitalSlipId: $digitalSlipId) {
id
backgroundColor
createdAt
deliveryTime
estimatedDeliveryTime
html
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { acceptOrder(...) { __typename } }"}'