Stigg Product Updates logo

Product Updates

Back to Homepage Subscribe to Updates

Labels

  • All Posts

Jump to Month

  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • August 2022
  • July 2022
  • June 2022
Improvement
2 years ago

Improved API for provisioning subscriptions

When customers subscribe to plans (for example: during an upgrade from a free plan to a paid plan), a subscription needs to be provisioned in Stigg.

We've added a new provisionSubscription API that exhibits the below behavior:

  1. When provisioning of a paid subscription is attempted, Stigg is integrated with a billing solution and payment details have not been previously provided by the customer, the customer will be auto-magically redirected to the billing solution's checkout page. After the customer enters the required payment details in the presented checkout page, the relevant subscription will be created in both Stigg and the billing solution.
  2. When no payment is required or when Stigg is not integrated with a billing solution, the subscription will be immediately created in Stigg.

The new API method significantly simplifies the integration with Stigg, allows Stigg's customers to focus on modeling and rolling out changes to their pricing using the Stigg platform, and delegates all of the heavy lifting and decision making about when payment details are required to Stigg.

As can be seen in this example (and below video), this results in needing to write and maintain 4X less lines of code.

The new provisionSubscription method is available in the Stigg Node.js SDK version 0.57.0 or later, and replaces the separate createSubscription and initiateCheckout methods, which have been marked for deprecation.

More details about the provisionSubscription API can be found here.


Avatar of authorOr Arnon