XM

Add or Update Bulk Price

Path:

POST https://{baseurl}/api-price/price/bulk-insert

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

[
{
"priceListId": "100-TwoWeeks",
"itemId": 10000001,
"offers": [
{
"kind": 12,
"channel": 12,
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"range": [
{
"minQuantity": 3,
"price": 299
}
],
"price": {
"base": 299,
"sale": 199,
"cost": 149
}
}
]
}
]

Sample Response

HTTP Code: 200 Message: OK

{
"id": "string",
"isSoftDeleted": true,
"itemId": 1000000051,
"offerId": 2386,
"offers": [
{
"kind": 12,
"channel": 12,
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"price": {
"base": 299,
"sale": 199,
"cost": 149,
"currency": "USD"
},
"offerCode": 1234,
"range": [
{
"id": "60e423591a6ae10009456273",
"minQuantity": 10,
"price": 1500.1
}
]
}
],
"createdAt": "2020-02-02T17:22:48.570Z",
"updatedAt": "2020-02-02T17:22:48.570Z",
"job": true,
"priceListId": 100000
}

HTTP Code: 400 Message: Client Error

HTTP Code: 500 Message: Server Error

Change Log

  • June - 2021

  • March - 2021 First updated