# Establishment Setup Automation



# Toast Setup Script

## Toast Setup Script  


This setup script uses the restaurant endpoint as a feed for creating all missing establishments in the **establishments.json**

This script determines which establishments to add by looking at the last\_pass\_date, and checking it against the toastCheck file (containing the last checked timestamp).

<p class="callout warning">If an establishment has been manually set up, or an establishment with a merchant ID is that already exists, the script will skip over that establishment. This prevents establishment duplication.  
</p>

<p class="callout info">The last password is stored, just in case something goes wrong, and the new password gets overwritten.</p>

