XM
Powered By GitBook
Retrieve Price by Item and Price List IDs
Path:
1
POST https://{baseurl}/api-price/v2/price/get
Copied!
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

1
{
2
"items": [
3
{
4
"itemId": 10000001,
5
"quantity": 3,
6
"priceListId": 10000003
7
}
8
]
9
}
Copied!

Sample Response

HTTP Code: 200 Message: OK
1
[
2
{
3
"itemId": 1000003,
4
"priceListId": 10000003,
5
"offers": [
6
{
7
"price": {
8
"sale": 0,
9
"base": 229,
10
"currency": "USD"
11
},
12
"channel": 12,
13
"startDate": "2018-10-19T16:46:45.000Z",
14
"endDate": "2099-12-31T00:00:00.000Z",
15
"kind": null
16
}
17
]
18
}
19
]
Copied!
HTTP Code: 400 Message: Client Error
HTTP Code: 500 Message: Server Error

Change Log

    June - 2021
    March - 2021 First updated
Last modified 3mo ago
Copy link
Contents
Change Log