---
title: "Get Prices"
method: POST
path: "/api/pricing-hub/prices?an={accountName}"
tags: ["Pricing Hub Prices"]
---

# Get Prices

`POST /api/pricing-hub/prices?an={accountName}`

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.

## Path parameters

- `accountName` string, required
- `environment` string, required

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `X-VTEX-API-AppKey` string, required
- `X-VTEX-API-AppToken` string, required

## Request body

- GetPricesRequestObject
  - `items` object[], required — The list of items that are to be priced by Pricing Hub
    - `index` string, required — This is the index of the item at Checkout's cart. It has to be unique in the items array
    - `skuId` string, required — This is the sku id of the item that will be priced
    - `quantity` string, 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 — This is the brand ID for the item
    - `sellerId` string, required — This is the seller ID for the item
    - `priceTableIds` string[] — 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 — IDs of the categories that will be used to compute the price
  - `UtmSource` string, required — Traffic source, 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, required — 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, required — 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, required — 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 — The 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
    - unknown[]
      - unknown

## Changes

- **2021-11-09** `4081090c8f49` — 4 breaking, 1 info
  - the `items/items/index` request property type changed from `number` to `string`
  - the `items/items/quantity` request property type changed from `number` to `string`
  - the response's body type changed from `array` to `object` for status `200`
  - removed the required property `Items` from the response with the `200` status
  - …1 more
- **2021-11-09** `06dca8490c59` — 1 breaking
  - the `header` request parameter `Accept` became required
- …earlier changes not shown

[Full history](https://skmtc.dev/vtex/apis/pricing-hub-deprecated/changes/api/pricing-hub/prices?an=:accountName/post.md)

---

[API](https://skmtc.dev/vtex/apis/pricing-hub-deprecated.md) · [All operations](https://skmtc.dev/vtex/apis/pricing-hub-deprecated/llms.txt) · [OpenAPI document](https://skmtc.dev/vtex/apis/pricing-hub-deprecated/revisions/4081090c8f49?raw)
