CreateProductType will create a new ProductType
You call thisScope not enforced
const url = 'https://api.zentail.com/v2/storefront/taxonomy/product_type';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"productType":{"productTypeId":"example","displayName":"example","updatedAt":"2026-04-15T12:00:00Z","createdAt":"2026-04-15T12:00:00Z"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.zentail.com/v2/storefront/taxonomy/product_type \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "productType": { "productTypeId": "example", "displayName": "example", "updatedAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z" } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
ProductType are detailed classifications dictated by the channel. They should be at least as specific as the Category. Generally they should be more specific than the Category. Product Types are used to specify which attributes are required and recommended for a given Listing. If this is not a concept in your system, you should create a product type for each category.
object
Examplegenerated
{ "productType": { "productTypeId": "example", "displayName": "example", "updatedAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z" }}Responses
Section titled “ Responses ”A successful response.
object
ProductType are detailed classifications dictated by the channel. They should be at least as specific as the Category. Generally they should be more specific than the Category. Product Types are used to specify which attributes are required and recommended for a given Listing. If this is not a concept in your system, you should create a product type for each category.
object
Examplegenerated
{ "productType": { "productTypeId": "example", "displayName": "example", "updatedAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z" }}default
Section titled “default”An unexpected error response.
object
object
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}