I am trying to create an Advanced Intercompany jou...
# ask-stanley-ai
h
I am trying to create an Advanced Intercompany journal entry using Rest Api, but getting error Invalid content. The request seems correct
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the
INVALID_CONTENT
error you're encountering when trying to create an Advanced Intercompany Journal Entry using the REST API could be due to a few reasons: 1. The JSON formatting of your request body might be incorrect. Make sure that the JSON is properly formatted and all required fields are included. 2. The error message suggests that there might be an issue with the
lines
array in your request body. Ensure that you have at least one line item for the transaction as the error message suggests. 3. Check the values you are passing in the
lines
array. The error message "Invalid value for the resource or sub-resource field 'line'" suggests that there might be an issue with the values you are passing for the
line
field. 4. If you are using Accounts Receivable or Accounts Payable lines and marking them for elimination, you need to specify an Intercompany Vendor or Customer on that line. 5. Make sure you are sending the correct request headers. 6. You can use the metadata to validate your request body. You can find the metadata here: https://system.netsuite.com/app/help/helpcenter.nl?fid=chapter_1540810168.html 7. You can also try creating the journal entry in the UI first, then get it afterwards so you know what the request should look like. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.894359052
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835853636
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834364951
Please provide your feedback on this answer.
h
The same data is used with soap api ,it works. Can you share a sample request structure?