question

vishwanath avatar image
vishwanath asked zgreathouse Deactivated edited

Unable to create inventory items getting 401 Unauthorized

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"
}


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

zgreathouse avatar image
zgreathouse Deactivated answered zgreathouse Deactivated edited
If you are getting 401 errors please review this related question:
https://community.clover.com/questions/16001/production-app-review-401-unauthorized-http-error.html?childToView=16004#answer-16004
1 comment
10 |2000

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

vishwanath avatar image vishwanath commented ·

yes, followed the link and reinstalling the app helped. thank you so much.

1 Like 1 ·

Welcome to the
Clover Developer Community