Batch update of product/variant availability

POST /availability

There is no need to update the whole product/variant data structure if only availability or status have changed.

Maximum size of batch is 1000 items.

Headers

  • X-Application-Name string

Query parameters

  • client_id string Required

    Client identifier

Body Required

  • id string
  • status string

    Values are A or N.

  • in_stock integer

Responses

  • 204

    The server successfully processed the request and is not returning any content.

POST /availability
curl \
 -X POST https://mpapi.proxy.omnicado.com/v1/availability?client_id=yourClientId&client_id=api_token_value \
 -H "Content-Type: application/json" \
 -H "X-Application-Name: myApplicationName" \
 -d '[{"id":"233-45s","status":"A","in_stock":23}]'
Request example
# Headers
X-Application-Name: myApplicationName

# Payload
[
  {
    "id": "233-45s",
    "status": "A",
    "in_stock": 23
  }
]
Request examples
# Headers
X-Application-Name: myApplicationName

# Payload
[
  {
    "id": "233-45s",
    "status": "A",
    "in_stock": 23
  }
]