Capturar Fatura para Boleto
POST
http://{{app_url}}/api/v1/invoices/capture/8bb4823a-f3c0-423b-ad15-59a024fa2c0cRequest
Parâmetros Bodyapplication/json
method
string
requerido
Exemplo
{
"method": "boleto"
}
Request samples
Respostas
Capturar Fatura para Boleto(200)
Capturar Fatura para Boleto
HTTP Code: 200
Content Type : JSONapplication/json
Esquema de Dados
id
string
requerido
ref
string
requerido
description
null
requerido
status
string
requerido
subtotal_amount
string
requerido
total_amount
string
requerido
tax_amount
null
requerido
discount_amount
null
requerido
link_token
string
requerido
link
string
requerido
customer
object
requerido
id
string
requerido
name
string
requerido
email
string
requerido
description
null
requerido
cellphone
string
requerido
cpfcnpj
string
requerido
address
object
requerido
items
array [object {4}]
requerido
id
string
opcional
product
object
opcional
quantity
integer
opcional
total
string
opcional
payment
object
requerido
id
string
requerido
status
string
requerido
method
string
requerido
interest_amount
string
requerido
fee_amount
string
requerido
discount_amount
string
requerido
total_amount
string
requerido
transaction
object
requerido
next_withdraw_available
string
requerido
withdraw_agenda
null
requerido
paid_at
null
requerido
payable_with
object
requerido
pix
boolean
requerido
boleto
boolean
requerido
credit_card
boolean
requerido
credit_card_with_interest
boolean
requerido
shipping
null
requerido
due_date
string
requerido
paid_at
null
requerido
notification_url
null
requerido
created_at
string
requerido
notifications
array [object {5}]
requerido
title
string
opcional
message
string
opcional
type
string
opcional
created_at
string
opcional
meta
array
opcional
ExemploCapturar Fatura para Boleto
{
"id": "8bb4823a-f3c0-423b-ad15-59a024fa2c0c",
"ref": "8",
"description": null,
"status": "processing",
"subtotal_amount": "100,00",
"total_amount": "100,00",
"tax_amount": null,
"discount_amount": null,
"link_token": "dCm4ABF1Vz7Xzv69jwaqnTb8cuQxhU",
"link": "http://localhost:5180/hapo-code-ltda./public/fatura/dCm4ABF1Vz7Xzv69jwaqnTb8cuQxhU",
"customer": {
"id": "da55e5ed-c073-4dce-b649-14e4fe382a11",
"name": "João da Silva",
"email": "joao@testeste.com.br",
"description": null,
"cellphone": "11999999999",
"cpfcnpj": "07120188917",
"address": {
"street": "Rua Reverendo Paulo Hecke",
"number": "123",
"complement": "Sala 1",
"neighborhood": "Ahú",
"city": "Curitiba",
"state": "PR",
"zipcode": "82200-300"
}
},
"items": [
{
"id": "53b02835-b954-4bb7-a506-a64b76914a75",
"product": {
"id": "8c214358-46c3-4d90-991e-e12708deb114",
"name": "Produto redondo",
"description": "Desc",
"price": "50,00"
},
"quantity": 2,
"total": "100,00"
}
],
"payment": {
"id": "a3ae792f-4645-4694-aab3-c67f117da90e",
"status": "processing",
"method": "boleto",
"interest_amount": "0",
"fee_amount": "400",
"discount_amount": "0",
"total_amount": "10000",
"transaction": {
"boleto_due_date": null,
"boleto_barcode": null,
"boleto_barcode_inline": "21390001171200003950800015003072193330001000000",
"boleto_barcode_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVkAAAA8AQMAAAD2clvFAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAE9JREFUSIljWJVrFLbl1Gad1ao5W2Zt1jRbNmvaqc2auaaTJmdt81ytFnVmFZCnbbTm1GZdBoZRxaOKRxWPKh5VPKp4VPGo4lHFo4qppxgAr2Pk+apsrbgAAAAASUVORK5CYII="
},
"next_withdraw_available": "24/04/2023",
"withdraw_agenda": null,
"paid_at": null
},
"payable_with": {
"pix": true,
"boleto": true,
"credit_card": true,
"credit_card_with_interest": true
},
"shipping": null,
"due_date": "27/04/2023",
"paid_at": null,
"notification_url": null,
"created_at": "24/04/2023",
"notifications": [
{
"title": "Nova fatura criada",
"message": "Fatura com id: 8bb4823a-f3c0-423b-ad15-59a024fa2c0c criada com sucesso.",
"type": "success",
"created_at": "24/04/2023 15:48",
"meta": []
}
]
}
Last modified: a month ago