Hi everyone, I'm getting an error trying to create...
# general
a
Hi everyone, I'm getting an error trying to create a Vendor Prepayment record through the API REST browser. This is the body I'm passing in:
Copy code
"netsuite_data": {
        "customForm": {
            "id": 162
        },
        "entity": {
            "id": 404
        },
        "account": {
            "id": 1969
        },
        "payment": 5000,
        "memo": "test",
        "purchaseorder": {{purchase_order_id}}
    }
My url -
...<http://suitetalk.api.netsuite.com/services/rest/record/v1/vendorPrepayment|suitetalk.api.netsuite.com/services/rest/record/v1/vendorPrepayment>
The error I'm getting:
HTTPError: 400 Client Error: Bad Request for url
Is there also a way to get a more detailed error log from Netsuite?
g
check your url. The error is pretty much saying that client side http request isnt working/ going through
a
Just a bit confusing since the function has been running fine previously so I don't believe it's a url issue. Checked the Netsuite logs and the issue seems to be with the account ID being passed in. The account definitely exists and the ID matches one which is selectable in the UI when creating a Prepayment record.