API reference
createPaymentMethod
Required permission: RestaurantReportWrite
createPaymentMethod(
restaurantId: ID!
input: PaymentMethodInput!
): PaymentMethodArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
PaymentMethodInput! |
Returns
Example
mutation CreatePaymentMethod($restaurantId: ID!, $input: PaymentMethodInput!) {
createPaymentMethod(restaurantId: $restaurantId, input: $input) {
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 { createPaymentMethod(...) { __typename } }"}'