netsuite_create_vendor_credit
Create a NetSuite vendor credit for refunds or credit notes, with optional application to existing bills. Use externalId to ensure idempotency.
Instructions
Create a NetSuite vendor credit (for Spendesk credit notes / refunds). Use externalId for idempotency (e.g. spk_payable_). Optionally apply to an existing bill via applyList.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | ||
| dryRun | No | If true, return the NS request body without calling NS (debug mode) | |
| entity | Yes | Vendor internal ID | |
| tranDate | Yes | Date YYYY-MM-DD | |
| applyList | No | Apply credit to existing bill(s): doc, apply, amount | |
| externalId | No | e.g. spk_payable_<creditNoteId> | |
| subsidiary | Yes | Subsidiary internal ID | |
| expenseList | No | Expense lines: use items or expense array with account, amount, department, memo |