---
title: "Bulk upsert of the product catalog"
method: PUT
path: "/commerce/products"
tags: ["Commerce"]
---

# Bulk upsert of the product catalog

`PUT /commerce/products`

## Request

- Base URL: `https://sending.dev/api/v1`
- URL: `https://sending.dev/api/v1/commerce/products`
- Auth: HTTP bearer

Idempotent on `externalId` (source `api`), max 500 per call. Required scope: `commerce:write`. Requires a plan with the `ecommerce` feature.

## Request body

- object
  - `products` CommerceProductInput[], required
    - `externalId` string, required
    - `title` string, required
    - `description` string
    - `imageUrl` string
    - `price` number
    - `currency` string
    - `url` string

## Response `200`

Products upserted.

- CommerceUpsertResult
  - `upserted` integer, required

## Other responses

- `401`: Missing or invalid token.
- `402`: Plan quota exceeded.
- `403`: Insufficient scope.
- `422`: Invalid input.

---

[API](https://skmtc.dev/sending/apis/sending-dev-api.md) · [All operations](https://skmtc.dev/sending/apis/sending-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sending/apis/sending-dev-api/revisions/9fe78d2918a1?raw)
