Skip to main content
POST
/
v1
/
products
Create/publish a sellable product
curl --request POST \
  --url http://localhost:3000/v1/products \
  --header 'Content-Type: application/json' \
  --data '
{
  "scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "is_rfc_item": true,
  "selling_price": 1,
  "brand": "<string>",
  "description": "<string>",
  "category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subcategory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "sellable_product": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "taxonomy_id": "<string>",
    "name": "<string>",
    "selling_price": 123,
    "is_active": true,
    "is_rfc_item": true
  }
}

Body

application/json
scraped_product_id
string<uuid>
required
name
string
required
Minimum string length: 1
is_rfc_item
boolean
required
selling_price
number
required
Required range: x > 0
brand
string | null
description
string | null
category_id
string<uuid> | null
subcategory_id
string<uuid> | null

Response

Product created

sellable_product
object
required