API reference
finalizeRefundIntent
Required permission: RestaurantWrite
Warning
Deprecated. Use the 'finalizeRefundIntent2' mutation instead
finalizeRefundIntent(
restaurantId: ID!
refundIntentId: ID!
): OrderArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
refundIntentId |
ID! |
Returns
Example
mutation FinalizeRefundIntent($restaurantId: ID!, $refundIntentId: ID!) {
finalizeRefundIntent(restaurantId: $restaurantId, refundIntentId: $refundIntentId) {
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 { finalizeRefundIntent(...) { __typename } }"}'