# finalizeRefundIntent

> Required permission: RestaurantWrite

Source: https://docs.gastrogate.io/docs/api/mutations/finalizeRefundIntent

> [!WARNING]
> Deprecated. Use the 'finalizeRefundIntent2' mutation instead

```graphql
finalizeRefundIntent(
  restaurantId: ID!
  refundIntentId: ID!
): Order
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `refundIntentId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

[`Order`](https://docs.gastrogate.io/docs/api/types/Order.md)

## Example

```graphql
mutation FinalizeRefundIntent($restaurantId: ID!, $refundIntentId: ID!) {
  finalizeRefundIntent(restaurantId: $restaurantId, refundIntentId: $refundIntentId) {
    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 { finalizeRefundIntent(...) { __typename } }"}'
```
