Getting unauthorised status code from netsuite api when i call it programmatically but getting success status code when i’m calling from postman.
Steps i have followed to integrate NetSuite :
- Enabled REST API feature for administrator role
- Enabled token based authentication as well
- Create new integration and got the customer key & secret
- Create new token for that integration
- Calling api from Postman using customer key & secret and token id & secret + account id
- i/m successful able to apis from postman using this credentials
- Now i have written same REST api call in C# with multiple different ways
- But every time it’s throwing unauthorised status code
- NOTE : i’m using base url :https://12345678.suitetalk.api.netsuite.com/
- Api endpoint : https://12345678.suitetalk.api.netsuite.com/services/rest/record/v1/assemblyItem
- Calling this api from localhost + tried it from console app as well but same unauthorised status code received
- Also tried exact api request payload generated by postman itself
- Still no luck