- DATE:
- AUTHOR:
- The Toast - API team
409 error indicates a restaurant published new data during retrieval of a paginated response
It is possible that a restaurant will change its configuration while your integration client is in the process of retrieving paginated data for that restaurant. For example, a restaurant may create a new menu item while you are retrieving menu items using the /menuItems
endpoint of the configuration API. If a restaurant your client is retrieving paginated data for publishes any changes to its configuration during the data retrieval, the Toast platform now sends a 409 HTTP error (previously, it sent a 500 error in this situation). If your integration client receives a 409 error, it should re-submit the request it is making, without the pageToken
query parameter, so that the response restarts from the first page. For more information, see Paginating response data.