Skip to Content
API ReferenceProduct Variants

Update a product variant

Update a product variant's details.

Update a product variant's details.

To update inventory directly, you may pass stock at the top level. It is treated as an alias for deliverable.data.stock when the nested value is not present.

Updates require the API key's listing ability or OAuth products:write, with matching store permissions. Send the last updated_at you read as expected_updated_at to avoid overwriting someone else's edit. If the variant has changed since then, the API returns 422 and leaves it unchanged. The compatibility PUT method accepts the same partial request as PATCH.

PATCH
/v2/products/{product}/variants/{variant}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

product*integer

The product path parameter.

variant*integer

The variant path parameter.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

  1. body
title?string
description?string
deliverable?
pricing?

These endpoints do not write a subscription trial. A trial object is refused with a 422 on pricing.trial; trial: null removes the stored trial, and leaving the key out keeps it. Set a trial through the pricing endpoint.

minimum_purchase_quantity?integer
maximum_purchase_quantity?integer|null
bulk_discount?array<>
payment_methods?array<>

Complete gateway selection for this variant. Selecting CUSTOM_PAYMENT_METHOD also requires at least one custom_payment_method_ids entry.

Items1 <= items
custom_payment_method_ids?array<>

Enabled, usable custom payment method ULIDs belonging to the selected store. Supply at least one when payment_methods includes CUSTOM_PAYMENT_METHOD. Include CUSTOM_PAYMENT_METHOD in payment_methods whenever sending nonempty IDs. On updates, omitting both selections preserves the current methods. Nonempty IDs are rejected when custom payments are not selected.

other_settings?
expected_updated_at?string

Optional optimistic-concurrency snapshot for updates. Use the variant's latest updated_at value; stale snapshots receive a 422 validation response.

Formatdate-time
stock?|

Set an existing variant's stock count while preserving delivery instructions and uploaded files. Send 0 for out of stock or null for unlimited stock. Omit deliverable for a stock-only change. TEXT variants manage stock through their serial inventory and reject this field.

Range0 <= value <= 2147483647

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://sell.app/api/v2/products/120/variants/4321' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "title": "Monthly membership plus",  "description": "One annotated operating memo and a monthly founder discussion."}'
{  "data": {    "id": 4321,    "product_id": 120,    "title": "Monthly membership plus",    "description": "One annotated operating memo and a monthly founder discussion.",    "deliverable": {      "types": [        "MANUAL"      ],      "data": {        "stock": null,        "comment": "We will send your reading-room invitation.",        "removeDuplicate": false,        "parsingMode": "COMMA"      }    },    "pricing": {      "humble": false,      "frequency": {        "value": 1,        "interval": "MONTH"      },      "type": "SINGLE_PAYMENT",      "price": {        "price": "1999",        "currency": "USD"      }    },    "minimum_purchase_quantity": 1,    "maximum_purchase_quantity": null,    "bulk_discount": [],    "payment_methods": [      "STRIPE"    ],    "other_settings": {      "quantity_increments": 0,      "discord_data_required": false,      "discord_kick_on_expire": true,      "community_servers": []    },    "order": 1,    "created_at": "2026-08-30T12:00:01.000000Z",    "updated_at": "2026-08-30T12:00:01.000000Z",    "deleted_at": null,    "product": {      "additional_information": []    },    "is_draft": false  }}