netsuite_create_vendor_bill
Create NetSuite vendor bills with expense lines, VAT breakdowns, and optional currency conversion, ensuring accurate vendor payables and tax ledger updates.
Instructions
Create a new NetSuite vendor bill with expense lines. Required: entity (vendor ID), subsidiary, tranDate (YYYY-MM-DD). Optional: dueDate, tranId, memo, currency, exchangeRate, foreignAmount, externalId, expense (array of lines with account, amount as NET, memo, department, location, class, taxCode). Set department from cost center map for analytics. Use vatLines for VAT: array of { taxCodeId, taxRate, vatAmount, netAmount } so the tax authority ledger is updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | ||
| dryRun | No | If true, return the NS request body without calling NS (debug mode) | |
| entity | Yes | ||
| tranId | No | ||
| dueDate | No | ||
| expense | No | ||
| currency | No | NetSuite currency ID (1=EUR, 2=USD, 3=GBP) | |
| tranDate | Yes | ||
| vatLines | No | VAT breakdown per line; sets taxDetailsOverride so tax authority ledger is updated | |
| taxCodeId | No | NetSuite tax code ID (legacy; prefer vatLines or expense[].taxCode) | |
| vatAmount | No | VAT amount in EUR (legacy; prefer vatLines) | |
| externalId | No | ||
| subsidiary | Yes | ||
| exchangeRate | No | Exchange rate to EUR (e.g. 0.8651 for USD) | |
| foreignAmount | No | Original amount in foreign currency |