Display All Subscriptions for a Customer

View all subscriptions for customer.

Description

  1. Your company's Accounts Receivable manager enters a customer ID on your company's intranet site used to review subscriptions.
  2. The intranet page uses the Get Subscriptions for Customer endpoint to obtain subscription details for the specified customer. The page then displays the subscription ID, status, and next billing date for each subscription.
  3. The Accounts Receivable manager clicks the subscription ID corresponding to the CloudMail subscription, which has the status On Hold.
  4. The page displays details for each item in the subscription, including product name, quantity, status, and deactivation date for deactivated items.
  5. With this information at hand, the Accounts Receivable manager telephones the customer to attempt to secure payment for the subscription.

Obtain the customer's current subscription details

To call the Get Subscriptions for Customer endpoint, pass one (and only one) of the following parameters: CustomerId or CustomerReferenceId or CustomerEmail.

If your company is able to securely identify a customer prior to an order, then you can pass your own unique customer identifier to Cleverbridge, and Cleverbridge will store it as CustomerReferenceId for your subsequent use in qualifying certain API endpoint calls (including this one).

For example:

ParameterSet to Value
CustomerIdThe unique identifier for the customer.
CustomerReferenceId(blank)
SubscriptionstatusHold
CustomerEmail(blank)

Options

The Subscriptionstatus parameter is optional. If it is blank, information on all subscriptions for the specified customer is returned. The Subscriptionstatus parameter takes the following string values (and returns a corresponding integer in a JSON response):

  • Active (or 1 for JSON)

  • Deactivated (or 3 for JSON)

  • Finished (or 4 for JSON)

  • Grace (or 5 for JSON)

  • Hold (or 6 for JSON)

  • New (or 7 for JSON)

The recommended approach is for your company to store information about the customer and subscription in your company's system. The default notifications provided by Cleverbridge allow you to receive updates and apply them to the customer and subscription in your company's system.

Illustration