give me a sample rest api payload for posting an i...
# ask-stanley-ai
n
give me a sample rest api payload for posting an invoice for a service item
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you are looking for a sample REST API payload for posting an invoice for a service item in NetSuite. While the threads do not provide a direct example for an invoice, they do provide examples for creating other types of records, such as a vendor bill. Here is a modified version of the vendor bill payload that could be used as a starting point for an invoice:
Copy code
json
{
    "subsidiary": "22",
    "memo": "test",
    "externalId" : "123abc",
    "entity": "1330",
    "department" : "1",
    "class" : "2",
    "item": {
        "items": [
            {
                "description": "test",
                "quantity": 1,
                "rate": 1,
                "amount" : 1,
                "item" : "1721",
                "department" : "1",
                "class" : "2"
            }
        ]
    }
}
Please replace the values with your actual data. The
item
field should contain the internal ID of your service item. The
entity
field should contain the internal ID of the customer to whom the invoice is being sent. The
subsidiary
,
department
, and
class
fields should contain the internal IDs of the respective records in your NetSuite account. ****** 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.843550563
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836894214
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833938181
Please provide your feedback on this answer.