Skip to main content

api/stocksizes

Less than 1 minute

api/stocksizes

Description

This method is used to create new stock sizes or update an existing stock size.

Request

  • Method: POST
  • 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.

Parameters

A list of Stock Size Model should be sent in JSON format.

Return format

A JSON object of Stock Size Model.

Request example

curl --location --request POST 'https://api.gosweetspot.com/api/stocksizes' \
--header 'access_key;' \
--header 'site_id;' \
--header 'Content-Type: application/json' \
--data '{
    "Name": "Test",
    "Height": 11,
    "Length": 12,
    "Width": 13,
    "Type": "BOX",
    "Weight": 5.0,
    "Sort": 1,
    "Availability": "This_Site_Only"
}'

Response example

{
  "PackageStockId": 159880,
  "Name": "Test",
  "Height": 11,
  "Length": 12,
  "Width": 13,
  "Cubic": 0.002,
  "Type": "BOX",
  "Weight": 5,
  "Sort": 1,
  "IsTrackPak": false,
  "HeightAdjustable": true,
  "Availability": "This_Site_Only"
}
Last update: