Retrieve prices
⚠️ This API has been deprecated. If you need to associate prices with specific customers, we recommend using the 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
Name of the VTEX account. Used as part of the URL.
Headers
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Describes the type of the content being sent.
Request body
Example request
{
"items": [
{
"skuId": "13",
"quantity": 1,
"brandId": "2000000",
"sellerId": "1",
"priceTableIds": [
"1"
],
"categoriesIds": [
"1"
]
}
],
"UtmSource": "facebook",
"UtmMedium": "social",
"UtmCampaign": "summer",
"UtmInternalCampaign": "sale",
"salesChannel": "1",
"email": "customer@email.com"
}Response
OK
Changes
Changed in 7 of the 52 revisions of this API.4327
- ▲
added the new required
queryrequest parameterannew-required-request-parameter
- ●
deleted the
queryrequest parameteraccountNamerequest-parameter-removed
- ▲
- ●
deleted the
headerrequest parameterX-VTEX-API-AppKeyrequest-parameter-removed
- ●
deleted the
headerrequest parameterX-VTEX-API-AppTokenrequest-parameter-removed
- ○
the request property
UtmInternalCampaignbecame nullablerequest-property-became-nullable
- ○
the request property
UtmMediumbecame nullablerequest-property-became-nullable
- ○
the request property
UtmSourcebecame nullablerequest-property-became-nullable
- ○
the
request property default value1was removedrequest-property-default-value-removed
- ○
the
request property default value1was removedrequest-property-default-value-removed
- ○
the
UtmCampaignrequest property default valuesummerwas removedrequest-property-default-value-removed
- ○
the
UtmInternalCampaignrequest property default valuesalewas removedrequest-property-default-value-removed
- ○
the
UtmMediumrequest property default valuesocialwas removedrequest-property-default-value-removed
- ○
the
UtmSourcerequest property default valuefacebookwas removedrequest-property-default-value-removed
- ○
the
brandIdrequest property default value2000000was removedrequest-property-default-value-removed
- ○
the
emailrequest property default valuecustomer@email.comwas removedrequest-property-default-value-removed
- ○
the
indexrequest property default value0was removedrequest-property-default-value-removed
- ○
the
quantityrequest property default value1was removedrequest-property-default-value-removed
- ○
the
salesChannelrequest property default value1was removedrequest-property-default-value-removed
- ○
the
sellerIdrequest property default value1was removedrequest-property-default-value-removed
- ○
the
skuIdrequest property default value13was removedrequest-property-default-value-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
items/items/quantityrequest property type/format changed fromstring/tointeger/request-property-type-changed
- ○
the
quantityrequest property default value changed from1to1request-property-default-value-changed
- ▲
- ▲
the
items/items/indexrequest property type/format changed fromstring/tointeger/request-property-type-changed
- ▲
the
items/items/indexresponse's property type/format changed fromstring/tointeger/for status200response-property-type-changed
- ○
the
indexrequest property default value changed from0to0request-property-default-value-changed
- ▲
- ○
the
quantityrequest property default value changed from1to1request-property-default-value-changed
- ○
- ○
the request property
UtmCampaignbecame optionalrequest-property-became-optional
- ○
the request property
UtmInternalCampaignbecame optionalrequest-property-became-optional
- ○
the request property
UtmMediumbecame optionalrequest-property-became-optional
- ○
the request property
UtmSourcebecame optionalrequest-property-became-optional
- ○
the
categoriesIdsrequest property default value changed from1to1request-property-default-value-changed
- ○
the
indexrequest property default value changed from0to0request-property-default-value-changed
- ○
the
priceTableIdsrequest property default value changed fromto1request-property-default-value-changed
- ○
- ○
endpoint added
endpoint-added
- ○