Justin Chang
12/31/2025, 7:15 PMCeligo AI
12/31/2025, 7:15 PMAI generated answer (using internal Slack threads):To view the lines of an Advanced Intercompany Journal Entry with the REST API, you would typically use the endpoint
/record/v1/advIntercompanyJournalEntry/<id>/line. However, if all the links are empty, it might be due to the fact that the lines have not been properly populated when creating the Advanced Intercompany Journal Entry.
Here is an example of how to create an Advanced Intercompany Journal Entry with lines:
json
{
"trandate": "2025-01-16",
"subsidiary": { "id": "1" },
"currency": { "id": "1" },
"memo": "testmemo",
"lines": [
{
"account": { "id": "552" },
"entity": { "id": "322" },
"debit": 10.00,
"eliminate": true,
"lineSubsidiary": { "id": "3" },
"department": { "id": "1" }
},
{
"account": { "id": "482" },
"entity": { "id": "1440" },
"credit": 1000,
"eliminate": true,
"lineSubsidiary": { "id": "3" },
"department": { "id": "1" }
},
{
"account": { "id": "111" },
"entity": { "id": "1440" },
"debit": 1000,
"eliminate": true,
"lineSubsidiary": { "id": "6" },
"department": { "id": "1" }
},
{
"account": { "id": "551" },
"entity": { "id": "319" },
"credit": 1000,
"eliminate": true,
"lineSubsidiary": { "id": "6" },
"department": { "id": "1" }
}
]
}
If you are still facing issues, it might be due to the request headers you are sending. Make sure they are correct and compatible with the NetSuite REST API.
To find the API name of a field, you can refer to the NetSuite Record Browser. For example, for the Journal Entry record, you can refer to this link: <https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2024_2/script/record/journalentry.html>. Just replace the account number in the URL with your own.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/31/2025, 7:16 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831054747
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812133908
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81036377
Celigo AI
12/31/2025, 7:16 PM