API reference
finalizeOrderIntent
The finalizeOrderIntent mutation. Returns Order.
finalizeOrderIntent(
orderIntentId: ID!
accessToken: String
): OrderArguments
| Name | Type | Description |
|---|---|---|
orderIntentId |
ID! |
|
accessToken |
String |
Returns
Example
mutation FinalizeOrderIntent($orderIntentId: ID!) {
finalizeOrderIntent(orderIntentId: $orderIntentId) {
id
estimatedDeliveryTime
grossAmount
needsKitchenPrint
deliveryHeroLongCode
deliveryTime
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { finalizeOrderIntent(...) { __typename } }"}'