API reference
cancelTransaction
Required permission: RestaurantWrite
Warning
Deprecated. Use cancelPaymentIntent/cancelRefundIntent instead
cancelTransaction(
restaurantId: ID!
posTerminalId: ID!
): CancelTransactionResult!Arguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
posTerminalId |
ID! |
Returns
Example
mutation CancelTransaction($restaurantId: ID!, $posTerminalId: ID!) {
cancelTransaction(restaurantId: $restaurantId, posTerminalId: $posTerminalId)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { cancelTransaction(...) { __typename } }"}'