XM
Powered By GitBook
Add or Update Price
Path:
1
POST https://{baseurl}/api-price/price/
Copied!
Allows you to add price to items or update existing price of items, for a particular price list ID. This API is secured by x-api-key. To update prices in bulk, the Add Or Update Bulk Price API is recommended.

Headers

Content-Type : application/json
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }
x-api-key: Av5xCBXsWo8EDGbNTHZ2r8J5XI5txqaqIITDxTE3

Parameters

Type: Body
Name: The criteria to add price.
Required: true

Sample Request

1
{
2
"priceListId": "100-TwoWeeks",
3
"itemIds": [
4
0
5
],
6
"offers": [
7
{
8
"kind": 12,
9
"channel": 12,
10
"startDate": "2019-08-24T14:15:22Z",
11
"endDate": "2019-08-24T14:15:22Z",
12
"price": {
13
"base": 299,
14
"sale": 199,
15
"cost": 149
16
}
17
}
18
]
19
}
Copied!

Sample Response

HTTP Code: 200 Message: OK
1
{
2
"id": "string",
3
"isSoftDeleted": true,
4
"itemId": 1000000051,
5
"offerId": 2386,
6
"offers": [
7
{
8
"kind": 12,
9
"channel": 12,
10
"startDate": "2019-08-24T14:15:22Z",
11
"endDate": "2019-08-24T14:15:22Z",
12
"price": {
13
"base": 299,
14
"sale": 199,
15
"cost": 149,
16
"currency": "USD"
17
}
18
}
19
],
20
"createdAt": "2020-02-02T17:22:48.570Z",
21
"updatedAt": "2020-02-02T17:22:48.570Z",
22
"job": true,
23
"priceListId": 100000,
24
"itemSKU": null
25
}
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