Product Categories
Create and manage Product Categories. Product Categories allow you to organize your products into categories. Use the Products API to assign products to product categories.
Product Categories Get
GEThttps://api.gofarmflow.com/product-categories-get
Lists product categories associated with a FarmFlow account.
Product Category Get
POSThttps://api.gofarmflow.com/product-category-get
Returns details for a single product category.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Required | Product Category's ID |
Example Request
{
"id": "123"
}
Product Category Create
POSThttps://api.gofarmflow.com/product-category-create
Creates a new product category.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
category |
string | Required | Product Category's Name |
description |
string | Optional | Product Category's ID |
Example Request
{
"category": "Edible Flowers",
"description": "Grown in a grow tent"
}
Product Category Update
POSThttps://api.gofarmflow.com/product-category-update
Updates a product category.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Required | Product Category's ID |
category |
string | Required | Product Category's Name |
description |
string | Optional | Product Category's ID |
Example Request
{
"id": "123",
"category": "Flowers",
"description": "Non edible flowers"
}
Product Category Delete
POSThttps://api.gofarmflow.com/product-category-delete
Deletes a product category. If an existing product is assigned to this product category, the product category cannot be deleted. Use the Products API to update products before deleting product categories.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Required | Product Category's ID |
Example Request
{
"id": "123"
}