API reference
Get a product
GET
One product with its versions, selling units, prices, extras and stock.
publishableKeyheader
AuthorizationBearer <pk_live_…>The shop’s publishable key, from Settings, Developers in Cashiar. Safe to use in a browser.
id*stringapplication/json- response
id*stringname*stringdescription*string|nullunitName*stringcategory*string|nullimageUrl*string|nullpriceTypes*array<>versions*array<>addonGroups*array<>soldOut*booleancurl -X GET 'https://api.cashiar.app/v1/storefront/products/string'Example Response200
{
"id": "string",
"name": "string",
"description": "string",
"unitName": "string",
"category": "string",
"imageUrl": "string",
"priceTypes": [
{
"id": "string",
"name": "string"
}
],
"versions": [
{
"variantId": "string",
"name": "string",
"imageUrl": "string",
"sellingPrice": 0,
"prices": [
{
"priceListId": "string",
"sellingPrice": 0
}
],
"inStock": true,
"sellingUnits": [
{
"id": "string",
"name": "string",
"sellingPrice": 0,
"prices": [
{
"priceListId": "string",
"sellingPrice": 0
}
]
}
]
}
],
"addonGroups": [
{
"id": "string",
"name": "string",
"mode": "one",
"required": true,
"options": [
{
"id": "string",
"name": "string",
"sellingPrice": 0,
"preselected": true
}
]
}
],
"soldOut": true
}List products GET
Products on sale online, a page at a time: search by name, filter by collection, sort by name or newest. Pass nextCursor back as cursor for the next page.
Place an order POST
Places an order as the online store’s checkout does: for pickup or delivery, paid now by link (payUrl) when the shop takes online payment, else at pickup or on delivery.