Product Categories
Helps you organise your inventory.
The Product Category object
{
"id": 32357,
"title": "Surf lessons",
"color": "blue",
"position": 1,
"deleted_at": null,
"updated_at": "2024-12-04T10:33:33+00:00",
"created_at": "2024-12-04T10:33:33+00:00"
}
id
Unique ID of the person.
title
Title visible in your backoffice.
color
Visible in backoffice.
position
The person's initials.
deleted_at
Datetime at which the resource was deleted.
created_at
Datetime at which the resource was created.
updated_at
Datetime at which the resource was last updated.
List all product categories
ID(s) of the product categories to retrieve
Exclude product categories that belongs to a connected business
Include deleted product categories
GET /private/product_categories HTTP/1.1
Host: api.bookinglayer.io
Accept: */*
A list of product categories
[
{
"color": "black",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": 0,
"position": 1,
"title": "Yoga Mats",
"deleted_at": "2000-01-23T04:56:07.000+00:00"
}
]
Create a product category
Yoga Mats
black
1
POST /private/product_categories HTTP/1.1
Host: api.bookinglayer.io
Content-Type: application/json
Accept: */*
Content-Length: 192
{
"color": "black",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": 0,
"position": 1,
"title": "Yoga Mats",
"deleted_at": "2000-01-23T04:56:07.000+00:00"
}
The created product category
{
"color": "black",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": 0,
"position": 1,
"title": "Yoga Mats",
"deleted_at": "2000-01-23T04:56:07.000+00:00"
}
Get a product category by ID
ID of the product category to get
GET /private/product_categories/{product_category_id} HTTP/1.1
Host: api.bookinglayer.io
Accept: */*
A product category
{
"color": "black",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": 0,
"position": 1,
"title": "Yoga Mats",
"deleted_at": "2000-01-23T04:56:07.000+00:00"
}
Delete a product category by ID
ID of the product category to delete
DELETE /private/product_categories/{product_category_id} HTTP/1.1
Host: api.bookinglayer.io
Accept: */*
No content
Update a product category by ID
ID of the product category to update
Yoga Mats
black
1
PUT /private/product_categories/{product_category_id} HTTP/1.1
Host: api.bookinglayer.io
Content-Type: application/json
Accept: */*
Content-Length: 192
{
"color": "black",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": 0,
"position": 1,
"title": "Yoga Mats",
"deleted_at": "2000-01-23T04:56:07.000+00:00"
}
The updated product category
{
"color": "black",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": 0,
"position": 1,
"title": "Yoga Mats",
"deleted_at": "2000-01-23T04:56:07.000+00:00"
}
Last updated