Skip to main content

api/stocksizes

Less than 1 minute

api/stocksizes

Description

Delete a stock size from the system.

Request

  • Method: DELETE
  • 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

ParameterTypeDescription
IdstringA comma seperated list of stock size ids to be deleted.

Return format

A JSON array of key/value pair, with stock size id and outcome

Valid outcome states are

  • Invalid Package Stock.
  • Cannot be deleted.
  • Deleted.

Request example

curl --location --request DELETE 'http://api.gosweetspot.com/api/stocksizes?id=159872%2C159873%2C159874' \
--header 'access_key;' \
--header 'site_id;' \
--header 'Content-Type: application/json' \
--data ''

Response example

{
  "159872": "Deleted",
  "159873": "Deleted",
  "159874": "Deleted"
}
Last update: