Skip to Main Content

API, CLI, SDK & Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Netsuite Help Understanding Journal Entry Docs

4184482Nov 4 2025

Hello, I have a question about sending a Journal Entry Post request

{
"line": {
"items": [
{
"account": {
"id": “119”
},
"credit": 400,
"memo": “Just Testing”
},
{
"account": {
"id": “148”
},
"debit": 400,
"memo": “”
}
]
},
"subsidiary": {
"id": "1",
},
"tranDate": "2025-11-3"
}

This journal entry posts successfully. However I would like to add an entity attachment below. In this case a customer

In the Journal Line Item docs ( https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2025.2/index.html#/definitions/journalEntry-lineElement ):

entity: one of: [ customer, partner, vendor, nsResource, employee, contact ]

I should be able to attach an entity id of a customer.

I attempted to modify the post request to include the entity of the customer id like so:

{

"line": {

    "items": \[

        {

            "account": {

                "id": "119"

            },

            "entity": {

                "id": 28

            },

            "credit": 400,

            "memo": "Ty Test"

        },

        {

            "account": {

                "id": "148"

            },

            "debit": 400,

            "memo": ""

        }

    \]

},

"subsidiary": {

    "id": "1",

},

"tranDate": "2025-11-3"

}

However I get a failure of

"title": "Bad Request",

"status": 400,

"o:errorDetails": \[

    {

        "detail": "Error while accessing a resource. You have entered an Invalid Field Value 28 for the following field: entity.",  

I have verified that the customer entity id is in fact 28. Do I need to modify anything to specifically point to a customer then the customer id or do all entities share the same ID pool. Any help is appreciated thanks!

Comments
Post Details
Added on Nov 4 2025
0 comments
15 views