Products
Products, services and hourly rates, read-only. Requires the products:read ability.
Operations
| Method & path | Ability |
|---|---|
GET /api/v1/products |
products:read |
GET /api/v1/products/{product} |
products:read |
Get a product
curl https://billey.nl/api/v1/products/120 \
-H "Authorization: Bearer $TOKEN"
{
"data": {
"id": 120,
"name": "Consulting hour",
"type": "hourly",
"unit_price": "103.31",
"btw_percentage": "21.00",
"is_active": true,
"has_variants": false,
"track_stock": false,
"sku": null,
"barcode": null
}
}
type is one of service, hourly, membership, physical, digital. Product variants are represented as child rows: a variant carries a parent_id pointing at its parent product, and a parent has has_variants: true. Stock fields (track_stock, stock_quantity) are populated for stock-tracked physical products.
See the OpenAPI spec for the full field list.
Something inaccurate or missing?
support@billey.nl