curl -u "pb_xxx:sk_xxx" -X PUT \
-H "Content-Type: application/json" \
-d '{
"type": "iframe",
"iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" }
}' \
"https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
curl -u "pb_xxx:sk_xxx" -X PUT \
-H "Content-Type: application/json" \
-d '{ "is_active": false }' \
"https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
{
"success": true,
"message": "Presell atualizado com sucesso",
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-a9f8e7d6c5b4",
"type": "iframe",
"title": "Oferta parceira",
"description": null,
"display_order": 0,
"iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" },
"is_active": true,
"created_at": "2026-07-06T12:00:00.000Z",
"updated_at": "2026-07-06T12:10:00.000Z"
}
}
Presells
Atualizar presell
Atualiza um presell da ação, incluindo troca de tipo
PUT
/
v1
/
raffles
/
{id}
/
presells
/
{presell_id}
curl -u "pb_xxx:sk_xxx" -X PUT \
-H "Content-Type: application/json" \
-d '{
"type": "iframe",
"iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" }
}' \
"https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
curl -u "pb_xxx:sk_xxx" -X PUT \
-H "Content-Type: application/json" \
-d '{ "is_active": false }' \
"https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
{
"success": true,
"message": "Presell atualizado com sucesso",
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-a9f8e7d6c5b4",
"type": "iframe",
"title": "Oferta parceira",
"description": null,
"display_order": 0,
"iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" },
"is_active": true,
"created_at": "2026-07-06T12:00:00.000Z",
"updated_at": "2026-07-06T12:10:00.000Z"
}
}
Atualização parcial: envie apenas os campos que deseja alterar. Aceita os mesmos campos do criar presell, todos opcionais.
Regras de tipo e configuração (idênticas aos upsells):
- Os objetos
custom/iframesão substituição total — envie o objeto completo. - Trocar o
typeexige a configuração do novo tipo na mesma requisição. Mudar parasimpleexige o objetosimple: { button_text, button_url }. - Objeto de configuração que não corresponde ao tipo retorna
PRESELL_CONFIG_TYPE_MISMATCH.
Path params
string
required
ID da ação (UUID).
string
required
ID do presell (UUID).
Erros
| HTTP | Código | Quando ocorre |
|---|---|---|
404 | PRESELL_NOT_FOUND | Presell inexistente, de outra ação ou de outra conta |
400 | NO_FIELDS_TO_UPDATE | Nenhum campo enviado |
400 | demais códigos PRESELL_* | Mesmas regras de validação do criar |
curl -u "pb_xxx:sk_xxx" -X PUT \
-H "Content-Type: application/json" \
-d '{
"type": "iframe",
"iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" }
}' \
"https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
curl -u "pb_xxx:sk_xxx" -X PUT \
-H "Content-Type: application/json" \
-d '{ "is_active": false }' \
"https://api.sortify.com.br/v1/raffles/{id}/presells/{presell_id}"
{
"success": true,
"message": "Presell atualizado com sucesso",
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-a9f8e7d6c5b4",
"type": "iframe",
"title": "Oferta parceira",
"description": null,
"display_order": 0,
"iframe": { "type": "fullscreen", "url": "https://presell.cliente.digital/" },
"is_active": true,
"created_at": "2026-07-06T12:00:00.000Z",
"updated_at": "2026-07-06T12:10:00.000Z"
}
}