XM

Retrieve Price by Item and Price List IDs

Path:

POST https://{baseurl}/api-price/v2/price/get

This API works for B2B and subscription scenarios, to get the offers and price details based on the specified list of item IDs and price list IDs.

Headers

Content-Type : application/json

x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }

Parameters

Type: Body

Name: The criteria to retrieve price details.

Required: true

Sample Request

{
"items": [
{
"itemId": 10000001,
"quantity": 3,
"priceListId": 10000003
}
]
}

Sample Response

HTTP Code: 200 Message: OK

[
{
"itemId": 1000003,
"priceListId": 10000003,
"offers": [
{
"price": {
"sale": 0,
"base": 229,
"currency": "USD"
},
"channel": 12,
"startDate": "2018-10-19T16:46:45.000Z",
"endDate": "2099-12-31T00:00:00.000Z",
"kind": null
}
]
}
]

HTTP Code: 400 Message: Client Error

HTTP Code: 500 Message: Server Error

Change Log

  • June - 2021

  • March - 2021 First updated