Unlink invoice from contract
https://api.light.inc/v1/contracts/{contractId}/invoice-receivables/{invoiceReceivableId}/unlink
Unlinks a sales invoice that was linked to the contract by hand, clearing the invoice's contractId. Only a DRAFT or OPEN invoice can be unlinked, and never one the contract's billing schedule created. An invoice not linked to this contract, as on a retry of a call that went through, returns CONTRACT_INVOICE_NOT_LINKED; treat it as success.
Permission: contracts:update (AR_CLERK, COMPANY_ADMIN, CONTROLLER)
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
contractIdstring · uuidrequired -
invoiceReceivableIdstring · uuidrequired
Response
application/json;charset=UTF-8This endpoint returns no content.