The Barn API guide
thebarn.de
Browse The Barn’s coffee bean catalogue, check storefront availability, and compare listed bean names and prices where shown.
Actions and inputs
productsList The Barn beans from the most recent catalogue sync. Filter by stock status or search term and compare the listed prices.
Inputs roaster the-barn, optional query or in-stock filter
compareCompare selected beans from The Barn by their listed names and prices where shown.
Inputs Bean handles
Example inputs
List in-stock beans in the last synced catalogue
- roaster
the-barn- in-stock
true
Coffee shopping carts
- Create
Start your cart by adding an available coffee.
Inputs Coffee, listed bag size or grind option, quantity
- Read
Review your cart’s coffees, quantities and displayed subtotal.
Inputs Current cart
- Update
Change the number of bags on a cart line.
Inputs Cart line, new quantity
- Delete
Remove a coffee from your cart without checking out.
Inputs Cart line