API reference
finalizeRefundIntent2
Required permission: RestaurantOrderRefund
finalizeRefundIntent2(
restaurantId: ID!
refundIntentId: ID!
): RefundIntentArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
refundIntentId |
ID! |
Returns
Example
mutation FinalizeRefundIntent2($restaurantId: ID!, $refundIntentId: ID!) {
finalizeRefundIntent2(restaurantId: $restaurantId, refundIntentId: $refundIntentId) {
id
completedAt
createdAt
discountAmount
paymentProvider
tipAmount
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { finalizeRefundIntent2(...) { __typename } }"}'