Create a new product type.
Security
oAuth2ClientCredentials
Code of the product type. Use it as the reference to the product type in your system.
Default:""
Example:"CHEM"
Free-text description of the product type.
Default:""
Example:"Chemical waste products"
Any of:
Transport services to link the product type to. Its products are only matched on orders for these transport services. When sent, this list replaces the current links: links not in the list are removed. Omit it to keep the current links.
- https://api.qargo.comhttps://api.qargo.com/v1/product-types/product-type
{ "code": "CHEM", "description": "Chemical waste products", "name": "Chemicals", "transport_services": [ { … } ] }
Successful Response
Code of the product type. Use it as the reference to the product type in your system.
Default:""
Example:"CHEM"
Free-text description of the product type.
Default:""
Example:"Chemical waste products"
Whether the product type is archived. Archived product types and their products can't be used on new orders.
Response
{ "code": "CHEM", "description": "Chemical waste products", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Chemicals", "is_archived": true, "transport_services": [ { … } ] }