API reference

cancelTransaction

Required permission: RestaurantWrite

Warning

Deprecated. Use cancelPaymentIntent/cancelRefundIntent instead

graphql
cancelTransaction(
  restaurantId: ID!
  posTerminalId: ID!
): CancelTransactionResult!

Arguments

Name Type Description
restaurantId ID!
posTerminalId ID!

Returns

CancelTransactionResult!

Example

graphql
mutation CancelTransaction($restaurantId: ID!, $posTerminalId: ID!) {
  cancelTransaction(restaurantId: $restaurantId, posTerminalId: $posTerminalId)
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { cancelTransaction(...) { __typename } }"}'