Code | Description |
---|---|
401 | Unauthorized. Include a WWW-Authenticate header field containing a challenge applicable to the requested resource. |
403 | Forbidden. The request was a valid request, but the server is refusing to respond to it. 403 error semantically means "unauthorized", i.e. the user does not have the necessary permissions for the resource. |
404 | Not Found. The requested resource could not be found. |
422 | Unprocessable Entity. The request was well-formed but was unable to be followed due to semantic errors. |
500 | Internal Server Error. An unexpected condition was encountered. |
Response: { "page": 1, "per_page": 50, "total_pages": 1, "total_entries": 1, "entries": [ { "id": 1775, "product_type": null, "code": "shirt-a", "status": "active", "product_attributes": null, "name": "Shirt A", "class_type": "sku", "discontinued": false, "product_class": { "id": 17, "name": "Style" }, "attribute_values": [ { "attribute_definition_id": 7, "attribute_definition_code": "country_of_origin", "data": "Germany" }, { "attribute_definition_id": 2, "attribute_definition_code": "short_description", "data": "test short description" }, { "attribute_definition_id": 14, "attribute_definition_code": "season", "data": "Spring" }, { "attribute_definition_id": 1, "attribute_definition_code": "description", "data": "test description" } ] } ] }
Param name | Description |
---|---|
per_page optional |
Number of objects in one response. Default is 50 Validations:
|
page optional |
Page number. Default is 1 Validations:
|
created_time_from optional |
ISO_8601 format 2016-05-30T05:13:26Z Validations:
|
created_time_to optional |
ISO_8601 format 2016-05-30T05:13:26Z Validations:
|
updated_time_from optional |
ISO_8601 format 2016-05-30T05:13:26Z Validations:
|
updated_time_to optional |
ISO_8601 format 2016-05-30T05:13:26Z Validations:
|
id optional |
Product ID Validations:
|
code optional |
Product code Validations:
|
name optional |
Product name Validations:
|
status optional |
Product status Validations:
|
response_product_fields optional |
Version 5 only. One of ‘name’, ‘status’, ‘class_type’. The product information to be included in the product data response. Use comma to join multiple fields. Validations:
|
response_associated_fields optional |
Version 5 only. One of ‘product_class’, ‘brand’, ‘attribute_values’, ‘dimension’, ‘packed_dimension’, ‘product_categories’, ‘catalogs’, ‘shipping_zones’, ‘price_items’, ‘inventories’, ‘media_items’, ‘entity_identifiers’. The information related to the product to be included in the product data response. Use comma to join multiple fields. Validations:
|
root_products_only optional |
Return products only at the root level. Defaults to true. Only applicable to CC V3 tenants Validations:
|