API reference

finalizeOrderIntent

The finalizeOrderIntent mutation. Returns Order.

graphql
finalizeOrderIntent(
  orderIntentId: ID!
  accessToken: String
): Order

Arguments

Name Type Description
orderIntentId ID!
accessToken String

Returns

Order

Example

graphql
mutation FinalizeOrderIntent($orderIntentId: ID!) {
  finalizeOrderIntent(orderIntentId: $orderIntentId) {
    id
    estimatedDeliveryTime
    grossAmount
    needsKitchenPrint
    deliveryHeroLongCode
    deliveryTime
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { finalizeOrderIntent(...) { __typename } }"}'