Skip to main content

api/stocksizes

Less than 1 minute

api/stocksizes

Description

Get list of available stock sizes

Request

  • Method: GET
  • Content Type: application/json
  • URL: https://api.gosweetspot.com/api/stocksizes

Headers

  • access_key : your unqiue api key provided by GSS.
  • site_id : which site you are requesting action for.

Return format

A JSON array of Stock Size Model, where each object represents a stock size available to your user.

Request example

curl --location 'https://api.gosweetspot.com/api/stocksizes' \
--header 'access_key;' \
--header 'site_id;' \
--header 'Content-Type: application/json'

Response example

[
  {
        "PackageStockId": 5694,
        "Name": "AusPost 200g Satchel",
        "Height": 2.0000,
        "Length": 35.0000,
        "Width": 27.0000,
        "Cubit": 0.001890,
        "Type": "Satchel",
        "Weight": 0.2000,
        "Sort": 0,
        "IsTrackPak": true,
        "HeightAdjustable": false,
        "Availability": "Entire_Group"
    },
    {
        "PackageStockId": 6101,
        "Name": "AusPost 3KG Satchel",
        "Height": 3.0000,
        "Length": 35.0000,
        "Width": 27.0000,
        "Cubit": 0.002835,
        "Type": "Satchel",
        "Weight": 3.0000,
        "Sort": 0,
        "IsTrackPak": true,
        "HeightAdjustable": false,
        "Availability": "Entire_Group"
    },
    {
        "PackageStockId": 6073,
        "Name": "Castle Max Pack",
        "Height": 3.0000,
        "Length": 45.0000,
        "Width": 45.0000,
        "Cubit": 0.006075,
        "Type": "Satchel",
        "Weight": 3.0000,
        "Sort": 0,
        "IsTrackPak": true,
        "HeightAdjustable": false,
        "Availability": "Entire_Group"
    },
]
Last update: