LogoLogo
Stric
  • Documentação
  • Autenticação
  • CONTAS
    • Registro de contas
  • Extrato
    • Extrato
    • Detalhes da transação
  • TRANSFERÊNCIAS
    • Transferência Entre Contas
    • Transferências (TED)
  • PIX
    • Chaves Pix
      • Registrar nova chave
      • Listar Chaves
      • Deletar chave
    • Validar Chave PIX
    • Transferência PIX
    • QR Code
  • BOLETOS
    • Boleto de Cobrança
Powered by GitBook
On this page
  • Novo Boleto de Cobrança
  • Listar boletos gerados

Was this helpful?

  1. BOLETOS

Boleto de Cobrança

Essa opção permite aos usuários realizar cobranças por meio de guias de pagamento.

Novo Boleto de Cobrança

POST https://dev.stric.com.br/billets

Endpoint para registro de boletos

Headers

Name
Type
Description

authorization*

String

Token de client

account

String (uuid)

Request Body

Name
Type
Description

amount*

Number

Valor

dueDate*

Date

Data de vencimento

customer.{name}*

String

Nome

customer.{document}*

String

Documento CPF/CNPJ

customer.{zipCode}*

String

Cep

customer.{State}*

String

Estado - (2 dígitos)

customer*

Object

Objeto do customer (cliente pagador/sacado)

{
    "type": "CHARGE",
    "ourNumber": "000000000169",
    "documentNumber": "000000000169",
    "amount": 1,
    "dueAt": "2022-06-15T03:00:00.000Z",
    "barCode": "65591901700000001000000002933500000000016900",
    "digitableLine": "65590.00002 02933.500007 00000.169003 1 90170000000100",
    "customerName": "Customer Name",
    "customerDocument": "Customer Document",
    "customerZipCode": "00000000",
    "customerState": "XX",
    "url": "https://sandboxboletos.fitbank.com.br/boleto/2022-06-15/qyhu0mpf.pdf",
    "id": "a44be28c-7df2-4c6b-be39-b3a9b460e8fb",
    "date": "2022-06-15T15:47:17.499Z"
}
{
    "statusCode": 400,
    "error": "Bad Request",
    "message": "Validation failed",
    "validation": {
        "body": {
            "source": "body",
            "keys": [
                "amount"
            ],
            "message": "\"amount\" must be a positive number"
        }
    }
}
{
    "statusCode": 400,
    "message": "ISE0029 - Não é possivel gerar um boleto com data de vencimento inferior a atual 15/06/2022.",
    "friend": "ISE0029 - Não é possivel gerar um boleto com data de vencimento inferior a atual 15/06/2022."
}

Listar boletos gerados

GET https://dev.stric.com.br/billets

Endpoint para listar todos os boletos gerados

Query Parameters

Name
Type
Description

page*

Number

start*

Date

end*

Date

Headers

Name
Type
Description

authorization*

String

Token de client

account*

String (uuid)

{
    "current_page": 0,
    "total_pages": 0,
    "total_items": 1,
    "total_items_page": 1,
    "items": [
        {
            "id": "a44be28c-7df2-4c6b-be39-b3a9b460e8fb",
            "type": "CHARGE",
            "ourNumber": "000000000169",
            "documentNumber": "000000000169",
            "amount": 1,
            "dueAt": "2022-06-15T03:00:00.000Z",
            "barCode": "65591901700000001000000002933500000000016900",
            "digitableLine": "65590.00002 02933.500007 00000.169003 1 90170000000100",
            "paidAt": null,
            "creditAt": null,
            "customerName": "customerName",
            "customerDocument": "customerDocument",
            "customerZipCode": "00000000",
            "customerState": "XX",
            "url": "https://sandboxboletos.fitbank.com.br/boleto/2022-06-15/qyhu0mpf.pdf",
            "date": "2022-06-15T15:47:17.499Z"
        }
    ]
}
PreviousQR Code

Last updated 2 years ago

Was this helpful?