Archive a contract-level or customer-level credit. Use this endpoint to deactivate a credit while preserving historical records. You will not be able to archive a credit until all of the finalized invoices the credit has been applied to are voided.
Example workflow: The customer was granted a free credit erroneously. It was applied to their most recent finalized invoice.
listCustomerCredits
or listCustomerBalances
. Use the include_archived
parameter to choose to fetch the details.editCredit
endpoint, or adding a manual ledger entry using the addManualBalanceLedgerEntry
endpoint.Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Customer ID and Credit ID to archive
The body is of type object
.
Success
The response is of type object
.