Skip to main content
POST
/
dev
/
v1
/
products
/
{id}
/
variants
/
{variantId}
/
serials
Create product variant serial
curl --request POST \
  --url https://api.shoppex.io/dev/v1/products/{id}/variants/{variantId}/serials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "serials": "ABC-123\nXYZ-789",
  "remove_duplicates": true
}
'
{
  "data": {
    "added_count": 2
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required
variantId
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response

data
object