API reference

cancelRefundIntent

Required permission: RestaurantOrderRefund

graphql
cancelRefundIntent(
  restaurantId: ID!
  refundIntentId: ID!
): RefundIntent

Arguments

Name Type Description
restaurantId ID!
refundIntentId ID!

Returns

RefundIntent

Example

graphql
mutation CancelRefundIntent($restaurantId: ID!, $refundIntentId: ID!) {
  cancelRefundIntent(restaurantId: $restaurantId, refundIntentId: $refundIntentId) {
    id
    completedAt
    createdAt
    discountAmount
    paymentProvider
    tipAmount
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { cancelRefundIntent(...) { __typename } }"}'