Record a vendor credit (draft)
record_vendor_creditRecords a supplier credit memo as a draft vendor credit for review; it is not authorized or applied to a bill. Returns its id, number and sku_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Lines: [{description, quantity, amount, nominal_code_id, is_product: false, cost_impact}]. | |
| dry_run | No | Validate only; saves nothing. | |
| credit_date | No | ISO date. | |
| supplier_id | Yes | ||
| credit_reason | No | A vendor-credit reason; sets each line's default cost impact. | |
| currency_code | No | Omit for the account currency. | |
| idempotency_key | No | A repeat with this key replays the first result. | |
| supplier_reference | No | ||
| vendor_credit_note | No | ||
| vendor_credit_number | No | The supplier's credit memo number exactly as printed; unique per account. |