Get part details for a single part.
Endpoint:
GET v1/pricebreak/{id}?zipCode={zipCode}&warehouseId={warehouseId}
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Part Id |
string |
Required |
zipCode |
If provided, the API will return price break information for the nearest warehouse |
string |
None. |
warehouseId |
If provided, the API will return price break information for the given warehouse |
string |
None. |
Body Parameters
None.
Response Information
Collection of PartPriceBreakName | Description | Type | Additional information |
---|---|---|---|
PartId | string |
None. |
|
QuantityFrom | integer |
None. |
|
QuantityTo | integer |
None. |
|
Price | decimal number |
None. |
Response Examples
application/json, text/json :
[ { "<PartId>k__BackingField": "sample string 1", "<QuantityFrom>k__BackingField": 2, "<QuantityTo>k__BackingField": 3, "<Price>k__BackingField": 4.0 }, { "<PartId>k__BackingField": "sample string 1", "<QuantityFrom>k__BackingField": 2, "<QuantityTo>k__BackingField": 3, "<Price>k__BackingField": 4.0 } ]
text/javascript :
[{"<PartId>k__BackingField":"sample string 1","<QuantityFrom>k__BackingField":2,"<QuantityTo>k__BackingField":3,"<Price>k__BackingField":4.0},{"<PartId>k__BackingField":"sample string 1","<QuantityFrom>k__BackingField":2,"<QuantityTo>k__BackingField":3,"<Price>k__BackingField":4.0}]
application/xml, text/xml :
<ArrayOfPartPriceBreak xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sunlight.Library.Models"> <PartPriceBreak> <_x003C_PartId_x003E_k__BackingField>sample string 1</_x003C_PartId_x003E_k__BackingField> <_x003C_Price_x003E_k__BackingField>4</_x003C_Price_x003E_k__BackingField> <_x003C_QuantityFrom_x003E_k__BackingField>2</_x003C_QuantityFrom_x003E_k__BackingField> <_x003C_QuantityTo_x003E_k__BackingField>3</_x003C_QuantityTo_x003E_k__BackingField> </PartPriceBreak> <PartPriceBreak> <_x003C_PartId_x003E_k__BackingField>sample string 1</_x003C_PartId_x003E_k__BackingField> <_x003C_Price_x003E_k__BackingField>4</_x003C_Price_x003E_k__BackingField> <_x003C_QuantityFrom_x003E_k__BackingField>2</_x003C_QuantityFrom_x003E_k__BackingField> <_x003C_QuantityTo_x003E_k__BackingField>3</_x003C_QuantityTo_x003E_k__BackingField> </PartPriceBreak> </ArrayOfPartPriceBreak>
text/csv :
PartId,QuantityFrom,QuantityTo,Price sample string 1,2,3,4 sample string 1,2,3,4
text/tsv :
PartId QuantityFrom QuantityTo Price sample string 1 2 3 4 sample string 1 2 3 4