Write Off Invoice

chargebee.write_off_invoice
ActionCRM & salesconnection required

Calls the Chargebee API with the connection's credentials.

Write off an unpaid invoice as bad debt.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Chargebee
Secret shape
the site API key: the raw string, {"api_key": "…"}, or the HTTP Basic pair {"username": "<api key>", "password": ""}
Config it needs
site, base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
invoice_id
The Chargebee invoice id.
stringYes———
comment
An internal note recorded against the invoice in the Chargebee UI. It is never shown to the customer.
stringNo—≤ 300 characters—

Output

One shape.

result

FieldTypeExample
invoice
The invoice resource as Chargebee returned it.
object—
credit_note
The credit note this operation raised, when it raised one.
object—
{
  "credit_note": {},
  "invoice": {}
}

Notes

  • The Chargebee site and API key come from the connection; every path below is relative to https://<site>.chargebee.com/api/v2.
  • POST /invoices/{invoice-id}/write_off

See Write Off Invoice run in a workflow.

In a technical demo we add the Chargebee connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.