Chains you can order
What changed
- GET /v1/chains lists every chain your developer account can order from, by
key(the chain’s web domain),nameandlogoUrl. It takes your secret key or a person’s token, is the same in sandbox and production, and is free. - Every place now carries
chain,{key, name}ornull, with the samekey. - A cart, menu or photo request at a store of a chain your account does not have answers
403 chain_not_enabled, witherror.chainnaming it. Nothing is built or read. - Place searches list only your chains’ stores. When that leaves nothing,
emptyBecauseischain_not_enabled.
Why it matters
Your agent can decide whether Layout can take an order before it asks: read the list, match the chain the person names by key, and send anything else to your other options. No chain names belong in your code.
What to do
Nothing, unless you want to route by chain. Every account starts with every chain on Layout’s list. Read GET /v1/chains at least daily, and handle chain_not_enabled as “use another option”.
Breaking changes
None. chain is a new field and chain_not_enabled a new code; an account on every chain never receives it.