API reference

deletePaymentMethod

Required permission: RestaurantReportWrite

graphql
deletePaymentMethod(
  restaurantId: ID!
  paymentMethodId: ID!
): DeletionStatus

Arguments

Name Type Description
restaurantId ID!
paymentMethodId ID!

Returns

DeletionStatus

Example

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