Skip to main content
PATCH
/
products
/
{uniqid}
/
variants
/
order
Reorder variants
curl --request PATCH \
  --url https://api.shoppex.io/dev/v1/products/{uniqid}/variants/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "variantIds": [
    "<string>"
  ]
}
'
{
  "data": {
    "success": true
  }
}

Authorizations

Authorization
string
header
required

Use your API key with the Bearer scheme. Get your key from Dashboard → Settings → API Keys. Format: Authorization: Bearer shx_...

Path Parameters

uniqid
string
required

Product uniqid

Body

application/json
variantIds
string[]
required

Array of variant uniqids in desired order

Required array length: 1 - 100 elements

Response

Default Response

data
object