Criar um order bump
curl --request POST \
--url https://api.ephra.io/v1/order-bumps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offerId": 4821,
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"title": "Leve também o Pack de Criativos",
"callToAction": "Sim, quero o pack por R$ 97",
"description": "80 criativos prontos para anúncio, editáveis no Canva.",
"backgroundColor": "#F4F7FB",
"checkboxColor": "#1B9E4B"
}
'import requests
url = "https://api.ephra.io/v1/order-bumps"
payload = {
"offerId": 4821,
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"title": "Leve também o Pack de Criativos",
"callToAction": "Sim, quero o pack por R$ 97",
"description": "80 criativos prontos para anúncio, editáveis no Canva.",
"backgroundColor": "#F4F7FB",
"checkboxColor": "#1B9E4B"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
offerId: 4821,
productId: 'clx8a2h4k0001qz0a1b2c3d4e',
title: 'Leve também o Pack de Criativos',
callToAction: 'Sim, quero o pack por R$ 97',
description: '80 criativos prontos para anúncio, editáveis no Canva.',
backgroundColor: '#F4F7FB',
checkboxColor: '#1B9E4B'
})
};
fetch('https://api.ephra.io/v1/order-bumps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ephra.io/v1/order-bumps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'offerId' => 4821,
'productId' => 'clx8a2h4k0001qz0a1b2c3d4e',
'title' => 'Leve também o Pack de Criativos',
'callToAction' => 'Sim, quero o pack por R$ 97',
'description' => '80 criativos prontos para anúncio, editáveis no Canva.',
'backgroundColor' => '#F4F7FB',
'checkboxColor' => '#1B9E4B'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ephra.io/v1/order-bumps"
payload := strings.NewReader("{\n \"offerId\": 4821,\n \"productId\": \"clx8a2h4k0001qz0a1b2c3d4e\",\n \"title\": \"Leve também o Pack de Criativos\",\n \"callToAction\": \"Sim, quero o pack por R$ 97\",\n \"description\": \"80 criativos prontos para anúncio, editáveis no Canva.\",\n \"backgroundColor\": \"#F4F7FB\",\n \"checkboxColor\": \"#1B9E4B\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ephra.io/v1/order-bumps")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offerId\": 4821,\n \"productId\": \"clx8a2h4k0001qz0a1b2c3d4e\",\n \"title\": \"Leve também o Pack de Criativos\",\n \"callToAction\": \"Sim, quero o pack por R$ 97\",\n \"description\": \"80 criativos prontos para anúncio, editáveis no Canva.\",\n \"backgroundColor\": \"#F4F7FB\",\n \"checkboxColor\": \"#1B9E4B\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/order-bumps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"offerId\": 4821,\n \"productId\": \"clx8a2h4k0001qz0a1b2c3d4e\",\n \"title\": \"Leve também o Pack de Criativos\",\n \"callToAction\": \"Sim, quero o pack por R$ 97\",\n \"description\": \"80 criativos prontos para anúncio, editáveis no Canva.\",\n \"backgroundColor\": \"#F4F7FB\",\n \"checkboxColor\": \"#1B9E4B\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "clx9c1m5t0002qz0a7h8j9k0l",
"offerId": 4821,
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"checkoutId": null,
"title": "Leve também o Pack de Criativos",
"description": "80 criativos prontos para anúncio, editáveis no Canva.",
"callToAction": "Sim, quero o pack por R$ 97",
"displayImage": "https://images.ephra.io/order-bumps/pack-criativos.jpg",
"showProductImage": false,
"backgroundColor": "#F4F7FB",
"textColor": "#0B1B2B",
"borderColor": "#1B9E4B",
"checkboxColor": "#1B9E4B",
"exibitionOrder": 1,
"active": true,
"createdAt": "2026-09-03T10:20:00.000Z",
"updatedAt": "2026-09-09T17:05:00.000Z"
}
}{
"success": false,
"message": "Não foi possível concluir: uma regra de negócio recusou os dados enviados."
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "Recurso não encontrado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Catálogo
Criar um order bump
Pendura uma oferta adicional dentro do checkout de um produto, para subir o ticket médio da venda principal. A oferta vendida e o produto anfitrião precisam ser da empresa autenticada; qualquer um dos dois de fora responde 404.
POST
/
v1
/
order-bumps
Criar um order bump
curl --request POST \
--url https://api.ephra.io/v1/order-bumps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offerId": 4821,
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"title": "Leve também o Pack de Criativos",
"callToAction": "Sim, quero o pack por R$ 97",
"description": "80 criativos prontos para anúncio, editáveis no Canva.",
"backgroundColor": "#F4F7FB",
"checkboxColor": "#1B9E4B"
}
'import requests
url = "https://api.ephra.io/v1/order-bumps"
payload = {
"offerId": 4821,
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"title": "Leve também o Pack de Criativos",
"callToAction": "Sim, quero o pack por R$ 97",
"description": "80 criativos prontos para anúncio, editáveis no Canva.",
"backgroundColor": "#F4F7FB",
"checkboxColor": "#1B9E4B"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
offerId: 4821,
productId: 'clx8a2h4k0001qz0a1b2c3d4e',
title: 'Leve também o Pack de Criativos',
callToAction: 'Sim, quero o pack por R$ 97',
description: '80 criativos prontos para anúncio, editáveis no Canva.',
backgroundColor: '#F4F7FB',
checkboxColor: '#1B9E4B'
})
};
fetch('https://api.ephra.io/v1/order-bumps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ephra.io/v1/order-bumps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'offerId' => 4821,
'productId' => 'clx8a2h4k0001qz0a1b2c3d4e',
'title' => 'Leve também o Pack de Criativos',
'callToAction' => 'Sim, quero o pack por R$ 97',
'description' => '80 criativos prontos para anúncio, editáveis no Canva.',
'backgroundColor' => '#F4F7FB',
'checkboxColor' => '#1B9E4B'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ephra.io/v1/order-bumps"
payload := strings.NewReader("{\n \"offerId\": 4821,\n \"productId\": \"clx8a2h4k0001qz0a1b2c3d4e\",\n \"title\": \"Leve também o Pack de Criativos\",\n \"callToAction\": \"Sim, quero o pack por R$ 97\",\n \"description\": \"80 criativos prontos para anúncio, editáveis no Canva.\",\n \"backgroundColor\": \"#F4F7FB\",\n \"checkboxColor\": \"#1B9E4B\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ephra.io/v1/order-bumps")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offerId\": 4821,\n \"productId\": \"clx8a2h4k0001qz0a1b2c3d4e\",\n \"title\": \"Leve também o Pack de Criativos\",\n \"callToAction\": \"Sim, quero o pack por R$ 97\",\n \"description\": \"80 criativos prontos para anúncio, editáveis no Canva.\",\n \"backgroundColor\": \"#F4F7FB\",\n \"checkboxColor\": \"#1B9E4B\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/order-bumps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"offerId\": 4821,\n \"productId\": \"clx8a2h4k0001qz0a1b2c3d4e\",\n \"title\": \"Leve também o Pack de Criativos\",\n \"callToAction\": \"Sim, quero o pack por R$ 97\",\n \"description\": \"80 criativos prontos para anúncio, editáveis no Canva.\",\n \"backgroundColor\": \"#F4F7FB\",\n \"checkboxColor\": \"#1B9E4B\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "clx9c1m5t0002qz0a7h8j9k0l",
"offerId": 4821,
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"checkoutId": null,
"title": "Leve também o Pack de Criativos",
"description": "80 criativos prontos para anúncio, editáveis no Canva.",
"callToAction": "Sim, quero o pack por R$ 97",
"displayImage": "https://images.ephra.io/order-bumps/pack-criativos.jpg",
"showProductImage": false,
"backgroundColor": "#F4F7FB",
"textColor": "#0B1B2B",
"borderColor": "#1B9E4B",
"checkboxColor": "#1B9E4B",
"exibitionOrder": 1,
"active": true,
"createdAt": "2026-09-03T10:20:00.000Z",
"updatedAt": "2026-09-09T17:05:00.000Z"
}
}{
"success": false,
"message": "Não foi possível concluir: uma regra de negócio recusou os dados enviados."
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "Recurso não encontrado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Oferta que o comprador leva junto ao aceitar o bump.
Required range:
x > 0Produto em cujo checkout a caixa aparece.
Minimum string length:
1Título exibido na caixa do order bump.
Required string length:
1 - 100Frase do botão ou da caixa de seleção.
Required string length:
1 - 50Texto de apoio exibido abaixo do título.
Maximum string length:
500URL da imagem exibida na caixa.
Usa a imagem do produto da oferta.
Cor de fundo da caixa.
Pattern:
^#[0-9a-fA-F]{6}$Cor do texto da caixa.
Pattern:
^#[0-9a-fA-F]{6}$Cor da borda da caixa.
Pattern:
^#[0-9a-fA-F]{6}$Cor da caixa de seleção.
Pattern:
^#[0-9a-fA-F]{6}$Posição da caixa entre os bumps.
Required range:
x > 0Exibe a caixa no checkout.
⌘I
