API reference
listKarmaLocations
Required permission: RestaurantWrite
listKarmaLocations(
restaurantId: ID!
apiKey: String!
): [KarmaLocation!]Arguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
apiKey |
String! |
Returns
Example
mutation ListKarmaLocations($restaurantId: ID!, $apiKey: String!) {
listKarmaLocations(restaurantId: $restaurantId, apiKey: $apiKey) {
id
address
city
country
name
zip
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { listKarmaLocations(...) { __typename } }"}'