REST v2 - Subscription Plans - List Subscription Plans - Not matching XML-RPC

@OmarAlmonte, I am seeing a mismatch in the results being returned in the Subscription Plans - List Subscription Plans endpoint.

https://developer.infusionsoft.com/docs/restv2/#tag/Subscription-Plans/operation/listSubscriptionPlans

Using the PHP code below for XML-RPC I get over 200 plans back.

$subscription_plans = $infusionsoft->dsQuery(
   'SubscriptionPlan', 1000, 0, 
    array('Id' => '%'), 
    array('Id', 'Cycle', 'Frequency', 'ProductId', 'Active')
);

But the REST v2 endpoint is only returning 33 of those plans.

Hi Pav,

The difference you’re seeing is likely because the REST v2 endpoint only returns subscription plans associated with active products, whereas the XML-RPC SubscriptionPlan query returns all plans, including those tied to inactive products.

That would explain why XML-RPC is returning over 200 plans while the v2 endpoint only returns 33.

If that’s not the case, let me know and we’ll investigate further.

Checking on my side, the associated products are inactive.

Could you update the documentation to mention that, as it was not obvious.

Thanks

Will do, thanks for bringing this up!