Update variant availability Deprecated

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://mall-api-proxy.documentation.omnicado.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "omnicado-mall-proxy MCP server": {
    "url": "https://mall-api-proxy.documentation.omnicado.com/mcp"
  }
}

Close
PUT /products/{productId}/variants/{variantId}/availability

Replaced by /availability batch endpoint.

Set availability and status of the variant. Status can be A (available) and N (not available).

Headers

  • X-Application-Name string

Path parameters

  • productId string Required

    Partner's product identifier

  • variantId string Required

    Partner's variant identifier

Query parameters

  • client_id string Required

    Client identifier

application/json

Body Required

  • status string Required

    Status of availability

    Values are A or N.

  • in_stock integer Required

    Amount of items in stock

    Minimum value is 0, maximum value is 9999.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • X-RateLimit-Limit

      All available time windows applicable for request made, with the count of requests from smallest window as first value.

    • X-RateLimit-Remaining

      The smallest amount of requests left for the time window.

    • X-RateLimit-Reset

      Time in seconds until current window with lowest amount of requests resets

    Hide response attribute Show response attribute object
    • result object
      Hide result attributes Show result attributes object
      • code integer(int)
      • status string
PUT /products/{productId}/variants/{variantId}/availability
curl \
 --request PUT 'https://mpapi.proxy.omnicado.com/v1/products/F192621/variants/F1926211/availability?client_id=yourClientId&client_id=api_token_value' \
 --header "Content-Type: application/json" \
 --header "X-Application-Name: myApplicationName" \
 --data '{"status":"A","in_stock":23}'
Request examples
# Headers
X-Application-Name: myApplicationName

# Payload
{
  "status": "A",
  "in_stock": 23
}
Response examples (200)
# Headers
X-RateLimit-Limit: 2875, 5750;w=86400;name="partner:my_client_id|domain:other|unit:d", 2875;w=3600;name="partner:my_client_id|domain:other|unit:h", 17250;w=60;name="partner:my_client_id|domain:other|unit:m"
X-RateLimit-Remaining: 2871
X-RateLimit-Reset: 3527

# Payload
{
  "result": {
    "code": 200,
    "status": "OK"
  }
}