Pular para o conteúdo principal
Criar bucket

Autorizações

Authorization
string
header
obrigatório

Chave da conta: secreta (sk_test_..., sk_live_...) ou restrita (rk_test_..., rk_live_..., só com as permissões escolhidas no painel). Nunca use no navegador ou no app.

Cabeçalhos

Idempotency-Key
string

Repete a mesma resposta se a requisição for reenviada com o mesmo corpo em até 24 h. Evita cobrar duas vezes em caso de falha de rede.

Maximum string length: 255

Corpo

application/json
name
string
obrigatório

Nome exibido, até 60 caracteres.

Required string length: 1 - 60
slug
string

Letras minúsculas, números e hífen (1 a 40). Sem ele, é gerado a partir do nome. Único na conta.

description
string | null

Até 280 caracteres.

Maximum string length: 280
color
string

Cor #RRGGBB. Padrão: #2D55FF.

Pattern: ^#[0-9a-fA-F]{6}$
icon
enum<string> | null

Um de: box, repeat, cart, code, users, heart, star, bolt, book, game.

Opções disponíveis:
box,
repeat,
cart,
code,
users,
heart,
star,
bolt,
book,
game

Resposta

Sucesso.

Bucket: agrupador de receitas dentro da conta. Não tem saldo próprio.

id
string
obrigatório

ID do bucket (imutável), começa com bkt_.

object
string
obrigatório
Allowed value: "bucket"
livemode
boolean
obrigatório

false no modo de teste.

name
string
obrigatório

Nome exibido. Pode mudar sem afetar integrações.

slug
string
obrigatório

Identificador legível, único na conta e imutável. Pode ser usado no lugar do id no campo bucket.

description
string | null
obrigatório
color
string
obrigatório

Cor em #RRGGBB.

icon
enum<string> | null
obrigatório

Ícone exibido no painel.

Opções disponíveis:
box,
repeat,
cart,
code,
users,
heart,
star,
bolt,
book,
game
status
enum<string>
obrigatório

archived não recebe novas transações; histórico e métricas continuam.

Opções disponíveis:
active,
archived
created_at
string
obrigatório

Data e hora em ISO 8601 (UTC).

updated_at
string
obrigatório

Data e hora em ISO 8601 (UTC).

archived_at
string | null
obrigatório

Data e hora em ISO 8601 (UTC).