Export Recipe Allergen Chart
Charts the major allergens of up to 50 recipes, one row per recipe in the order sent, one column per allergen of the market's list, and returns the rows with links to the files asked for (csv, pdf).
A row shows allergens only when its recipe's allergen record is confirmed: each allergen is contains, may_contain (cross-contact) or neither, from the record the person confirmed. Any other row (unconfirmed, stale, unverifiable, unreadable, other_market, not_found) shows none and must not be read as free from them. A recipe the caller cannot read is not_found. Nothing about the recipes is saved.
application/json- body
The recipes to chart and the files to make.
recipe_ids*array<>The recipes to chart, 1 to 50, in the order the rows appear. A repeated id is charted once.
1 <= items <= 50formats?array<>Files to make: csv, pdf or both. Defaults to csv.
1 <= itemscountry?"US"The market whose major allergens are the chart's columns.
"US""US"Successful Response
application/json- response
Response of POST /recipes/allergen-chart.
data*The chart: its columns, one row per requested recipe, and its files.
meta*Response metadata.
curl -X POST 'https://api.bettermenu.live/studio/recipes/allergen-chart' \ -H 'Content-Type: application/json' \ -d '{ "recipe_ids": [ "stringstringstringstringst" ]}'{ "data": { "country": "US", "list_version": "string", "allergens": [ { "code": "string", "name": "string" } ], "dishes": [ { "recipe_id": "string", "name": "string", "status": "confirmed", "version_id": "string", "cells": { "property1": "contains", "property2": "contains" }, "species": [ "string" ] } ], "files": [ { "format": "csv", "download_url": "string", "file_name": "string", "expires_at": "2019-08-24T14:15:22Z" } ], "generated_at": "2019-08-24T14:15:22Z" }, "meta": { "version": "string", "request_id": "string", "timestamp": "string" }}