Skip to main content
PUT
/
checkouts
/
{id}
Atualizar checkout
curl --request PUT \
  --url https://api.speedsellx.io/seller/v1/checkouts/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "template": "<string>",
  "checkout_theme_id": 2,
  "status": "<string>",
  "dark_mode": true,
  "primary_color": "<string>",
  "secondary_color": "<string>",
  "header_bg_color": "<string>",
  "header_text_color": "<string>",
  "logo": "<string>",
  "top_banner": "<string>",
  "top_2_banner": "<string>",
  "sidebar_banner": "<string>",
  "footer_banner": "<string>"
}
'
{
  "data": {
    "id": 3539,
    "product_id": 3257,
    "name": "Checkout Principal",
    "template": null,
    "checkout_theme_id": 1,
    "status": "published",
    "branding": {
      "dark_mode": true,
      "primary_color": "#0B6BFF",
      "secondary_color": null,
      "header_bg_color": null,
      "header_text_color": null,
      "logo": null,
      "top_banner": null,
      "top_2_banner": null,
      "sidebar_banner": null,
      "footer_banner": null
    },
    "created_at": "2026-06-01T10:00:00-03:00",
    "updated_at": "2026-06-01T10:05:00-03:00"
  }
}
Requer o escopo checkouts:write e o header HTTP Idempotency-Key. Todos os campos são opcionais; envie só o que muda (nome, cores, banners). Veja a receita Criar produto e checkout.
{
  "data": {
    "id": 3539,
    "product_id": 3257,
    "name": "Checkout Principal",
    "template": null,
    "checkout_theme_id": 1,
    "status": "published",
    "branding": {
      "dark_mode": true,
      "primary_color": "#0B6BFF",
      "secondary_color": null,
      "header_bg_color": null,
      "header_text_color": null,
      "logo": null,
      "top_banner": null,
      "top_2_banner": null,
      "sidebar_banner": null,
      "footer_banner": null
    },
    "created_at": "2026-06-01T10:00:00-03:00",
    "updated_at": "2026-06-01T10:05:00-03:00"
  }
}

Path Parameters

id
integer
required

Body

application/json

Allowlisted checkout configuration update. Only the branding, template and presentation columns are writable; everything else is ignored. Maps to CheckoutRepository::updateConfig, which writes the columns straight through.

name
string
Maximum string length: 255
template
string
Maximum string length: 100
checkout_theme_id
integer | null
Required range: x >= 1
status
string
Maximum string length: 50
dark_mode
boolean
primary_color
string | null
Maximum string length: 30
secondary_color
string | null
Maximum string length: 30
header_bg_color
string | null
Maximum string length: 30
header_text_color
string | null
Maximum string length: 30
logo
string | null
Maximum string length: 2048
top_banner
string | null
Maximum string length: 2048
top_2_banner
string | null
Maximum string length: 2048
sidebar_banner
string | null
Maximum string length: 2048
Maximum string length: 2048

Response

data
CheckoutResource · object
required