Price Lists
Add Price List
post /sites/{siteid}/pricelistsNote! The total number of price lists allowed is limited to 100.
{ "pricelistname": "Resellers"}
3
HTTP Status Code Summary | |
---|---|
200 | Returns pricelistid |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Price Lists
get /sites/{siteid}/pricelistsThe index of the item to start from
The number of items returned
Comma separated list of fields to return. Use this to query only the fields you are using. Default is all fields in pricelist.
{ "totalcount": 2, "items": [ { "pricelistid": 1, "pricelistname": "Default Price List", "pricelistdescription": "", "active": true, "externalid": null, "currencycode": "USD", "tags": [] }, { "pricelistid": 2, "pricelistname": "Secondary Price List", "pricelistdescription": "", "active": true, "externalid": null, "currencycode": "USD", "tags": [] } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type pricelist. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Price List
get /sites/{siteid}/pricelists/{pricelistid}{ "pricelistid": 3, "pricelistname": "Resellers", "pricelistdescription": "", "active": true, "externalid": null, "currencycode": "USD", "tags": []}
HTTP Status Code Summary | |
---|---|
200 | Returns an item of type pricelist. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Update Price List
put /sites/{siteid}/pricelists/{pricelistid}{ "pricelistdescription": "Pricelist for Resellers"}
true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Delete Price List
delete /sites/{siteid}/pricelists/{pricelistid}true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Price Lists Items
get /sites/{siteid}/pricelists/{pricelistid}/pricelistitemsThe index of the item to start from
The number of items returned
Comma separated list of fields to return. Use this to query only the fields you are using. See pricelistitem for all fields.
Returns an envelope with items of type pricelistitem for a pricelist, ordered by productid.
{ "totalcount": 3, "items": [ { "moneyprice": "795.00", "moneypricevolume": null, "sku": "36305-1" }, { "moneyprice": "895.00", "moneypricevolume": [ { "levelstart": 2, "moneyprice": "849.00" }, { "levelstart": 4, "moneyprice": "749.00" } ], "sku": "36401-1" } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type pricelistitem for a pricelist, ordered by productid. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Batch Set Price List Items
put /sites/{siteid}/pricelists/{pricelistid}/pricelistitems[ { "sku": "36305-1", "moneyprice": "795.00" }, { "sku": "36401-1", "moneyprice": "895.00", "moneypricevolume": [ { "levelstart": 2, "moneyprice": "849.00" }, { "levelstart": 4, "moneyprice": "749.00" } ] }, { "sku": "36522-3", "moneyprice": "849.00", "moneypricevolume": [ { "levelstart": 4, "moneyprice": "729.00" } ] }]
[ { "statuscode": 200, "return": true }, { "statuscode": 200, "return": true }, { "statuscode": 200, "return": true }]
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Batch Delete Price List Items
delete /sites/{siteid}/pricelists/{pricelistid}/pricelistitems[ { "sku": "36305-1" }, { "sku": "36401-1" }, { "sku": "36522-3" }]
[ { "statuscode": 200, "return": true }, { "statuscode": 200, "return": true }, { "statuscode": 200, "return": true }]
HTTP Status Code Summary | |
---|---|
200 | Returns true or a batch envelope if array of objects was provided |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Objects
moneystring
pricelistobject
Use price lists to set different prices for products.
Price list ID (default pricelist has ID 1 on all systems).
Price list name.
Price list description.
If true, the price list is active.
External ID of price list (if applicable, otherwise null).
Currency of the price list (ISO 4217, alpha-3 uppercased).
The tags for this price list. Tags can be used to only apply the pricelist for certain stores or campaigns.
pricelistitemobject
Price list item for a pricelist
Product ID for the price list item.
The price for the product.
Volume pricing for the price list item. Array of volumepricelevel.
SKU for the price list item.
volumepricelevelobject
Volume price level of a pricelistitem
The quantity threshold to activate this price.
The price of the product at this quantity.