- Ativação
- Auth
- Conta
- Subconta
- Cobrança
- Pix
- Transações
/gateway/bolepix
Prod Env
https://api.contadigital.preambulobank.com.br
Prod Env
https://api.contadigital.preambulobank.com.br
POST
https://api.contadigital.preambulobank.com.br
Requisição
Parâmetros Header
Authorization
string
requerido
Exemplo:
Bearer {Token JWT}
Parâmetros Bodyapplication/json
amount
number
requerido
dueDate
string <date>
requerido
additionalInformation
string
opcional
payer
object
requerido
name
string
requerido
document
string
requerido
email
string
requerido
address
object
requerido
discount
object | null
opcional
amount
number
requerido
type
enum<string>
requerido
Valores permitidos:
fixedpercentual
date
string <date>
requerido
rebate
object | null
opcional
amount
integer
requerido
type
enum<string>
requerido
Valores permitidos:
fixedpercentual
fine
object | null
opcional
amount
number
requerido
type
enum<string>
requerido
Valores permitidos:
fixedpercentual
date
string <date>
requerido
interest
object | null
opcional
amount
number
requerido
type
enum<string>
requerido
Valores permitidos:
daily_fixeddaily_percentual
date
string <date>
requerido
Exemplo
{
"amount": 10,
"dueDate": "2024-12-05",
"additionalInformation": "Informações adicionais",
"payer": {
"name": "João da Silva",
"document": "12345678910",
"email": "joaosilva@email.com",
"address": {
"street": "Rua Jardins",
"number": "10",
"neighborhood": "Centro",
"city": "Porto Alegre",
"state": "RS",
"postalCode": "999999999",
"extra": "APTO 101"
}
},
"discount": {
"amount": 1.5,
"type": "fixed",
"date": "2024-12-04"
},
"fine": null,
"interest": null,
"rebate": null
}
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.contadigital.preambulobank.com.br/gateway/bolepix' \
--header 'Authorization: Bearer {Token JWT}' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 10,
"dueDate": "2024-12-05",
"additionalInformation": "Informações adicionais",
"payer": {
"name": "João da Silva",
"document": "12345678910",
"email": "joaosilva@email.com",
"address": {
"street": "Rua Jardins",
"number": "10",
"neighborhood": "Centro",
"city": "Porto Alegre",
"state": "RS",
"postalCode": "999999999",
"extra": "APTO 101"
}
},
"discount": {
"amount": 1.5,
"type": "fixed",
"date": "2024-12-04"
},
"fine": null,
"interest": null,
"rebate": null
}'
Respostas
🟢200Success
application/json
Body
retorno
object | null
opcional
id
string
requerido
amount
number
requerido
status
string
requerido
createdAt
string <date-time>
requerido
dueDate
string <date>
requerido
link
string
requerido
payer
object
requerido
discount
object | null
opcional
fine
object | null
opcional
interest
object | null
opcional
rebate
object | null
opcional
pixQrcode
object
requerido
bankSlip
object
requerido
alertas
array [object {2}]
opcional
mensagem
string | null
opcional
tipo
enum<integer> <int32>
opcional
Valores permitidos:
123456789
erros
array [object {4}]
opcional
mensagem
string | null
opcional
tipo
enum<integer> <int32>
opcional
Valores permitidos:
123456789
campoNome
string | null
opcional
elemento
string | null
opcional
Exemplo
{
"retorno": {
"id": "string",
"amount": 0,
"status": "string",
"createdAt": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24",
"link": "string",
"payer": {
"name": "string",
"document": "string",
"email": "string",
"address": {
"street": "string",
"number": "string",
"neighborhood": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"extra": "string"
}
},
"discount": {
"amount": 0,
"type": "fixed_amount",
"date": "2019-08-24"
},
"fine": {
"amount": 0,
"type": "fixed_amount",
"date": "2019-08-24"
},
"interest": {
"amount": 0,
"type": "fixed_amount",
"date": "2019-08-24"
},
"rebate": {
"amount": 0,
"type": "percentual"
},
"pixQrcode": {
"key": "string"
},
"bankSlip": {
"number": "string",
"barCode": "string",
"digitableLine": "string"
}
},
"alertas": [
{
"mensagem": "string",
"tipo": 1
}
],
"erros": [
{
"mensagem": "string",
"tipo": 1,
"campoNome": "string",
"elemento": "string"
}
]
}
🟠401Unauthorized
🟠400Bad Request
🟠422Unprocessable Entity
🔴500Internal Server Error