Skip to main content
POST
/
upsells
Criar upsell
curl --request POST \
  --url https://api.speedsellx.io/seller/v1/upsells \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_id": 2,
  "name": "<string>",
  "status": "<string>",
  "accept_text": "<string>",
  "refuse_text": "<string>",
  "accept_page": "<string>",
  "refuse_page": "<string>",
  "accept_redirect": "<string>",
  "refuse_redirect": "<string>"
}
'
{
  "data": {
    "id": 12,
    "product_id": 3256,
    "funnel_id": 4,
    "name": "Oferta complementar",
    "status": "active",
    "accept_text": "Sim, quero!",
    "refuse_text": "Não, obrigado",
    "accept_page": null,
    "refuse_page": null,
    "accept_redirect": null,
    "refuse_redirect": null,
    "created_at": "2026-06-01T10:00:00-03:00",
    "updated_at": "2026-06-01T10:00:00-03:00"
  }
}
Requer o escopo upsells:write e o header HTTP Idempotency-Key.
{
  "data": {
    "id": 12,
    "product_id": 3256,
    "funnel_id": 4,
    "name": "Oferta complementar",
    "status": "active",
    "accept_text": "Sim, quero!",
    "refuse_text": "Não, obrigado",
    "accept_page": null,
    "refuse_page": null,
    "accept_redirect": null,
    "refuse_redirect": null,
    "created_at": "2026-06-01T10:00:00-03:00",
    "updated_at": "2026-06-01T10:00:00-03:00"
  }
}

Body

application/json
product_id
integer
required
Required range: x >= 1
name
string
required
Maximum string length: 255
status
string | null
Maximum string length: 50
accept_text
string | null
Maximum string length: 255
refuse_text
string | null
Maximum string length: 255
accept_page
string | null
Maximum string length: 255
refuse_page
string | null
Maximum string length: 255
accept_redirect
string | null
Maximum string length: 2048
refuse_redirect
string | null
Maximum string length: 2048

Response

data
UpsellResource · object
required