Skip to main content

Preview Vendor Deposit Application

POST 

/api/vendor-deposits/:vendorDepositId/applications/preview

Preview the effect of applying a deposit amount to a purchase invoice (bill) without committing anything. Returns the before/after balances on both the deposit and the bill, the tenant-currency amount, and any FX gain/loss that would be posted when the deposit and bill currencies differ.

Required scope: accounting:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Validation problems (deposit not applicable, supplier mismatch, amount exceeding the unapplied balance) are returned in the errors and warnings arrays rather than as an HTTP error.

Request

Responses

OK

Response Headers
    Content-Type