Skip to main content
POST
/
admin
/
products
/
{id}
/
sellers
curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/sellers' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"add": ["sel_01HXYZABCDEF"], "remove": ["sel_01HXYZABCDEG"]}'
{
  "id": "prod_01HXYZABCDEF",
  "object": "product"
}
Links or unlinks sellers from the product to control selling eligibility.

Path parameters

id
string
required
The product’s ID.

Body parameters

add
string[]
IDs of sellers to link to the product.
remove
string[]
IDs of sellers to unlink from the product.

Response

id
string
The product’s ID.
object
string
Always product.
curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/sellers' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"add": ["sel_01HXYZABCDEF"], "remove": ["sel_01HXYZABCDEG"]}'
{
  "id": "prod_01HXYZABCDEF",
  "object": "product"
}