API reference

listKarmaLocations

Required permission: RestaurantWrite

graphql
listKarmaLocations(
  restaurantId: ID!
  apiKey: String!
): [KarmaLocation!]

Arguments

Name Type Description
restaurantId ID!
apiKey String!

Returns

[KarmaLocation!]

Example

graphql
mutation ListKarmaLocations($restaurantId: ID!, $apiKey: String!) {
  listKarmaLocations(restaurantId: $restaurantId, apiKey: $apiKey) {
    id
    address
    city
    country
    name
    zip
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { listKarmaLocations(...) { __typename } }"}'