Skip to main content

Open Meal (3.4)

Download OpenAPI specification:Download

Distributor

List distributors

This method returns a list of distributors, for example schools and retirement homes

query Parameters
addressCountry
string

SE - optional parameter used to only get the distributors for a specific country.Use the 2-letter ISO 3166-1 aplha-2 country code, for example "SE" for Sweden

searchText
string

Search-text to find specific distributor

Responses

Response samples

Content type
application/json
{
  • "distributors": [
    ]
}

Get distributor

This method returns a single distributor

path Parameters
distributorId
required
string

Responses

Response samples

Content type
application/json
{
  • "name": "The Local School",
  • "lang": "en",
  • "address": {
    },
  • "telephone": "+46 555 555 555",
  • "distributorID": "123456789"
}

Meal

List meals

This method returns a list of meals

query Parameters
distributorId
string

Parameter specifying the Data Provider ID for a Distributor, used to return only the meals for that distributor.If not provided meals for all distributors are returned

lang
string

Get data in a specific language, if omitted default language is used

startDate
string <date-time>

Date specifying the start of the period to get meals for. If not specified, today's date will be used as default.

endDate
string <date-time>

Date specifying the end of the period to get meals for. If not specified, 7 days after startDate will be used as default.

Responses

Response samples

Content type
application/json
{
  • "meals": [
    ]
}