v1 - Credit Notes
Link credit note to invoice payable
Links a credit note to an invoice payable for clearing (offsetting balances). Because credit notes cannot be applied in the ledger until the invoice payable is posted, this creates a 'link' record that will be used during posting to automatically clear the credit note balance against the invoice payable balance. Requirements: credit note must be in POSTED status, both documents must belong to the same company entity, same vendor (businessPartnerId), same currency, and clearing amount cannot exceed available balance on either document.
post/v1/credit-notes/{creditNoteId}/invoice-payables/{invoicePayableId}
Request
- Base URLhttps://light.inc (the document declares no server; this is the origin it was published from)
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
creditNoteIdstring uuid required
invoicePayableIdstring uuid required
Request body
Response
default response
Example response
{
"creditNote": {
"currency": "USD"
},
"invoicePayable": {
"currency": "USD"
},
"currency": "USD"
}Changes
No recorded changes to this operation across all 1 revision of this API.