Start a new topic
Answered

Invoice attempts

Hi guys,


I've been setting up my system to receive chargebee's webhooks, and I found an inconsistency.


In your Dunning tutorial page (https://www.chargebee.com/docs/dunning.html), you mention a attempt_count flag which isn't referred in the invoice attributes API page (https://apidocs.chargebee.com/docs/api/invoices).


Is there a invoice.attempt_count attribute?


Thanks,

Sara


Best Answer

Hi Sara,


The {{invoice.attempt_count}} is a mail merge field to be used in our email notifications to classify the email content based on attempt count. There's no attempt count attribute via API. We return the Dunning Status in API using the dunning_status attribute. 


Answer

Hi Sara,


The {{invoice.attempt_count}} is a mail merge field to be used in our email notifications to classify the email content based on attempt count. There's no attempt count attribute via API. We return the Dunning Status in API using the dunning_status attribute. 

Ok, cool. Thanks! That would be useful in case we change the dunning settings, so we don't need to change the logic of the response to the webhook.

Not at all :) 

Login or Signup to post a comment