> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nocnoc/llms.txt
> Use this file to discover all available pages before exploring further.

# Update stock and price

> Updates the stock quantity and/or price of an existing product.

<Note>Requests go to the live environment — all actions are real.</Note>

<Note>
  At least one of `available_quantity` or `price` must be provided. If `price` is provided, `currency_code` is required.
</Note>

## Authorization

<ParamField header="X-Api-Key" type="string" required>
  Your seller API key. Provided by your nocnoc account manager.
</ParamField>

## Path parameters

<ParamField path="sku" type="string" required>
  The SKU of the product to update.
</ParamField>

## Body parameters

<ParamField body="available_quantity" type="integer">
  New stock quantity. Between 0 and 9999. Required if `price` is not provided.
</ParamField>

<ParamField body="price" type="number">
  New price. Required if `available_quantity` is not provided.
</ParamField>

<ParamField body="currency_code" type="string">
  Currency code (ISO). Required if `price` is provided. Currently only `USD` is supported.
</ParamField>

## Returns

The updated product object reflecting the new stock and/or price.

<ResponseExample>
  ```json 200 theme={null}
  {
    "sku": "MY-SKU-001",
    "available_quantity": 75,
    "price": 24.99,
    "currency_code": "USD"
  }
  ```

  ```json 400 theme={null}
  {
    "code": 400,
    "message": "Invalid Request Payload.",
    "errors": [
      "available_quantity or price is required."
    ]
  }
  ```

  ```json 401 theme={null}
  {
    "code": 401,
    "message": "Unauthorized"
  }
  ```

  ```json 404 theme={null}
  {
    "code": 404,
    "message": "Sku not found"
  }
  ```
</ResponseExample>
