I have the following php code:
$response = $client->getCustomer($user);
$plan = $response->getCustomerPlan();
$nextBilling = $plan["nextInvoiceBillingDatetime"];
$nextBilling always returns exactly 30 days from the moment the script is executed. Is this normal? I am trying to get the next date the client will be billed. I can get what I want from getCustomerInvoice(), but the above seemed like a more direct path. So, I mostly wanted to report a potential bug if what I described is not the expected behavior.

#1 Posted by Marc Guyer Support staff on 05 Oct, 2011 03:11 PM
Hi Ryan. That can be confusing. The
$plan["nextInvoiceBillingDatetime"]doesn't have anything to do with the current subscription. That value is simply a convenience to determine when a subscriber's next bill would be if they signed up today. For those already subscribed, you'll want to use thebillingDatetimeof the first invoice:Dean closed this discussion on 16 Jan, 2013 09:44 PM.