Visão geral
Ingestão de dados
Consulta de dados
Invoice
Este objeto representa uma fatura.
Copy
{
"id": "inv_5f92f01728e009f403d8502e",
"status": "draft",
"payer": "<string>",
"beneficiary": "<string>",
"dueDate": "2023-12-25",
"amountDue": 200000,
"amountPaid": 150050,
"amountRemaining": 95000,
"type": "pay_off",
"purpose": "regular",
"invoiceItems": {
"url": "<string>",
"hasMore": true,
"data": [
{
"id": "item_5f92f01728e009f403d8502e",
"installment": "inst_631a1f531a40784a5b1df6ed",
"invoice": "inv_631a1f531a40784a4b0df5ed",
"amount": 123,
"discount": 123,
"fine": 123,
"interest": 123,
"description": "<string>",
"purposeKey": "<string>",
"metadata": {},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"deleted": false,
"createdBy": {
"clientId": "client_identifier",
"externalClientId": "<string>",
"app": "backoffice"
},
"updatedBy": {
"clientId": "client_identifier",
"externalClientId": "<string>",
"app": "backoffice"
}
}
]
},
"paymentIntents": {
"hasMore": true,
"data": [
{
"id": "pi_5f92f01728e009f403d8502e",
"invoice": "inv_631a1f531a40784a4b0df5ed",
"status": "open",
"amount": 123,
"paymentDetails": {
"paidAt": "2023-12-25",
"amountPaid": 123,
"metadata": {}
},
"expireAt": "2023-12-25",
"method": "boleto",
"methodData": {
"externalId": "<string>",
"type": "boleto",
"provider": "kobana",
"description": "<string>",
"typeableLine": "<string>",
"url": "<string>",
"barcode": "<string>",
"ourNumber": "<string>",
"ourNumberRaw": "<string>",
"customer": "cust_631a2a321a40784a4b0df641",
"events": [
{}
]
},
"metadata": {},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"createdBy": {
"clientId": "client_identifier",
"externalClientId": "<string>",
"app": "backoffice"
},
"updatedBy": {
"clientId": "client_identifier",
"externalClientId": "<string>",
"app": "backoffice"
}
}
]
},
"description": "<string>",
"history": [
{
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "draft",
"metadata": {}
}
],
"paidAt": "2023-12-25",
"metadata": {},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"deleted": false,
"createdBy": {
"clientId": "client_identifier",
"externalClientId": "<string>",
"app": "backoffice"
},
"updatedBy": {
"clientId": "client_identifier",
"externalClientId": "<string>",
"app": "backoffice"
}
}
Assistant
Responses are generated using AI and may contain mistakes.