SizeRange
Size Range provides access to the sizerange resource. This is where all size ranges are defined.
What you can do with sizerange:
URL/api/sizerange
Returns all sizerange items in the system with all available published fields.
Example of a returned stock object with all fields
{
"response": {
"Page": 1,
"PageCount": 1,
"RecordsSent": 1,
"RecordsFound": 1,
"SizeRange": [
{
"id": 835,
"Title": "Womens",
"Obsolete": false,
"Replen_Pack_Percent": 0,
"ReplenPack_Zero": 0,
"Replenishment_Method": "Non",
"Packs": [
{
"id": 1,
"Pack_Name": "Test",
"Quantities": [
{
"sizesort": 1,
"qty": 2
},
{
"sizesort": 2,
"qty": 2
},
{
"sizesort": 3,
"qty": 2
},
{
"sizesort": 4,
"qty": 2
},
{
"sizesort": 5,
"qty": 2
},
{
"sizesort": 6,
"qty": 6
}
]
}
],
"Sizes": [
{
"sizesort": 1,
"size": "6",
"EU": "",
"US": "",
"assort": 1,
"minatstore": 0,
"replenqty": 0
},
{
"sizesort": 2,
"size": "8",
"EU": "",
"US": "",
"assort": 2,
"minatstore": 0,
"replenqty": 0
},
{
"sizesort": 3,
"size": "10",
"EU": "",
"US": "",
"assort": 2,
"minatstore": 0,
"replenqty": 0
},
{
"sizesort": 4,
"size": "12",
"EU": "",
"US": "",
"assort": 2,
"minatstore": 0,
"replenqty": 0
},
{
"sizesort": 5,
"size": "14",
"EU": "",
"US": "",
"assort": 2,
"minatstore": 0,
"replenqty": 0
},
{
"sizesort": 6,
"size": "16",
"EU": "",
"US": "",
"assort": 1,
"minatstore": 0,
"replenqty": 0
}
]
}
]
}
}
Size Range Properties
| Property | Example | Description |
|---|---|---|
| id | 835 | The unique id of the size range |
| Title | "Womens" | The name of the size range |
| Obsolete | false | Inddicates that the size rangee is obsolete |
| Replen_Pack_Percent | 0 | Percentage stock level when replenishment should kick in |
| Replen_Pack_Zero | 0 | If set then replenishment will kick in when the number of sizes matched the value |
| Replenishment_Method | "Non" | Indicates the replenishment method options are: Non, 1 for 1, Min at Store, By Pack |
| Packs | [] | An array of optional packs and size quantities. Will only appear if they exist. See example for details. |
| Sizes | [] | An array of the sizes and size related data for the size range. See example for details. |
Size_Data property
Size_Data is a sub property of the Sizes array. By default this property is included but can be excluded using the exclude option or when sspecifying specific fields it should be specified or left out as required. When included EU and US size names will appear in thee Sizes array data.