api cs v4

made a small php script to test api…


<br />
make_cat("test");<br />
make_prod("tester");<br />
  <br />
function make_cat($name) {<br />
...<br />
}<br />
makes a cat/..<br />
<br />
function make_prod($name) {<br />
...<br />
}<br />
<br />

```<br />
makes a prod<br />
<br />
category works...<br />
product creates one.. result =<br />
)<br />
{"product_id":3}<br />
<br />
etc.<br />
but i can't see in GUI...<br />
seems it's not adding to `cscart_products_categories`<br />
<br />
so i SQL'ed<br />
```php
INSERT INTO `csbeta`.`cscart_products_categories` (`product_id`, `category_id`, `link_type`, `position`) VALUES ('3', '3', 'M', '0'), ('3', '4', 'M', '0');
```<br />
<br />
and all good...<br />
<br />
beta or alpha ?

also in your api docs you say



Has maximal nesting depth of 2 (e.g. products/features, products/options, products/features/images)



depth of 2 , yet you show products/features/images which is 3

Thank you for your message. We will update API-documentation.

Trying out the API, I would need it to manage products and their variants.



I defined a product with variants in CS Cart, I can see the product data returned from api/products/ but there are no or fields in the returned JSON like the ones described in API documentation.



I am using 4.0.1beta2, is this something that has been added in a later beta? Are variants actually supported and working in the API?