Commits a refund previewed with vendorCredit.refund.preview: the same body, the preview's confirmation_token, the same Idempotency-Key and the vendor credit's ETag as If-Match. With bank_transaction_id the imported line is booked to the vendor credit and reconciled (settles_bank_line true, bank_transaction_id in the result); no second line is created. The journal is Dr bank / Cr Accounts Payable (plus an exchange difference for a foreign-currency credit at another rate); the vendor credit closes when nothing is left. A supplier refund goes this way: look first for an approved, open vendor credit of the supplier (vendorCredit.index, filter[contact_id]); only when there is none create the vendor credit (vendorCredit.store, with the account and VAT rule of the charge) and approve it (vendorCredit.approve); then refund it against the line; bankTransaction.categorize refuses a supplier on money in with supplier_refund_needs_vendor_credit. Reverse with vendorCredit.refund.reverse, which gives an imported line back unbooked. Requires Idempotency-Key, If-Match and the vendor-credits:action OAuth scope with update_vendor_credits and update_bank_accounts.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
