cancel
Showing results for 
Search instead for 
Did you mean: 

How to add new product. Rest api in C#

Re: How to add new product. Rest api in C#

If I try get json by http://localhost:8080/magento/rest/V1/orders/1. I tray use method salesOrderManagementV1.

I get message:

 

<response><message>Consumer is not authorized to access %resources</message><parameters><resources>Magento_Sales::sales</resources></parameters></response>

Re: How to add new product. Rest api in C#

Yes . Its because of the accesstoken you are using . it won't have permission to access the sales module and thats why it showing this error.

 

get the admin token which have full permission of all the modules and then try it for the same

if issue solved,Click Kudos & Accept as Solution