Demo of the square API.
- Set the following
ENV
vars in your terminal:
$ export SQUARE_ACCESS_TOKEN=<TOKEN>
$ export NODE_ENV='develop` # If using a prod square location, set to production
-
Download postman and import the postman collection here
-
Start the node service:
$ npm run serve
- To create an invoice and send the invoice as an email:
1. Create a new customer, or select customer ID of an existing one
2. Create an order
3. Create an invoice associated with an order & customer
4. Publish the invoice