XM
Powered By GitBook
Retrieve Price by Item IDs
Path:
1
POST https://{baseurl}/api-price/offer/get-by-itemIds
Copied!
Allows you to get the price list ID, offers with prices, by item IDs. This API is ideally used while displaying products on your site and/or during checkout.

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 list of item IDs.
Required: true

Sample Request

1
{
2
"itemIds": [
3
10000001,
4
10000003
5
],
6
"priceListId": 10000032
7
}
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