---
title: "Update sale products"
method: PUT
path: "/sales/{saleId}/products"
tags: ["Sales"]
---

# Update sale products

`PUT /sales/{saleId}/products`

## Request

- Base URL: `https://open.shopline.io/v1`
- URL: `https://open.shopline.io/v1/sales/{saleId}/products`
- Auth: HTTP bearer

To update sale products<br>更新直播商品

## Path parameters

- `saleId` string, required

## Request body

- object
  - `products` object[], required
    - `product_id` string, required
    - `custom_numbers` string[]
    - `custom_keys` string[]
    - `variations` object[]
      - `variation_id` string, required
      - `custom_keys` string[]

## Response `200`

OK

- object
  - `items` SaleProduct[]
    - `product_id` string
    - `custom_numbers` string[]
    - `custom_keys` string[]
    - `effective_key` boolean
    - `create_time` string
    - `update_time` string
    - `variations` object[]
      - `variation_id` string
      - `custom_keys` string[]

## Other responses

- `422`: Unprocessable Entity
- `500`: Server error

---

[API](https://skmtc.dev/shoplineapp/apis/shopline-open-api.md) - [All operations](https://skmtc.dev/shoplineapp/apis/shopline-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shoplineapp/apis/shopline-open-api/revisions/d2518391b149?raw)
