Error when Transforming a PO into Vendor Bill (REST API)

Hi All,

we are in the process of implementing NetSuite into our business and I need to get some of internal systems talking to it via REST API.

I have been able to get a Purchase Order to transform to an ItemReceipt but unable to do the same for a VendorBill – I get an error:

“An unexpected error occurred. Error ID: m7xxxxxxxxxxxx” (it is a random error number every time)
I am calling the endpoint /purchaseOrder/<id>/!transform/vendorBill with the following JSON
{
    “trandate”: “2024-06-24”,
    “item”: {
        “items”: [
            {
                “orderline”: 1,
                “quantity”: 50.0,
                “rate”: 24.5,
                “amount”: 1225.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 2,
                “quantity”: 5.0,
                “rate”: 19.5,
                “amount”: 97.5,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 3,
                “quantity”: 50.0,
                “rate”: 6.75,
                “amount”: 337.5,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 4,
                “quantity”: 25.0,
                “rate”: 24.0,
                “amount”: 600.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 5,
                “quantity”: 20.0,
                “rate”: 19.5,
                “amount”: 390.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 6,
                “quantity”: 20.0,
                “rate”: 20.5,
                “amount”: 410.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 7,
                “quantity”: 18.0,
                “rate”: 24.5,
                “amount”: 441.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 8,
                “quantity”: 59.0,
                “rate”: 6.0,
                “amount”: 354.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 21,
                “quantity”: 1.0,
                “rate”: 6.0,
                “amount”: 6.0,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 25,
                “quantity”: 1.0,
                “rate”: 24.5,
                “amount”: 24.5,
                “location”: {
                    “id”: 23
                }
            },
            {
                “orderline”: 28,
                “quantity”: 1.0,
                “rate”: 24.5,
                “amount”: 24.5,
                “location”: {
                    “id”: 23
                }
            }
        ]
    }
}

With the error being so generic, I am unsure where to even start with this one.
Any help appreciated thank you.
Rookie Asked on February 17, 2025 in How To's.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor