API / Reference / Customer Credits
Unlink customer credit
DELETE
https://api.light.inc/v1/customer-credits/{customerCreditId}/invoice-receivables/{invoiceReceivableId}
Deprecated: Use POST /{customerCreditId}/invoice-receivables/{invoiceReceivableId}/unlink instead. Unlinks a customer credit from a sales invoice. If the customer credit has already been applied (CLEARED or PARTIALLY_CLEARED status), this will reverse the clearing entries in the ledger.
Identical to POST .../invoice-receivables/{invoiceReceivableId}/unlink; only the path is deprecated. If the credit has already been applied, the clearing on the invoice is reversed first (the invoice goes back to OPEN or PARTIALLY_PAID) and the credit returns to POSTED. Answers with an empty body.
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
-
customerCreditIdstring · uuidrequired -
invoiceReceivableIdstring · uuidrequired
Response
This endpoint returns no content.