Pular para o conteúdo

DocumentaçãoCobranças

Emitir boleto

Emite um boleto registrado, com Pix no mesmo documento. A baixa é automática assim que o pagamento compensa.

POST/v1/charges

Parâmetros do corpo

  • amountintegerobrigatório

    Valor em centavos.

  • methodstringobrigatório

    Use boleto.

  • customerobjectobrigatório

    Nome, CPF ou CNPJ e endereço completo.

  • boleto.due_datestringobrigatório

    Vencimento no formato AAAA-MM-DD.

  • boleto.late_feenumber

    Multa em porcentagem depois do vencimento.

  • boleto.instructionsstring

    Texto impresso no boleto, até 255 caracteres.

Requisição
curl https://api.wolfpay.com.br/v1/charges \
  -H "Authorization: Bearer $WOLFPAY_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 89000,
    "method": "boleto",
    "boleto": { "due_date": "2026-12-04", "late_fee": 2 },
    "customer": { "name": "Casa Ipê", "document": "98.765.432/0001-10" }
  }'

Resposta

201 Created
JSON
{
  "object": "charge",
  "id": "ch_b0L7tw",
  "status": "pending",
  "method": "boleto",
  "amount": 89000,
  "boleto": {
    "url": "https://pay.wolfpay.com.br/b/ch_b0L7tw.pdf",
    "barcode": "23793.38128 60082.677139 66003.996409 1 99340000089000",
    "pix_copy_paste": "00020126580014br.gov.bcb.pix0136...",
    "due_date": "2026-12-04"
  }
}