I am trying to use postman to get item price / price matrix. I can get item price levels if i perform a get request to: https://{{accountid}}.suitetalk.api.netsuite.com/services/rest/record/v1/itemgroup/{{item_number}}?expandSubResources=true
But it won't provide the item prices for each level, only the name of the levels. strangely, I won't even get the price level information if i send a similar request to other product types (in my case discount and non inventory item). Does anyone one know how i can extract product pricing information from netsuite. I have tried going through the Docs but it came up with nothing.
Here is the cURL of the request made to noninventoryitems module
curl --location --request GET 'https://5195388-sb1.suitetalk.api.netsuite.com/services/rest/record/v1/noninventoryitem/284/' \
--header 'Authorization: Bearer {{{accesstoken}}}"' \
--header 'Cookie: NS_ROUTING_VERSION=LAGGING'
You can execute a SuiteQL query.
POST https://{{accountid}}.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql
Header: Prefer: transient
Body:
{
"q": "SELECT i.item, i.pricelevelname, i.price, c.name as currency FROM itemprice i, currency c WHERE i.currencypage = c.id and item=967"
}
Sample output:
{
"links": [
{
"rel": "self",
"href": "https://[accountid].suitetalk.api.netsuite.com/services/rest/query/v1/suiteql?limit=1000&offset=0"
}
],
"count": 2,
"hasMore": false,
"items": [
{
"links": [],
"currency": "USD",
"item": "967",
"price": "100000",
"pricelevelname": "Base Price"
},
{
"links": [],
"currency": "USD",
"item": "967",
"price": "100000",
"pricelevelname": "Partner Pricing"
}
],
"offset": 0,
"totalResults": 2
}
The record and field IDs are in the Analytics Browser: https://[accountid].app.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2020_1/analytics/record/itemPrice.html .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.