Guides
...
Pricing and Billing
Pricing Plans

Customer Pricing Plan Details

4min

There are two static factors that influence how your customers are billed.

  1. Their (current) pricing plan
  2. Their (active) promotions

For context, the dynamic factors would include their actual usage, rewards they earned from that usage, etc...

If you need to share a view of the static factors with your customers, you can use the Customer Portal Pricing Plan Details API. In this guide, we will describe this API in a bit more detail.

Pricing Plan

First, a customer is assigned a Pricing Plan (aka. productPlan in the API schema). The Pricing Plan has a static (fixed) component, Fee, and a dynamic (variable) component, Product Item Price.

The following snippet shows the shape of the "product plan" part of the API response. By looking at the productPlan.fees[i] and the productPlan.productItems[i].productItemPrice.prices one can understand how the customer will be billed given some usage. The price object is explained in "Pricing Engine State Machine".

JSON


Promotions

A customer may be assigned to multiple Promotions.

The following snippet shows the shape of the "promotions" part of the API response. By looking at promotions[i].promotion, one can see the details of each active promotion of the customer.

JSON


Appendix: Sample

Here is a sample of a full API response:

JSON