API reference
cancelRefundIntent
Required permission: RestaurantOrderRefund
cancelRefundIntent(
restaurantId: ID!
refundIntentId: ID!
): RefundIntentArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
refundIntentId |
ID! |
Returns
Example
mutation CancelRefundIntent($restaurantId: ID!, $refundIntentId: ID!) {
cancelRefundIntent(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 { cancelRefundIntent(...) { __typename } }"}'