API reference
deletePaymentMethod
Required permission: RestaurantReportWrite
deletePaymentMethod(
restaurantId: ID!
paymentMethodId: ID!
): DeletionStatusArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
paymentMethodId |
ID! |
Returns
Example
mutation DeletePaymentMethod($restaurantId: ID!, $paymentMethodId: ID!) {
deletePaymentMethod(restaurantId: $restaurantId, paymentMethodId: $paymentMethodId)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { deletePaymentMethod(...) { __typename } }"}'