I've signed up with clover sandbox account and successfully authenticated by using oauth procedure. I'm able to get all the inventory's item but when I execute POST API to create items then it throw 401 Unauthorized. The request I making for the POST API
URL
POST: https://sandbox.dev.clover.com/v3/merchants/116RXXXXXXXX/items
Header
Authorization Bearer 672664a5-1eed-e522-fxxxxxxxxxxxxxx
Content-Type application/json
JOSN body
{
"code": "90",
"cost": "5000",
"hidden": false,
"unitName": "iphone",
"alternateName": "apple",
"isRevenue": false,
"price": "5000",
"name": "Apple",
"id": "I123",
"sku": "SKU_I",
"stockCount": "80"
}
URL
POST: https://sandbox.dev.clover.com/v3/merchants/116RXXXXXXXX/items
Header
Authorization Bearer 672664a5-1eed-e522-fxxxxxxxxxxxxxx
Content-Type application/json
JOSN body
{
"code": "90",
"cost": "5000",
"hidden": false,
"unitName": "iphone",
"alternateName": "apple",
"isRevenue": false,
"price": "5000",
"name": "Apple",
"id": "I123",
"sku": "SKU_I",
"stockCount": "80"
}