NEW To REST WEB SERVICES !Downloaded sample api re...
# suitetalkapi
s
NEW To REST WEB SERVICES !Downloaded sample api requests for postman from this "https://<accountId>.app.netsuite.com/app/external/integration/integrationDownloadPage.nl# " and imported to the postman collection . I wanted to test one request . Get :
{{REST_SERVICES}}/record/v1/customer/{{lastCustomer}}
, I replaced the
{{REST_SERVICES}}
with "https://<accountId>.suitetalk.api.netsuite.com" and
{{lastCustomer}}
with a customer internal Id. And did the oauth 2.0 authentication to generate the bearer token for authorization. when hit send its showing "page not found error" 404! pls help with inputs . what i did wrong and or went wrong ! thanks !!!
b
you need to revert the REST_SERVICES variable back to its original value
its url contains the domain and part of the path
s
Thanks mate! @battk
@battk Im getting the GET response using the customer Rest web services api . When creating a customer what should be the json body should I pass ? how or where can I get that json to create a customer?
b
reasonable starting places would be the example customer create in that collection
more programmatic approach is Working with Resource Metadata
s
couldnt we make the expiration of access token to no expiry!
b
i personally recommend Token-based Authentication (TBA) instead
s
That's what I'm doing presently @battk
b
Those tokens dont expire
🙌 1