1

I am trying to update the product quantity using postman. But i am getting the following errors

{ "message": "Consumer is not authorized to access %resources", "parameters": { "resources": "Magento_CatalogInventory::cataloginventory" } }

Please see the following screenshots

enter image description here

enter image description here

I am missing something ?

I have seen this documentation https://devdocs.magento.com/swagger/#/catalogInventoryStockRegistryV1/catalogInventoryStockRegistryV1UpdateStockItemBySkuPut

But when I put Pre request I am getting following errors. Please help

enter image description here

asked Sep 21, 2020 at 7:51

1 Answer 1

0

You can use bearer token for this case.

  1. Go to System >> Extensions >> Integration , create New Integration and make sure provide privilege Magento_CatalogInventory in tab API - Resource Access. After creating integration successfully, you copy "access token" in "Integration Details" Section. enter image description here

  2. Paste "access token" into header "Authorization" in postman or type Authorization Bearer token in Header directly enter image description here

answered Sep 21, 2020 at 10:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.