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": 123,
    "product_id": 123,
    "name": "<string>",
    "template": "<string>",
    "checkout_theme_id": 123,
    "status": "<string>",
    "branding": {
      "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>"
    },
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

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