netsuite_update_vendor_bill
Update any field on an existing NetSuite vendor bill via PATCH, including header, expense/item lines, custom fields, and billing address. Supports replacing line lists.
Instructions
Update any field of an existing NetSuite vendor bill via PATCH. Supports: header fields (entity, tranDate, dueDate, tranId, memo, currency, exchangeRate, subsidiary), expense sublist (account, amount, taxCode, memo, department, location, class, amortization), item sublist, custom body fields, billing address. When expense[] is provided, uses ?replace=expense to REPLACE all lines (not merge). Same for item[] with ?replace=item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | NetSuite vendor bill internal ID | |
| item | No | Item lines; when provided REPLACES all existing item lines | |
| memo | No | Bill memo / description | |
| dryRun | No | If true, return body without calling NetSuite | |
| entity | No | Vendor internal ID | |
| tranId | No | Invoice/reference number | |
| dueDate | No | Due date YYYY-MM-DD | |
| expense | No | Expense lines; when provided REPLACES all existing lines | |
| currency | No | NS currency ID (1=EUR, 2=USD) | |
| tranDate | No | Bill date YYYY-MM-DD | |
| subsidiary | No | NS subsidiary ID | |
| customFields | No | custbody_xxx key-value pairs for custom body fields | |
| exchangeRate | No | FX rate to base currency | |
| billingAddress | No |