# Price lists

Different prices per customer: lists (wholesale, distributor, promotions) with tiers by quantity and by case, and customer groups with their list, discount, credit and minimum order.

The guide, step by step: https://fiscalisto.com/en/docs/api/listas-de-precios.md

## Endpoints

- [Create a price list](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/create-price-list.md): `POST /v1/price_lists`
- [List price lists](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/list-price-lists.md): `GET /v1/price_lists`
- [Get a price list](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/get-price-list.md): `GET /v1/price_lists/{id}`
- [Update a price list](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/update-price-list.md): `POST /v1/price_lists/{id}`
- [Remove a price list](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/delete-price-list.md): `DELETE /v1/price_lists/{id}`
- [Create a customer group](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/create-customer-group.md): `POST /v1/customer_groups`
- [List customer groups](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/list-customer-groups.md): `GET /v1/customer_groups`
- [Get a customer group](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/get-customer-group.md): `GET /v1/customer_groups/{id}`
- [Update a customer group](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/update-customer-group.md): `POST /v1/customer_groups/{id}`
- [Remove a customer group](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/delete-customer-group.md): `DELETE /v1/customer_groups/{id}`
- [Get a customer's prices](https://fiscalisto.com/en/docs/api/referencia/listas-de-precios/quote-prices.md): `POST /v1/prices`

## The PriceList object

A price list: it starts from the catalog price (or another list), moves it by a percentage and rounds it, with its own prices per product, presentation and from a certain quantity (wholesale tiers). items only comes when viewing one list.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"price_list"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer (iss_…). |
| `name` | string | yes | Name. |
| `description` | string or null | yes | Description. |
| `base_list` | string or null | yes | The list (prl_…) it starts from; null starts from each product's catalog price. |
| `adjust_percent` | number | yes | How much it raises (positive) or lowers (negative) the starting price, as a percentage. |
| `round_to` | number or null | yes | What it rounds calculated prices to (0.5, 1, 10…), or null for no rounding. |
| `starts_on` | string or null | yes | From what day it's valid (YYYY-MM-DD, Mexico City), or null since always. |
| `ends_on` | string or null | yes | Until what day it's valid, that day included (YYYY-MM-DD), or null with no end. |
| `is_default` | boolean | yes | true if it is the list for all customers who don't have another (there can only be one). |
| `active` | boolean | yes | false pauses it; true resumes it from today. |
| `groups` | integer | yes | How many customer groups use it. (from -9007199254740991 to 9007199254740991) |
| `customers` | integer | yes | How many customers have it as their own. (from -9007199254740991 to 9007199254740991) |
| `items` | array of object or null | yes | Line items (Conceptos), at least one. |
| `created_at` | string (date-time) or null | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |
| `updated_at` | string (date-time) or null | yes | When it last changed, ISO 8601 (-06:00). |

Example:

```json
{
  "id": "prl_OufpKqnrvx9p1",
  "object": "price_list",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "name": "Mayoreo",
  "description": null,
  "base_list": null,
  "adjust_percent": -10,
  "round_to": 0.5,
  "starts_on": null,
  "ends_on": null,
  "is_default": false,
  "active": true,
  "groups": 1,
  "customers": 0,
  "items": [
    {
      "product": "prd_OufpKqnrvx9p1",
      "unit": null,
      "min_quantity": 24,
      "unit_price": 80,
      "discount_percent": null
    }
  ],
  "created_at": "2026-10-20T09:02:11-06:00",
  "updated_at": "2026-10-24T10:15:42-06:00"
}
```

## The CustomerGroup object

A customer group: its price list, discount, credit days, minimum order and whether they order from their Portal del cliente.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"customer_group"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer (iss_…). |
| `name` | string | yes | Name. |
| `color` | string | yes | Color of its label in the app: info, warning, positive, critical or muted. |
| `price_list` | string or null | yes | Price list (prl_…). On a customer, their own, which wins over their group's; null to use their group's or everyone's. |
| `discount_percent` | number | yes | Discount percentage on the price, from 0 to 100; in the CFDI it goes as each line item's Descuento. |
| `credit_days` | integer or null | yes | Credit days given, from 0 to 365, or null to not change the customer's. |
| `quote_valid_days` | integer or null | yes | Days a new quote is valid (1 to 366). On a customer or group, null uses its group's or the company's (Ajustes › Horarios). |
| `min_order` | number or null | yes | Minimum order, without IVA, to order from the Portal del cliente, or null with no minimum. |
| `portal_ordering` | boolean | yes | true if its customers can place orders from their Portal del cliente. |
| `portal_changes` | `none`, `until_confirmed`, `until_delivered` | yes | Until when its customers can change or cancel from their portal an order they sent there: none, until_confirmed (until you confirm it) or until_delivered (until something is delivered or invoiced). |
| `delivery_days` | array of integer or null | yes | Days of the week it delivers to them (0 Sunday to 6 Saturday), or null for any day. The Portal del cliente only offers those days. |
| `cutoff_hour` | integer or null | yes | Cutoff hour (0 to 23, Mexico City): a portal order after it counts from the next day; null for no cutoff. |
| `prep_days` | integer | yes | Days to prepare an order before it can be delivered. (from -9007199254740991 to 9007199254740991) |
| `customers` | integer | yes | How many customers are in the group. (from -9007199254740991 to 9007199254740991) |
| `created_at` | string (date-time) or null | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |

Example:

```json
{
  "id": "cgr_OufpKqnrvx9p1",
  "object": "customer_group",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "name": "Mayoristas",
  "color": "info",
  "price_list": "prl_OufpKqnrvx9p1",
  "discount_percent": 3,
  "credit_days": 30,
  "quote_valid_days": 30,
  "min_order": 5000,
  "portal_ordering": true,
  "portal_changes": "until_confirmed",
  "delivery_days": [
    1,
    4
  ],
  "cutoff_hour": 14,
  "prep_days": 1,
  "customers": 12,
  "created_at": "2026-10-20T09:02:11-06:00"
}
```

## The PriceQuote object

What a customer pays for some products at a quantity: their unit price without IVA (from their list), their discount and the next wholesale tier.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"price_quote"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `customer` | string | yes | The customer (cus_…) whose prices were calculated. |
| `items` | array of object | yes | Line items (Conceptos), at least one. |
| `items[].product` | string | yes | A product from your catalog (prd_…): takes its key, unit, price and taxes. |
| `items[].quantity` | number | yes | Quantity (Cantidad). 1 by default. |
| `items[].unit` | string or null | yes | Customs unit (UnidadAduana), c_UnidadAduana. |
| `items[].unit_price` | number | yes | Unit price before taxes (ValorUnitario). |
| `items[].catalog_price` | number | yes | Its catalog price, per unit and without IVA, before their list. |
| `items[].discount_percent` | number | yes | The customer's discount (their own, or their group's) on that price; it goes as Descuento in the CFDI. |
| `items[].price_list` | string or null | yes | The list (prl_…) the price comes from, or null if it is the catalog's. |
| `items[].next_step` | object or null | yes | The next wholesale tier: from what quantity and at what price. null if there is none. |
| `items[].next_step.min_quantity` | number | yes | From how many units (of its presentation) this price applies: a wholesale tier. 1 by default. |
| `items[].next_step.unit_price` | number | yes | Unit price before taxes (ValorUnitario). |

Example:

```json
{
  "object": "price_quote",
  "livemode": false,
  "customer": "cus_OufpKqnrvx9p1",
  "items": [
    {
      "product": "prd_OufpKqnrvx9p1",
      "quantity": 10,
      "unit": null,
      "unit_price": 90,
      "catalog_price": 100,
      "discount_percent": 3,
      "price_list": "prl_OufpKqnrvx9p1",
      "next_step": {
        "min_quantity": 24,
        "unit_price": 80
      }
    }
  ]
}
```
