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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>",
"subsidiary": "<subsidiary>",
"tranDate": "<tranDate>"
},
"name": "netsuite_create_vendor_credit"
}
}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 |