LogoLogo
UpzeloSupport Centre
  • Upzelo
  • 👩‍💻Developer Guide
    • Installing Upzelo
    • Advanced configuration
      • Upzelo Configuration Object
    • Test Mode
    • Customer ID and Subscription ID
    • Processing Behaviour
    • Examples
  • 🔄Integrations
    • Payment Providers
      • Stripe
      • Recurly
      • Chargebee
      • Recharge
      • Woocommerce
      • QPilot
      • API
    • Webhooks
Powered by GitBook

Developer Docs

  • Support Centre
  • Legal Portal

© 2023 - Upzelo Limited

On this page
  1. Developer Guide

Customer ID and Subscription ID

PreviousTest ModeNextProcessing Behaviour

Last updated 2 years ago

Upzelo connects to your payment provider to take action on your behalf. Your customer Flows are completely configurable and can have different outputs such as:

  • Pausing subscriptions

  • Applying discounts

  • Cancelling subscriptions

  • Changing subscription plans

When initializing Upzelo, it's required that you send both a customerId and subscriptionId. The requirements exist because customers can have multiple subscriptions and we want you to have precise control over what we are taking action on.

If you support multiple subscriptions, you can add event handlers to individual buttons for each subscription with the subscriptionId set in the

Even though the system could function correctly using just a subscriptionId, we require the customerId too so we can verify that the subscription that is being actioned does belong to the customer.

In the event that a subscriptionId isn't passed into Upzelo, we will pick the most recent non-cancelled subscription to action. This is determined using the subscription created date.

👩‍💻
Upzelo configuration object