Docs
You are viewing:
Product Catalog 2.0
While using the Salesforce API to cancel subscriptions in Chargebee, you might encounter an issue where unpaid invoices are not automatically written off, even if you have enabled the site-wide setting for this purpose. This typically occurs when the API call does not include the necessary parameters to trigger the write-off process.
To ensure that unpaid invoices are automatically written off when a subscription is canceled via the Salesforce API, follow these steps:
account_receivables_handling
parameter in your Salesforce API call when canceling a subscription.{
"subscription_id": "sub_123456",
"contract_term": {
"action_at_term_end": "cancel",
"account_receivables_handling": "write_off"
}
}
account_receivables_handling
parameter for all relevant calls.Was this article helpful?