API Calls


The Subscribe Pro extension makes several API calls to our platform as customers browse your store so that it can provide information about products that are available for subscription, existing subscriptions for the current customer, and saved credit cards, among other things, as well as allowing customers to create new subscriptions and manage their existing ones. Some of the information received from the platform via the API is cached to reduce the resource consumption on each page load. Below is a table that lists and explains each API call, at what location and under what conditions it is called, and whether or not it is cached.

WhereLocation / EventConditionsCached?Details
AdminEdit Customer Page - Saved Credit Cards TabAdmin user has Manage Credit Cards permissionsNoCustomer's cards are fetched and stored to platform.
AdminOn Individual Product Save under Manage ProductsIf the product has "Subscription Enabled" attribute set to YesNo
AdminCreate New Order - Product line itemsIf the product has "Subscription Enabled" attribute set to YesYesSubscribe Pro caches product information and configuration details from the platform.
AdminCreate New Order - Payment Methods StepIf subscriptions are present in order OR if Subscribe Pro Vault payment method is enabled for non-subscription ordersNoCustomer's available cards are fetched from platform. JSONP or server POST is used to store new cards to platform.
AdminCreate New Order - On Place Order - PaymentIf Subscribe Pro Vault payment method is used on orderNoPayment card is saved, payment transaction is run through platform
AdminCreate New Order - After Order Created Successfully - Create New SubscriptionIf subscriptions are present in orderYesSubscribe Pro caches product information and configuration details from the platform.

API calls are still necessary to create new subscription, regardless of cache servers other calls.
FrontendProduct Details PageOnly if Subscription Enabled product attribute is trueYesMultiple layers of caching:

Magento's frontend block and full page caches.
Subscribe Pro caches product information and configuration details from the platform.
FrontendOn Add to CartIf the product has "Subscription Enabled" attribute set to YesYesSubscribe Pro caches product information and configuration details from the platform.
FrontendCart Page
FrontendCheckout - Payment Methods StepIf subscriptions are present in order OR if Subscribe Pro Vault payment method is enabled for non-subscription ordersNoCustomer's available cards are fetched from platform. JSONP or server POST is used to store new cards to platform.
FrontendOn Place Order - PaymentIf Subscribe Pro Vault payment method is used on orderNoPayment card is saved, payment transaction is run through platform
FrontendAfter Order Created Successfully - Create New SubscriptionIf subscriptions are present in orderYesSubscribe Pro caches product information and configuration details from the platform.

API calls are still necessary to create new subscription, regardless of cache servers other calls.