If you want to use a Segmented Aggregation to price up one of your Product Plans, the Pricing Editor is designed to help you quickly price the segments you’ve defined for the Aggregation. This topic explains how to use the Segmented Aggregation described in the Segmented Aggregations topic to price a Plan:Documentation Index
Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
Use this file to discover all available pages before exploring further.
- Creating Segmented Pricings for Plans in the Console
- Using an API call to Create a Segmented Pricing
Creating Segmented Pricings for Plans in the Console
When you use a Segmented Aggregation to price one of your Product Plans, you must create a separate pricing for each segment value you’ve defined. You can do this using the Console’s Pricing Editor. To price a Plan using a Segmented Aggregation:- Select Pricing>Pricing editor. The Pricing editor opens.
- In the Product drop-down, select the Product for which you want to add a Plan to price up.
- Select Add Plans. A Select Plans popup appears and lists the Plans created for the Product.
- Select the Plan or Plans you want to price and select Confirm. You are returned to the Pricing page where the selected Plan is shown. A warning states that no pricing has yet been configured for the Plan.
- Select Add aggregations. A Select Aggregations popup appears listing the Aggregations created for the Product.
- Select the Segmented Aggregation you want to use to price the Plan and select Confirm. The popup closes, you are returned to the Pricing Editor where the Segmented Aggregation is shown ready for pricing. A warning states that no active pricing is yet configured.
- Select Edit segmented pricing. The Pricing>Segments page opens:
- An Aggregation details and Plan Details panel are shown.
- A Segmented pricing grid allows you to create the pricing for each segment value you have configured for the Segmented Aggregation.
- To configure a price for a segment value, select Create plan pricing. A Pricing page opens for the segment value, which mimics the Pricing page for a simple Aggregation that is not segmented - you can use either a Pricing Wizard workflow or choose to use the Advanced Pricing configuration options. See Creating a Pricing for a Plan for more guidance.
- Use the Pricing page to configure the precise pricing you want to apply to the segment value and select Create Pricing:

- Above shows the first two for China location under Segmented pricing.
- Repeat Steps 8 and 9 to create the pricing for all segment values:
- When you return to the Pricing Editor, you’ll see the pricing you’ve configured using the Segmented Aggregation has been saved - in this example 6/6 (6 of 6) segments are now priced:

- If you open the Plan details page of a Plan you’ve priced using a Segmented Aggregation, under Pricing you can review and manage the each segment’s pricing. For the current example:

- Select the type and location for the segment pricing you want to review:

- Note that you can Edit segmented pricing from this panel.
Using API Call to Create a Segmented Pricing
Instead of using the Console Pricing Editor, you can use the Create Pricing API call to create a pricing on a Plan using a Segmented Aggregation. When you do this, you can create a separate pricing for each of the segment values defined for the Segmented Aggregation. You can also create a pricing using wildcards to satisfy cases where you only want a specific pricing to apply to some of the segment values and apply a common pricing to any of the other segment values. This section uses the example of a Segmented Aggregation defined in the main Segmented Aggregations topic to show how to:- Create a pricing for a specific segment value.
- Create wildcard pricings to apply to segment values for which no specific pricing has been created
API Call - Creating a Pricing for a Segment
We’ll adapt the previous example to imagine we want to price a Plan using a Segmented Aggregation called Hiring Check 4:


- Make a
POSTCreate Pricing call to create a pricing for the Location = China/Type = Standard segment value:

- The
planIdparameter is required. - The
aggregationIdof the Segmented Aggregation is a required request parameter for each segment pricing you create. - Use the
segmentrequest parameter to specify which segment defined for the Segmented Aggregation you want the pricing to apply to. - Use the
pricingBandsrequest parameter to define the pricing - in this example, a single tier pricing has been defined.

- The pricing
idis given. - Each pricing band
idis given.
- If we return to Pricing>Segments and refresh the page, we can check that the Segmented pricing grid is now showing for the specified segment value:

API Call - Creating Wildcard Pricings for Segments
If you’ve created a Segmented Aggregation and defined multiple segment values, you might have a pricing use case that requires only some of those segment values to have their own specific pricing defined and for the remainder of the segments to be priced together using a common or default pricing. You can do this by using wildcard values for some or all of the fields used to define segments. This section illustrates with two example how to create such wildcard pricings for your Segmented Aggregations using the Create Pricing API call.Creating Double-Wildcard Default Segment Pricing
Suppose the pricing requirements for the current example of a three-value Segmented Aggregation is that for one segment value - Location = China/Type = Standard - a specific pricing will apply but for the remaining two segment values - Location = USA/Type = Complete and Location = UK/Type = Extended - a common pricing will apply. To implement this, you’ll first have to define a wildcard segment value for the Segmented Aggregation:- In the Console, open the Edit page for the Hiring Check 4 Aggregation and select Add default segment:

- Select Update Aggregation.
- Return to the Segmented pricing grid for the Segmented Aggregation - we can see that this double-wildcard default segment value has no pricing yet created for it:

- Make a
POSTCreate Pricing call:

- Note that for the
segmentrequest parameter we leave this empty and omit any use of a"location"value or"type"value to create a double-wildcard pricing.
- If we return to Pricing>Segments and refresh the page, we can check that the Segmented pricing grid is now showing for the wildcard segment value:

- With this double-wildcard default pricing created, any usage submitted for Location/Type Data Fields on our usage Meter and which do not have a corresponding segment defined for the Hire Check 4 Segmented Aggregation will have this pricing applied for billing purposes.

Creating Single-Wildcard Segment Pricing
Lastly, you might want to create a pricing for a Segmented Aggregation that uses a single wildcard. In the current Example, suppose we define a segment value on Hiring Check 4 for Location = Germany/Type = Any, since we want to apply the same pricing to any checks made for candidates located in Germany and regardless of the Type of check performed:
- Select Update Aggregation.
- Return to the Segmented Pricing grid for the Segmented Aggregation - we can see that this single-wildcard segment value has no pricing yet created for it:

- Make a
POSTCreate Pricing call:

- Note that for the
segmentrequest parameter, we use a “location” value and omit any"type"to create a single-wildcard pricing.
- If we return to Pricing>Segments and refresh the page, we can check that the Segmented pricing grid is now showing for the wildcard segment value:

- With this single-wildcard pricing created, any usage for Location = Germany, whether of Type = Standard, Type = Complete, or Type = Extended, will be charged according to this pricing.
Pricing with Compound Aggregations Based on Segmented Aggregations
You cannot define segments directly for a Compound Aggregation. However, if you’ve created a Compound Aggregation that references one or more Segmented Aggregations, you can also use the Compound Aggregation to price a Plan by segments defined for the Segmented Aggregations:- The Compound Aggregation does not inherit any of the pricings for segments you might have configured when using the referenced Segmented Aggregations to price Plans.
- The segments set up on the referenced Segmented Aggregations are available to the Compound Aggregation to price a Plan by:
- If only one Segmented Aggregation is referenced, then all of the segments are available for pricing using the Compound Aggregation.
- If two or more Segmented Aggregations are referenced, then the segments available for pricing are restricted to those segments that are defined in common or intersect across any of the referenced Segmented Aggregations - see below Compound Aggregations - Segments Available.
- Select Pricing>Pricing Editor. The Pricing page opens.
- In the Product drop-down, select the Product for which you want to add a Plan to price up.
- Select Add Plans. A Select Plans popup appears and lists the Plans created for the Product.
- Select the Plan or Plans you want to price and select Confirm. You are returned to the Pricing page where the selected Plan is shown. A warning states that no pricing has yet been configured for the Plan.
- Select Add compound aggregations. A Select Compound Aggregations popup appears listing the Aggregations created for the Product.
- Select the Compound Aggregation based on Segmented Aggregations you want to use to price the Plan and select Confirm. The popup closes, you are returned to the Pricing Editor, and the Segmented Aggregation is shown ready for pricing. A warning states that no active pricing is yet configured for any of the available segments:

- Select Edit segmented pricing. The Pricing>Segments page opens:
- An Aggregation details and Plan Details panel are shown.
- Under Segmented pricing, a grid allows you to create the pricing for each available segment configured for the referenced Segmented Aggregations:


Compound Aggregations - Segments Available
The Segments available for pricing using a Compound Aggregation depends on how many Segmented Aggregations are referenced:- If a single Segmented Aggregation is referenced, then all segments defined are available.
- If two or more are referenced, then only those segments defined in common or which intersect across the referenced Segmented Aggregations are available.
"location" and "type" fields:
"location" and "type" fields: