| category_id | integer The unique ID for the category in WP EasyCart. Leave blank if you are adding or updating. |
| post_id | integer The unqiue post ID to connect this item to WordPress |
| parent_id | integer The category_id connecting this to another WP EasyCart category |
| enabled | boolean True to enable this on your store. |
| featured | boolean True to make a featured category, which may apply if your is setup to use this option. |
| category_name | string The category name. |
| short_description | string Optional description for this category |
| category_image | string Optional banner image for this category, should be a URL. |
| priority | integer The sort order of category, higher numbers are higher priority. |
| square_id | string The unqiue ID connecting this item to SquareUp, if enabled in your store. |
{- "category_id": 0,
- "post_id": 0,
- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}This allows you to get a list of categories
Successful operation
Unauthorized
[- {
- "category_id": 0,
- "post_id": 0,
- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}
]This allows you to add a new category
Submit any or all elements to add a new category.
Successful operation
Unauthorized
{- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}{- "category_id": 0,
- "post_id": 0,
- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}This allows you to get a category from your store by category ID
Successful operation
Unauthorized
{- "category_id": 0,
- "post_id": 0,
- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}This allows you to update a category by category ID
Submit any or all elements to update the product by ID.
Successful operation
Unauthorized
{- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}{- "category_id": 0,
- "post_id": 0,
- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}This allows you to delete a category from your store by category ID
Successful operation
Unauthorized
{- "category_id": 0,
- "post_id": 0,
- "parent_id": 0,
- "enabled": true,
- "featured": true,
- "category_name": "string",
- "short_description": "string",
- "category_image": "string",
- "priority": 0,
- "square_id": "string"
}This allows you to add new products to a category
Successful operation
Unauthorized
{- "product_ids": [
- 0
]
}{ }This allows you to replace products for a category with a new list
Successful operation
Unauthorized
{- "product_ids": [
- 0
]
}{ }This allows you to delete produts from a category
Successfully deleted
Unauthorized
{- "product_ids": [
- 0
]
}{ }