Skip to main content
POST
/
products
Criar produto
curl --request POST \
  --url https://api.speedsellx.io/seller/v1/products \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "image": "<string>",
  "category_id": 2,
  "language_id": 2,
  "price": 1,
  "is_free": true,
  "convert_currency": true,
  "attachment_url": "<string>",
  "shipping_cost": 1,
  "is_encapsulated": true,
  "landing_page": "<string>",
  "support_email": "jsmith@example.com",
  "author": "<string>",
  "credit_card_enabled": true,
  "pix_enabled": true,
  "billet_enabled": true,
  "has_speed_recovery": true
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "status": "<string>",
    "type": "<string>",
    "payment_type": "<string>",
    "recurrence_interval": "<string>",
    "price": 123,
    "currency": "<string>",
    "is_free": true,
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Body

application/json

Validates public input for product creation and shapes it into the payload ProductRepository::store expects. Validation lives here (the public contract); the repository runs the same creation flow as the dashboard.

name
string
required
Maximum string length: 255
description
string
required
Maximum string length: 255
image
string
required
Maximum string length: 2048
category_id
integer
required
Required range: x >= 1
language_id
integer
required
Required range: x >= 1
payment_type
enum<string>
required
Available options:
unique,
recurring
price
number
required
Required range: x >= 0
currency
enum<string>
required
Available options:
brl,
usd,
eur
type
enum<string>
required
Available options:
physical,
digital
delivery
enum<string>
required
Available options:
nothing,
memberkit,
cademi,
rocketmember,
astronmembers,
download,
external
warranty_time
enum<integer>
required
Available options:
7,
14,
21,
30
publish_status
enum<string>
required
Available options:
draft,
published
recurrence_interval
enum<string> | null
Available options:
daily,
weekly,
fortnightly,
monthly,
twomonthly,
quarterly,
semiannual,
yearly
is_free
boolean
convert_currency
boolean
attachment_url
string | null
Maximum string length: 2048
shipping_cost
number
Required range: x >= 0
is_encapsulated
boolean
landing_page
string | null
Maximum string length: 2048
support_email
string<email> | null
author
string | null
Maximum string length: 255
credit_card_enabled
boolean
pix_enabled
boolean
billet_enabled
boolean
has_speed_recovery
boolean

Response

data
ProductResource · object
required