Skip to main content

Generate Accounting Transaction

POST 

/api/vendor-credits/:vendor_credit/generate-accounting-transaction

Generate (or regenerate) the local accounting transaction for the vendor credit. Uses VendorCredit::getAccountingTransactionData() to build the lines and delegates to AccountingTransactionManager::saveAccountingTransaction(). Returns an AccountingTransactionResource with eager-loaded lines and nominal codes.

Request

Responses

Successful response