# Update product

> Updates an existing product

`PATCH https://api.light.inc/v1/products/{productId}`

## Note

An ARCHIVED product cannot be updated ( PRODUCT_CANNOT_BE_MODIFIED ), and there is no unarchive endpoint , so archiving is one-way through this API. null clears defaultAvataxCode , defaultTaxId and defaultLedgerAccountId ; name , pricingType , billingRecurrence and pricings cannot be cleared, and pricings replaces the whole list when present.

## Authorization

- API key
- Bearer token

See https://light.inc/docs/getting-started/authentication.

## Path parameters

- `productId` (string, uuid, required)

## Header parameters

- `X-Idempotency-Key` (string)

## Request body

`application/json;charset=UTF-8`

- `customProperties.valueIds` — Catalog value ids for this group. Required; send `[]` (with an empty `inlineValues`) to clear the group. `SINGLE_SELECT` and `MULTI_SELECT` groups accept nothing else. See [Custom properties on writes](/docs/getting-started/pagination-filtering-errors#custom-properties-on-writes).
- `customProperties.inlineValues` — Literal values for `TEXT`, `NUMERIC`, `BOOLEAN` and `DATE` groups, as strings (`yyyy-MM-dd` for dates). Rejected on select groups with `CUSTOM_PROPERTY_VALUE_TYPE_MISMATCH`. See [Custom properties on writes](/docs/getting-started/pagination-filtering-errors#custom-properties-on-writes).

```json
{
  "name": "string",
  "pricingType": "FIXED",
  "billingRecurrence": "ONE_TIME",
  "pricings": [
    {
      "currency": "USD",
      "amount": 100000
    }
  ],
  "customProperties": [
    {
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "valueIds": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "inlineValues": [
        "string"
      ]
    }
  ],
  "defaultAvataxCode": "string",
  "defaultTaxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "defaultLedgerAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
```

Values above are generated from the schema: the shapes and types are real, the values are placeholders, and fields that exclude each other are all shown. Do not send it unchanged.

## Response


```json
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "string",
  "pricingType": "FIXED",
  "billingRecurrence": "ONE_TIME",
  "pricings": [
    {
      "currency": "USD",
      "amount": 100000
    }
  ],
  "state": "ACTIVE",
  "defaultTaxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "defaultAvataxCode": "string",
  "defaultLedgerAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalSource": {
    "name": "CHARGEBEE",
    "externalId": "string"
  },
  "createdAt": "2026-01-15T09:30:00Z",
  "updatedAt": "2026-01-15T09:30:00Z",
  "customProperties": [
    {
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "groupInternalName": "string",
      "values": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "groupInternalName": "string",
          "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "internalName": "string",
          "label": "string",
          "context": "string",
          "createdAt": "2026-01-15T09:30:00Z",
          "updatedAt": "2026-01-15T09:30:00Z"
        }
      ]
    }
  ]
}
```

Values above are generated from the schema: the shapes and types are real, the values are placeholders.

## Code

```bash
# Set LIGHT_IDEMPOTENCY_KEY to a key saved for this operation; reuse it on retries.
curl -X PATCH "https://api.light.inc/v1/products/3c90c3cc-0d44-4b50-8888-8dd25736052a" \
  -H "Authorization: Basic YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Idempotency-Key: ${LIGHT_IDEMPOTENCY_KEY:?Set a saved key for this operation}" \
  -d '{
  "name": "string",
  "pricingType": "FIXED",
  "billingRecurrence": "ONE_TIME",
  "pricings": [
    {
      "currency": "USD",
      "amount": 100000
    }
  ],
  "customProperties": [
    {
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "valueIds": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "inlineValues": [
        "string"
      ]
    }
  ],
  "defaultAvataxCode": "string",
  "defaultTaxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "defaultLedgerAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
```

---

Full page: https://light.inc/docs/api-reference/v1--products/update-product · Index: https://light.inc/docs/llms.txt
