Im trying to save multiple items but the API ignores the categories. Here's my Json:
items: {
:hidden=>false,
:available=>true,
:autoManage=>false,
:defaultTaxRates=>true,
:isRevenue=>false,
:name=>"Clover item 4",
:price=>30,
:sku=>"cvr-4",
:code=>"0011"
:options=>[],
:itemStock=>{:quantity=>7}},
{:hidden=>false,
:available=>true,
:autoManage=>false,
:defaultTaxRates=>true,
:isRevenue=>false,
:name=>"Super Item",
:price=>100,
:sku=>"SI-1",
:code=>"001100",
:categories=>[{:id=>"J09W0PGWM29HE", :name=>"Garden", :sortOrder=>0}, {:id=>"N250F8317G9NR", :name=>"Publications", :sortOrder=>0}, {:id=>"N9E265B12FB70", :name=>"Formas", :sortOrder=>0}],
:options=>[],
:itemStock=>{:quantity=>0}}
And this is the clover API response:
http_method=:post,
url="https://sandbox.dev.clover.com/v3/merchants/ECFVTW74B0K01/bulk_items",
status=200,
success=true,
canceled=nil,
body=
[{:id=>"BW9Z2NQ0BF1SA",
:hidden=>false,
:available=>true,
:autoManage=>false,
:name=>"Clover item 2",
:code=>"0011",
:sku=>"cvr-3",
:price=>30,
:priceType=>"FIXED",
:defaultTaxRates=>true,
:isRevenue=>false,
:modifiedTime=>1649159702000},
{:id=>"CEQRAWB47RGCM",
:hidden=>false,
:available=>true,
:autoManage=>false,
:name=>"Clover item 4",
:code=>"0011",
:sku=>"cvr-4",
:price=>30,
:priceType=>"FIXED",
:defaultTaxRates=>true,
:isRevenue=>false,
:modifiedTime=>1649159702000},
{:id=>"VKS071SS5DG1R",
:hidden=>false,
:available=>true,
:autoManage=>false,
:name=>"Super Item",
:code=>"001100",
:sku=>"SI-1",
:price=>100,
:priceType=>"FIXED",
:defaultTaxRates=>true,
:isRevenue=>false,
:modifiedTime=>1649159702000}]
if you notice, there are no categories in the response.
Can you help me please :D
Thanks in advance