XM
Members
Add or Update Bulk Price
This documentation is now outdated, please find the latest docs for this endpoint here
Path:
1
POST https://{baseurl}/api-price/price/bulk-insert
Copied!
Enables you to add or update prices, in bulk. This API is secured by x-api-key.

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
{
3
"priceListId": "100-TwoWeeks",
4
"itemId": 10000001,
5
"offers": [
6
{
7
"kind": 12,
8
"channel": 12,
9
"startDate": "2019-08-24T14:15:22Z",
10
"endDate": "2019-08-24T14:15:22Z",
11
"range": [
12
{
13
"minQuantity": 3,
14
"price": 299
15
}
16
],
17
"price": {
18
"base": 299,
19
"sale": 199,
20
"cost": 149
21
}
22
}
23
]
24
}
25
]
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
"offerCode": 1234,
19
"range": [
20
{
21
"id": "60e423591a6ae10009456273",
22
"minQuantity": 10,
23
"price": 1500.1
24
}
25
]
26
}
27
],
28
"createdAt": "2020-02-02T17:22:48.570Z",
29
"updatedAt": "2020-02-02T17:22:48.570Z",
30
"job": true,
31
"priceListId": 100000
32
}
Copied!
HTTP Code: 400 Message: Client Error
HTTP Code: 500 Message: Server Error

Change Log

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