Methods
Entity Properties
product.search
product.search(null|object $filters = null, null|array $options = null)
Retrieve list of products with basic info (id, sku, type, set, name).
Parameters
null
- Retrieve list of all products.object
- Retrieve list of products using specified Search Filters. Allowed properties for filtering: “sku”, “vendor_sku”, “status”, “availability”, “visibility”, “created_at”, “updated_at”, “external_id”.
null
- No options will be applied.object
- Apply specified Search Options.
Return Value
An array of objects. Each object will contain Product Properties.Example Request
Get product information for one product SKU:Request
Example Response
Response
Error Codes
code | message |
---|---|
108 | Invalid filters given. Details in error message. |
product.create
product.create (string $sku, object $productData)
Create new product.
Parameters
Product SKU.
Product data.
Return Value
true
if product was successfully created.
Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
102 | Invalid data given. Details in error message. |
104 | Product type is not in allowed types. |
105 | Product’s attribute set does not exist. |
106 | Product’s attribute set is not a Catalog Product entity type. |
107 | Another product with this SKU already exists. |
product.info
product.info (string $sku)
Retrieve product info.
Parameters
Product SKU.
Return Value
Object with Product Properties.Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
101 | Product not exists. |
product.update
product.update (string $sku, object $productData)
Update product data.
Parameters
Product SKU.
Product data.
Return Value
true
if product was successfully updated.
Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
101 | Product not exists. |
102 | Invalid data given. Details in error message. |