Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 674 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 674 Bytes

Square API Demo

Demo of the square API.

Usage

  1. 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
  1. Download postman and import the postman collection here

  2. Start the node service:

$ npm run serve
  1. 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