Skip to main content
POST
/
v1
/
scraped-products
/
{id}
/
publish
Publish scraped product
curl --request POST \
  --url http://localhost:3000/v1/scraped-products/{id}/publish \
  --header 'Content-Type: application/json' \
  --data '
{
  "selling_price": 4.99,
  "is_rfc_item": false,
  "category_name": "<string>",
  "subcategory_name": "<string>"
}
'
{
  "success": true,
  "sellable_product": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "selling_price": 123,
    "is_active": true,
    "scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Path Parameters

id
string<uuid>
required

Scraped product UUID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json

Publish product request

selling_price
number
required

Selling price

Required range: x > 0
Example:

4.99

is_rfc_item
boolean
default:false

Is RFC item

category_name
string

Category name

subcategory_name
string

Subcategory name

Response

Created sellable product

Publish product response

success
enum<boolean>
required
Available options:
true,
false
sellable_product
object
required