Create a new Billing Date for a Subscription Problems

Community,

The Goal of answering the following question is:
When a subscription bill fails change the next billing date to anything in the future via the API so InfusionSoft will re-try on that date.

We are trying to set the next retry date on subscription billings. We currently are using the XML-RPC InvoiceService.updateJobRecurringNextBillDate (xml-rpc - Keap Developer Portal). This seems to work 33% of the time and the InfusionSoft system re-bills the customer on the updated date. However, 66% of the time it doesn’t rebill even though the date does change. Upon the recommendation of InfusionSoft, since it seem that this has something to do with being out of the range on the billing cycle that these are not re-billing and their recommendation was to create a new subscription invoice.

So we have now implemented the XML-RPC InvoiceService.createInvoiceForRecurring (xml-rpc - Keap Developer Portal). However, when ever we make this call we are receiving a 0, which is returned if no invoices were generated. The following is an example of the call we are performing.

InfusionSoft Client
[https://{sub-domain}.infusionsoft.com]

URL
https://api.infusionsoft.com/crm/xmlrpc/v1?access_token=xxxxxxxxxxxxxxxxxxxxx

PAYLOAD

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>InvoiceService.createInvoiceForRecurring</methodName>
<params>
<param>
<value>
<string>xxxxxxxxxxxxxxxxxxxxxxxxx</string>
</value>
</param>
<param>
<value>
<int>#####</int>
</value>
</param>
</params>
</methodCall>

RESPONSE

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<i4>0</i4>
</value>
</param>
</params>
</methodResponse>

Does the subscription have to be in a particular status in order to generate a new invoice? We were assuming as long as a balance was due, it should generate an invoice? Any guidance would be helpful!

Cheers,
Jason Martin
OpenPath Level X Support

Unfortunately, the next bill date cannot be modified with the api. You can modify the paid thru date but that begins to get a bit hokey :stuck_out_tongue_winking_eye: