---
title: "Retrieve prices"
method: POST
path: "/api/pricing-hub/prices"
tags: ["Pricing Hub Prices"]
---

# Retrieve prices

`POST /api/pricing-hub/prices`

>⚠️ This API has been deprecated. If you need to associate prices with specific customers, we recommend using the [Audience API](https://developers.vtex.com/docs/api-reference/audience-api).

This route retrieves and applies prices for the items that are passed in the request. Pricing Hub will select the pricing method that will be used for each item and will fetch their respective price from the selected pricing method.

## Query parameters

- `an` string, required

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- GetPricesRequestObject
  - `items` object[], required — List of items to be priced by Pricing Hub.
    - `index` integer, required — Index of the item at Checkout's cart. It has to be unique in the items array.
    - `skuId` string, required — ID of the SKU that will be priced.
    - `quantity` integer, required — This is the amount of items that will be priced. It is possible to have a volume discount for many repeated items. Hence, the price may not be the quantity of the item multiplied by the unitary price.
    - `brandId` string, required — Brand ID for the item.
    - `sellerId` string, required — Seller ID for the item.
    - `priceTableIds` string[], required — IDs of the price tables that will be used to compute the price. More than one price table might be passed to the array. The final price rule might be more complex than the lowest or the highest price.
    - `categoriesIds` string[], required — ID of the categories that will be used to compute the price.
  - `UtmSource` string, nullable — Traffic source, which indicates where the traffic originated from according to the `utm_source` value in the URL that led to the order. If there is no value, use `null`.
  - `UtmMedium` string, nullable — Medium that indicates what type of traffic the customer originated from, represented by the `utm_medium` value in the URL that led to the order. If there is no value, use `null`.
  - `UtmCampaign` string — Campaign name, represented by the `utm_campaign` value in the URL that led to the order. If there is no value, use `null`.
  - `UtmInternalCampaign` string, nullable — Internal campaign name, represented by the `utmi_cp` value in the URL that led to the order. If there is no value, use `null`.
  - `salesChannel` string, required — Represents Checkout's sales channel.
  - `email` string, required — Customer's email address. If there is no value, use an empty string.

## Response `200`

OK

- Response2
  - `items` Item1[], required — List of items and their respective prices applied by Pricing Hub.
    - `index` integer, required — The same index referring to Checkout's cart that was passed to the API.
    - `skuId` string, required — The same skuId that was passed to the API.
    - `price` number, required — The price returned by the pricing API that was used by Pricing Hub. It is measured in cents, so 5000 means 50,00 in local currency.
    - `costPrice` number, required — The cost price returned by the pricing API that was used by Pricing Hub. It is measured in cents, so 5000 means 50,00 in local currency.
    - `listPrice` number, required — The list price returned by the pricing API that was used by Pricing Hub. It is measured in cents, so 5000 means 50,00 in local currency.
    - `priceTable` string, required — The price table that was used to price the item.
    - `priceValidUntil` string, required — The moment up until the price is valid. After that moment, it will be necessary to call the pricing API again. The format of the string is in RFC3339.

---

[API](https://skmtc.net/vtex/apis/pricing-hub-deprecated.md) · [All operations](https://skmtc.net/vtex/apis/pricing-hub-deprecated/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vtex/pricing-hub-deprecated/versions/84ef87cef0bb/schema)
