Reorder variants
Set the order buyers see a product's published variants in.
Send every published variant of a normal product in the order buyers should see them. List the variants first, so your list matches what the product has now.
Set the order buyers see a normal product's published variants in, first to last. Send every published variant ID exactly once; draft variants are not part of the order and are refused. The response lists the product's published variants in their new order, without pagination. Requires the listing API-key ability and the listing permission in your team role. Safe to repeat: the same list gives the same order. A list that leaves out a published variant, or names a draft or a variant of another product, returns 422 on variant_ids; read the variants again and send the full list. An ID sent twice returns 422 on variant_ids.{i}. A listing that is not a normal product returns 422 on product. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
product*integerThe product path parameter.
X-STORE?stringStore 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.
application/json- body
variant_ids*array<>Every published variant ID of the product, first to last.
1 <= items <= 500The product's published variants in their new order.
application/json- response
data*array<>curl -X PUT 'https://sell.app/api/v2/products/1/variants/order' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "variant_ids": [ 2, 1 ]}'{ "data": [ { "id": 2, "product_id": 1, "title": "Professional Edition", "description": "Includes templates, examples and email support.", "deliverable": { "data": { "removeDuplicate": false, "parsingMode": "COMMA", "stock": 3, "comment": "Thanks for the purchase! I'll send you a contract by email. Make sure to sign it with your blood.", "serials": [ "1", "2", "3" ] }, "types": [ "TEXT", "MANUAL" ] }, "pricing": { "humble": true, "frequency": { "value": 1, "interval": "MONTH" }, "type": "SINGLE_PAYMENT", "price": { "price": "1999", "currency": "USD" } }, "minimum_purchase_quantity": 1, "maximum_purchase_quantity": 3, "bulk_discount": [ { "discount_percentage": 10, "minimum_purchase_amount": 10 } ], "payment_methods": [ "BTC", "STRIPE" ], "other_settings": { "quantity_increments": 2, "discord_data_required": false }, "order": 1, "created_at": "2024-01-10T18:47:22.000000Z", "updated_at": "2026-07-03T09:12:00.000000Z", "deleted_at": null, "product": { "additional_information": [ { "required": true, "key": "5ebae238c0afae7f4a4b96b30ff6f34c", "type": "CHECKBOX", "label": "I agree to the purchase terms" } ] }, "is_draft": false }, { "id": 1, "product_id": 1, "title": "Default", "description": "Includes the templates and examples.", "deliverable": { "data": { "removeDuplicate": false, "parsingMode": "COMMA", "stock": 3, "comment": "Thanks for the purchase! I'll send you a contract by email. Make sure to sign it with your blood.", "serials": [ "1", "2", "3" ] }, "types": [ "TEXT", "MANUAL" ] }, "pricing": { "humble": true, "frequency": { "value": 1, "interval": "MONTH" }, "type": "SINGLE_PAYMENT", "price": { "price": "1999", "currency": "USD" } }, "minimum_purchase_quantity": 1, "maximum_purchase_quantity": 3, "bulk_discount": [ { "discount_percentage": 10, "minimum_purchase_amount": 10 } ], "payment_methods": [ "BTC", "STRIPE" ], "other_settings": { "quantity_increments": 2, "discord_data_required": false }, "order": 2, "created_at": "2024-01-10T18:47:22.000000Z", "updated_at": "2026-07-03T09:12:00.000000Z", "deleted_at": null, "product": { "additional_information": [ { "required": true, "key": "5ebae238c0afae7f4a4b96b30ff6f34c", "type": "CHECKBOX", "label": "I agree to the purchase terms" } ] }, "is_draft": false } ]}