# Complex Pricing

## Setup a complex pricing model

Now that we've learned how to reproduce some of the more basic pricing models we can add bits and pieces of other models to better fit the needs of your company. These basic models  do not have to be mutually exclusive from one another. Here we will take an example where we bring everything together into one pricing model. The example below illustrates two tiers with flatrate pricing in addition to pricing per unit.&#x20;

We start off by creating our products normally. Since we will have two tiers we will need to create two products. The first price will be as usual, the standard recurring price. The second price will be of the graduated pricing model as used previously to demonstrate per Unit pricing.&#x20;

![](/files/-MJ4C7qP31Soto_VRDxX)

Then as normal we must tag both products with metadata, so that the  pricing model will populate in Billflow's Pricing Page. As usual, "sb\_service" is the same for both of our products and the "sb\_tier" tags are different and correspond to each tier. Once more, we refresh the Pricing Page and should see our product pop up.&#x20;

![](/files/-MJ4BvJtJn1Dryy5NT9T)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.billflow.io/how-to/setup-pricing/complex-pricing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
