question

andymeer avatar image
andymeer asked Bryanne Vega answered

update Inventory Item

Hi All

I would really appreciate some help / example of how I should use cURL to update a items inventory

Here is what I am using https://api.clover.com/v3/merchants/3...

This the cURL I am using from the Cmd line

curl -X POST -H "Content-Type: application/json" -k -d "{\"item\":{\"id"\:\"3XXXXXXXXXM\",\"stockCount\":\"50\"}}"https://api.eu.clover.com/v3/merchants/ZXXXXXXXX8/itemstocks/3QXXXXXXXEM?accesstoken=7bXXXXXXXXXXXXce359

i have been trying to get this upload working for 4 weeks and would be so grateful for any help.

If anybody would like to earn some cash for a couple of hours tuition I would also be up for that.

I am in Europe but I can fit in with the USA times

Andy

Inventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered

Your JSON Object of the Stock must be as follows:

{
  "item": {
    "id": ""
  },
  "quantity": 0,
  "stockCount": "long"
}
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community