Resource URL Summary
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Retrieve the details of a specific Tier Pricing
Retrieve the details of a specific Tier Pricing for a specific Product
Insert or Update the details for a specific Tier Pricing
Delete a specific Tier Pricing
|
API Specific Parameters
Parameter | Description |
---|---|
${ProductNum} | Identifies the product number. |
| Identifies the unique tier pricing object. |
Include Page | ||||
---|---|---|---|---|
|
API Specifics
Panel | |||||||||
---|---|---|---|---|---|---|---|---|---|
Retrieve the details of a specific Tier PricingURL
HTTP Request BodyThis request does not require a request body. HTTP ResponseOn success the HTTP response code will be 200 and the response body will contain a valid Pricing Object. If the tier does not have any pricing defined an HTTP response code of 404 (not found) will be returned. |
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
Retrieve the details of a specific Tier Pricing for a specific ProductURL
HTTP Request BodyThis request does not require a request body. HTTP ResponseOn success the HTTP response code will be 200 and the response body will contain a valid object with a price. If the tier does not have any pricing defined an HTTP response code of 404 (not found) will be returned.
|
Panel | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Insert or Update the details for a specific Tier PricingA PUT request is always an update, not a full replace. During a PUT request, new items will be added to the tier pricing which existing items in the PUT request will be updated with the new price. If a item, in the PUT request, has the Delete property set to true, then that item will be removed from the tier pricing. URL
HTTP RequestThe request body contains a single Pricing Object.
HTTP ResponseResponse Codes
Response Body
|
Panel | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete a specific Tier PricingURL
HTTP Request BodyThis request does not require a request body. HTTP ResponseOn success the HTTP response code will be 200. If you try and delete tier pricing when there currently is not any setup then an HTTP response code of 404 (not found) will be returned. |
Examples
The following examples assume the specified product numbers are valid and already exist in the main product catalog.
Example 1: Add new Tier Pricing
Initial Tier Pricing Object
Code Block | ||
---|---|---|
| ||
{ } |
PUT Request
Code Block | ||
---|---|---|
| ||
{ "900" : { "Price" : 19.99 }, "901" : { "Price" : 29.99 }, "902" : { "Price" : 39.99 } } |
Result
Code Block | ||
---|---|---|
| ||
{ "900" : { "Price" : 19.99 }, "901" : { "Price" : 29.99 }, "902" : { "Price" : 39.99 } } |
Example 2: Update Existing Tier Pricing
Initial Tier Pricing Object
Code Block | ||
---|---|---|
| ||
{ "900" : { "Price" : 19.99 }, "901" : { "Price" : 29.99 }, "902" : { "Price" : 39.99 } } |
PUT Request
Code Block | ||
---|---|---|
| ||
{ "900" : { "Price" : 9.99 }, "901" : { "Price" : 29.99, "Delete" : true } } |
Result
Code Block | ||
---|---|---|
| ||
{ "900" : { "Price" : 9.99 }, "902" : { "Price" : 39.99 } } |