netsuite_create_vendor
Create a NetSuite vendor with company name, subsidiary, and optional contact/address/tax data. If creation fails, fetch vendor forms to find the right customForm ID.
Instructions
Create a new NetSuite vendor (supplier). If vendor creation fails with 400, first call netsuite_get_vendor_forms to discover the correct customForm ID, then retry with customForm and any required customFields. Required: companyName (string), subsidiary (string). Optional: email, phone, externalId (for idempotency), customForm (string, custom form ID), customFields (object, key-value map of custom field IDs), isPerson (boolean), currency, vatRegNumber, legalName, addr1, city, zip, country
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | ||
| city | No | ||
| addr1 | No | ||
| No | |||
| phone | No | ||
| country | No | ||
| currency | No | ||
| isPerson | No | ||
| legalName | No | ||
| customForm | No | Custom form ID (e.g. '297' for Intercompany Vendor Form). Use netsuite_get_vendor_forms to discover. | |
| externalId | No | ||
| subsidiary | Yes | ||
| companyName | Yes | ||
| customFields | No | Key-value map of custom field IDs (e.g. { custentity_foo: 'value' }) | |
| vatRegNumber | No |