I want to create Netsuite non inventory sale item using REST API but getting error for tax schedule - netsuite

I am trying to create non inventory sale item in netsuite using REST API but not able to do that because of payload issue.
If I am passing taxSchedule then it gives below error
And if I'm not passing then it gives below error
what am I missing?
I have tried with different ways to figure out but didn't get the solution

Related

NetSuite Rest API - Sales Order Refunds

I am very new to netsuite, I am using NetSuite Api to get the sales order, In the sales order object, i can see almost all the information except refund. I don't see any refund object there. Is there different call to get the refunds?
Currently I am sending following request from postman
{{REST_SERVICES}}/record/v1/salesOrder/12274116?expandSubResources=true
I find it easier to query netsuite using the SUITESQL and then send a SQL query to run. ex:
URL/services/rest/query/v1/suiteql
and then just send a simple sql query:
select * from table
From that moment you can check the fields being returned and see the things a bit more easily.

Power Automate Shopify API Connector and Export to Excel

I am trying to read my Shopify Products and Export them to an Excel file. So I was able to create a custom Connector and Get products, however I have an issue of exporting them into an excel. I need the list of SKUs, however it runs few minutes and throws me an error that job has timed out. Can you please help with the Power Automate step for getting data from GetProduct custom app and write into the excel. I actually tried to extract titles, and it worked, however when I go to the lower level to get sku, the job times-out.

Get list of emails and statuses of Campaigns

I'm using the node-mailjet api, and I'm trying to use it to get a list of email statuses for each marketing campaign.
If you go on a sent marketing campaign in Mailjet itself, there's a place where you can download a csv, the list of all contacts the campaign was sent to, and the status of each email ( delivered/opened/clicked/bounce/spam/ etc.)
So, using the API, I'm currently able to get a list of all the marketing campaigns, but I don't see a way of getting the same data as the csv I described above.
I've been looking at the documentation here, no luck so far.
You would have to use the /message resource in this case with a combination of some filters like the CampaignID one were you would give the Campaign for which you would like to check all the messages within.
That would give you an digest stats for all the messages generated by the Campaign. Within the response you would be able to see the Contact as well as the Status of the message, exactly like the CSV that you would download from front-end. You could also filter upon Status as well using the /message resource.
Here is the Reference to the resource along with all the available filters.

Query using SharePoint REST API using Author/EMail

I running into an issue with filtering using the Autor/EMail field in REST API. The query works fine when the List in Not Throttled. But we get Throttling exception when the List is throttled (>5000). The Created By Column is Indexed was well.
https://example.org/sites/dev/rnd/_api/web/lists/getbytitle('Favs')/items?$Select=ID,ItemId,ListName,Author/EMail&$Expand=Author&$Filter=Author/EMail eq 'john.smith#org.com'
After couple of trial and error I found that Author/Email is not the correct field to use. Instead we need to use Author/Id. The Id would the site user id and we can get the value from the property _spPageContextInfo.userId
Hope this helps somebody.

How to access more than 10 products in Amazon mws via ListMatchingProducts API using node.js

I am using node.js(Meteor) for calling Amazon MWS ListMatchingProducts API for getting all products of my seller account . Its running sucessfully and i am getting the response , but as the documentation said that only ten(10) products are returned at one time. So i just want to know how we get products more than 10 . In the doc Amazon also said that you can submit NextToken with a "ByNextToken" operation to request additional pages.But i am not getting any nextToken or related to that nextToken field on my response.So how do i get the nextToken from there side or how can i get more than 10 products from that API. As i also check on one post they said that we need to use Reports for that but i want to use ListMatchingProducts API for that and want result more than 10.
Please provide me any suggestion or guidance how can i achieve that.
Any help would be appriciated
Thanks
You want to call the Reports API using the Inventory Report report type or one of the other Listing Report types. That is the way to go. The ListMatchingProductsoperation of the Products API is meant to be a search, based on a query. Yes, it only lists ten products but it does not give you a NextToken like some of the other operations. Knowing your Report Type and Marketplace ID, you can submit those to the Reports API with your credentials and get back all of your products all at once and there is no searching involved.
What I would also suggest is to use the Amazon Scratchpad to play around with your operations to make sure you get what you expect, then plug it into your node.js project.

Resources