PassThrough Requests for getting the Item API related fields
Sample PassThrough requeats for getting the list of possible values of salesDetails.accountId field in create and update Item Apis for Netsuite.
List Sales Account
Use the Id field, in the response, as the salesDetails.accountId in create and update item apis.
A cURL request could look like this:
curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--data '{
"method": "GET",
"path": "/account?q=acctType%20IS%20Income"
}'and the response could look like the following:
{
"success": true,
"data": {
"response": {
"body": "{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account?q=acctType+IS+Income\"}],\"count\":32,\"hasMore\":false,\"items\":[{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account/4244\"}],\"id\":\"4244\"},{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account/4442\"}],\"id\":\"4442\"}],\"offset\":0,\"totalResults\":32}\n",
"headers": {
"Content-Type": "application/vnd.oracle.resource+json; type=collection; charset=UTF-8",
"X-N-OperationId": "1ecfc5b6-fdcb-4c60-b50e-9af5ba0f7780",
"Strict-Transport-Security": "max-age=31536000",
"X-Content-Type-Options": "nosniff",
"Pragma": "No-Cache",
"Cache-Control": "No-Cache",
"Expires": "0",
"X-NetSuite-JobId": "5b9411c8-b767-4646-a3a3-05660e8b8973",
"Vary": "User-Agent",
"Date": "Fri, 28 Nov 2025 13:09:31 GMT",
"Connection": "keep-alive",
"Akamai-GRN": "0.c4bc5668.1764335369.c686132",
"content-length": "4452"
}
}
}
}Updated about 8 hours ago