v1
latestOpenAPI 3.0.12026-07-242871595.3 MBINVENTORY
Create a Subcategory
Creates a new subcategory within a specified parent category. A subcategory inherits the parent category's hex color code when defined. For more information, see Manage Subcategories.
post/v3/merchants/{mId}/categories/{categoryId}/sub_categories
Path parameters
mIdstring required
Merchant identifier.
categoryIdstring required
Unique identifier of the parent category.
Headers
User-Agentstring required
Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: <AppName>/<Version> <Comment>
Request body
Example request
{
"name": "Greek Salad",
"colorCode": "#ffffff"
}Response
Successful response. Subcategory created.
Example response
{
"id": "string",
"name": "Greek Salad",
"colorCode": "#ffffff",
"parentCategory": {
"id": "string"
}
}