API reference

API reference

Complete reference for the Loco API, generated from the live GraphQL schema.

All requests go to a single endpoint:

text
POST https://api.thelocoapp.com/graphql

This reference is generated from the schema via introspection, so it always matches what the API accepts. New to GraphQL? Start with GraphQL basics.

Queries

  • appSupportStatus — The appSupportStatus query. Returns AppSupportStatus.
  • discount — Throws an error if the discount doesn't exist, requires an authenticated user or is invalid (expired, consumed etc)
  • globalEntity — Public entities are readable by anyone; private entities require super user or read-only super user access (and otherwise appear not to exis
  • globalEntities — Without a class filter super user or read-only super user access is required. With a class filter, other callers see only public entities.
  • receipt — The receipt query. Returns Receipt.
  • organization — Required permission: OrganizationRead
  • restaurant — The restaurant query. Returns Restaurant.
  • restaurants — The restaurants query. Returns RestaurantPage.
  • shortUrl — The shortUrl query. Returns ShortUrl.
  • stripePublicKey — The stripePublicKey query. Returns String.
  • sudoMode — Gives you the status of "sudo mode" for the authentication token you're using. Required permission: Authenticated
  • currentTermsOfService — The currentTermsOfService query. Returns TermsOfService.
  • me — Required permission: Authenticated
  • passwordResetRequest — The passwordResetRequest query. Returns PasswordResetRequest.
  • whiteLabel — The whiteLabel query. Returns WhiteLabel.
  • whiteLabels — The whiteLabels query. Returns WhiteLabelPage.

Mutations

Objects

Input objects

Enums

Scalars

  • Base64Data — Represents binary data encoded using the Base64 encoding scheme, as defined by RFC 4648 §4.
  • Boolean — The Boolean scalar type represents true or false.
  • Color — Represents a color with an alpha channel. Currently accepts any CSS compatible color when used as input. Format: #rrggbbaa
  • Date — Represents a calendar date. Format: YYYY-MM-DD
  • DateTime — Represents a calendar date & time. Format: YYYY-MM-DD[T]HH:mm:ss.SSS[Z]
  • Duration — Represents the amount of intervening time in a time interval. Specified in ISO 8601 Duration format
  • E164 — Represents a telephone number in the E.164 international telephone numbering format
  • EmailAddress — Represents an email address
  • Float — The Float scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_f
  • ID — The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON re
  • Int — The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
  • Int53 — Represents non-fractional signed whole numeric values between -(2^53) + 1 and 2^53 - 1.
  • JSONObject — The JSONObject scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST
  • JSONValue — The JSON scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-4
  • OpaqueColor — Represents a solid color without an alpha channel. Currently accepts any CSS compatible color when used as input. Format: #rrggbb
  • Percentage — Represents an integer percentage value greater than or equal to 0.
  • PersonalNumber — Represents a Swedish personal number (personnummer med sekelsiffror) in 12-digit format (YYYYMMDDXXXX) with Luhn checksum validation on the
  • PlainTime — Represents a specific time of day. Format: HH:mm:ss
  • SieAccountNumber — SIE account number in the range 1000 - 8999
  • SignedPercentage — Represents a signed integer percentage value.
  • String — The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to
  • UnsignedInt — Represents an unsigned integer value.
  • URL — Represents a URL which is forced to start with a valid protocol
  • Version — Represents a version number following the Semantic Versioning format
  • Void — The Void scalar.

Unions