Marketplaces / Storesome / Storesome Quantity Update

Storesome Quantity Update

Purpose of this page is to specify details for Stock updates to Storesome

API Docs: https://storesome-test-seller-api.azurewebsites.net/index.html

API Call: PUT /api/product/quantity

Updates can be sent in multiples by repeating the below mapped object in the array. Storesome accepts 0 quantity updates so we don’t have to do anything specific around that. The value we have calculated is what we need to send as well - nothing specific, straightforward stock update

We should set a limit of 10 per call but it should be an easy to control value so we can improve on when given the green light by the Storesome team

Example:

[
  {
    "sku": "string",
    "quantity": 0
  }
]

Mapping:

Storesome fields WAP Mapping WAP Notes
sku Item > SKU
quantity Item Account > Quantity

Everything standard from the abstraction is in effect - end_item should send 0 quantity, the stock should control the listing status as per the general requirements, etc.

NOTE - If we are doing this the right way we should build the Storesome integration as a connector that we can easily extend / replicate / add to for multiple different MPs as we might have multiple storesome sites on the same Hemi instance the same way we have for Mirakl

Example response:

Success

[]

Error

  1. Error in the info passed or missing products - In this case we will still receive a status 200 as the call itself will be a success but it will have the products in there that have not updated

    [
      {
        "key": "dhsaidhsdas",
        "value": "NotFound"
      },
      {
        "key": "hhhhhh",
        "value": "NotFound"
      }
    ]

    Note: Key should be used for our SKU that we provided where Value should be the value we store in the error field - ONLY the error products should be put on error, everything else should be treated as success

  2. Error in the payload itself - In this case we will receive a status 400 with the relevant information in the “errors” section that we need to store on ALL products that were pushed with said call as none of them should be treated as success

    {
      "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
      "title": "One or more validation errors occurred.",
      "status": 400,
      "traceId": "00-ceff3ef7fd92d54899e8364b0a7ce325-492ec2c6e2097c43-00",
      "errors": {
        "$[1]": [
          "'{' is invalid after a value. Expected either ',', '}', or ']'. Path: $[1] | LineNumber: 5 | BytePositionInLine: 2."
        ]
      }
    }
Is this article helpful?
0 0 0