Skip to Content
API ReferenceProducts

Move a product

Change where a normal product appears in your store's product order.

Move a normal product to a new position in your store's product order. Read the product first and send its order as expected_position, so the move is refused if someone else reordered the products in the meantime.

PUT
/v2/products/{product}/position

Move a normal product to a position in your store's product order, shifting the products in between by one. Positions run from 1 to the number of normal products, drafts included; a product's position is its order. Gaps in the stored order are closed first. Requires the listing API-key ability and the listing permission in your team role. Safe to repeat: moving a product to the position it already has changes nothing. Send expected_position with the position you last read to refuse the move when someone else moved the product in the meantime. A position past the end returns 422 on position with the allowed range, a product that is no longer at expected_position returns 422 on expected_position with its current position, and 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.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

product*integer

The product 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

application/json
  1. body
position*integer

The new position, where 1 is first. At most the number of normal products in the store, drafts included.

Range1 <= value
expected_position?|

The position you last read for this product (its order). The move is refused when the product is no longer there.

Range1 <= value

Response Body

The moved product. order is its new position.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://sell.app/api/v2/products/0/position' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "position": 1,  "expected_position": 3}'
{  "data": {    "id": 1,    "title": "Project Launch Kit",    "slug": "project-launch-kit",    "description": "<p>A practical guide to planning, testing and launching your project.</p>",    "images": [      {        "path": "store/1/listings/NM6TBKIMzpFJq1MKTV24oMJ1W4UrKCo7NS98nt4K.png",        "metadata": {          "size": 39289,          "filename": "NM6TBKIMzpFJq1MKTV24oMJ1W4UrKCo7NS98nt4K",          "extension": "png",          "mime_type": "image/png"        }      },      {        "path": "store/1/listings/ov6XMb68tRr80zl7sqfN1or7xfqqH5WbZygDEQ8X.png",        "metadata": {          "size": 422373,          "filename": "ov6XMb68tRr80zl7sqfN1or7xfqqH5WbZygDEQ8X",          "extension": "png",          "mime_type": "image/png"        }      }    ],    "order": 1,    "visibility": "PUBLIC",    "delivery_text": "Thanks for your purchase. Your download is ready.",    "additional_information": [      {        "required": true,        "key": "3aecffd000e00e2211e94558007ffc37",        "type": "checkbox",        "label": "Do you agree to the purchase terms?"      }    ],    "other_settings": {      "faq": [        {          "answer": "Yes. Adapt the included templates to your project.",          "question": "Can I use these templates for my own project?"        }      ],      "video_url": "https://example.com/launch-lab/product-tour",      "redirect_url": "https://example.com/post-launch?customer_email=[customer_email]&order_id=[order_id]",      "product_title": "Project Launch Kit",      "product_description": "Plan, test, and launch your next project."    },    "deleted_at": null,    "created_at": "2024-01-09T22:56:49.000000Z",    "updated_at": "2026-07-03T09:12:00.000000Z",    "store_id": 1,    "category_id": null,    "section_id": null,    "section_order": null,    "is_discoverable": true,    "variants": [      {        "id": 1,        "title": "Default"      }    ],    "url": "https://launch-lab.sell.app/product/project-launch-kit"  }}