Square Mile Coffee API guide
shop.squaremilecoffee.com
Explore the Square Mile Coffee storefront catalogue, narrow the bean listings by keyword, and compare prices when shown.
Actions and inputs
/products.jsonRead the public Square Mile Coffee catalogue for product names, listed prices, and any availability shown.
productsList Square Mile Coffee beans from the most recent catalogue sync. Filter by stock status or search term and compare the listed prices.
Inputs roaster square-mile, optional query or in-stock filter
Example inputs
List in-stock beans in the last synced catalogue
- roaster
square-mile- in-stock
true
Cart items
- Create
Add a coffee and its selected bag size to your cart without placing an order.
Inputs Coffee listing, bag size if offered, quantity
- Read
Review coffee selections and the subtotal shown in your cart.
Inputs Your storefront session
- Update
Change the quantity of the selected coffee.
Inputs Cart item, new quantity
- Delete
Remove the unwanted coffee selection from your cart.
Inputs Cart item