- DATE:
- AUTHOR:
- The Toast - API team
New location values in restaurants API, stateCode value deprecated
The Location
object in the restaurants API includes two new values:
administrativeArea - The name of the geographical division (for example, state, province, or county) that the restaurant is located in.
phoneCountryCode
- A numeric code corresponding to one or more countries, used as a telephone number prefix when making international telephone calls.
The stateCode
value in the Location
object is now deprecated. Use the administrativeArea
value to get the state or province of a restaurant, instead of the stateCode
value.
Authentication and scope information in API reference documentation
The API reference documentation for Toast APIs now includes information about the authentication method and authorization scopes required for each API endpoint. For example, the API reference documentation for the /orders/{guid} endpoint of the orders API indicates that the endpoint requires the orders:read
scope.