API reference
updatePaymentMethod
Required permission: RestaurantReportWrite
updatePaymentMethod(
restaurantId: ID!
paymentMethodId: ID!
patch: PaymentMethodPatch!
): PaymentMethodArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
paymentMethodId |
ID! |
|
patch |
PaymentMethodPatch! |
Returns
Example
mutation UpdatePaymentMethod($restaurantId: ID!, $paymentMethodId: ID!, $patch: PaymentMethodPatch!) {
updatePaymentMethod(restaurantId: $restaurantId, paymentMethodId: $paymentMethodId, patch: $patch) {
id
iconUrl
isLegacy
name
paymentProvider
receiptPaymentMethodLabel
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updatePaymentMethod(...) { __typename } }"}'