curl --request GET \
--url https://api.fint.app/api/v1/invoice/{invoiceId} \
--header 'x-api-key: <api-key>'
{
"id": 123,
"totalAmount": "<string>",
"totalPaid": "<string>",
"totalPending": "<string>",
"totalMora": "<string>",
"interestPaid": "<string>",
"interestSnapshot": "<string>",
"interestSnapshotDate": "<string>",
"status": "DRAFT",
"description": "<string>",
"date": "<string>",
"expirationDate": "<string>",
"settlement": {
"id": 123,
"name": "<string>",
"sentDate": "<string>",
"status": "DRAFT"
},
"lastPaymentDate": "<string>",
"uniqueId": "<string>",
"applyInterest": true,
"externalReference": "<string>",
"contact": {
"id": 123,
"name": "<string>",
"lastName": "<string>"
},
"payments": [
{
"id": 123,
"date": "<string>",
"status": "PAID",
"method": "DEBIT_CARD",
"totalAmount": "<string>",
"isManual": true,
"reference": "<string>"
}
],
"payerContacts": [
{
"id": 123,
"type": "<string>",
"notify": true,
"name": "<string>",
"lastName": "<string>",
"hash": "<string>",
"documentType": "DNI",
"documentNumber": "<string>",
"address": "<string>",
"city": "<string>",
"province": "<string>",
"phoneNumber": "<string>",
"whatsappNumber": "<string>",
"email": "<string>"
}
],
"files": [
{
"id": 123,
"url": "<string>",
"createdAt": "<string>",
"user": {
"id": 123,
"name": "<string>",
"lastName": "<string>"
}
}
],
"activities": [
{
"id": 123,
"activity": "<string>",
"createdAt": "<string>",
"type": "created",
"history": [
{
"id": 123,
"status": "<string>",
"createdAt": "<string>"
}
],
"reminder": {
"id": 123,
"notificationType": "whatsapp",
"type": "days_after",
"days": 123
},
"lastStatus": "<string>"
}
],
"items": [
{
"id": 123,
"name": "<string>",
"amount": "<string>",
"description": "<string>",
"status": "active",
"type": "credit",
"frequencyType": "one_time",
"startDate": "<string>",
"collectionCycles": 1,
"generateInterestForLatePayment": false,
"moraDetails": [
{
"fromDay": 123,
"untilDay": 123,
"percentage": "<string>",
"daysToApply": 123,
"interestCalculated": "<string>",
"interestType": "FIXED",
"itemId": 123,
"configId": 123,
"baseAmount": "<string>"
}
],
"useCase": "subscription",
"isIndefinite": true,
"condition": "all",
"amountType": "fixed",
"conditionItems": [
{
"id": 123,
"name": "<string>",
"amount": "<string>",
"description": "<string>",
"status": "active",
"type": "credit",
"frequencyType": "one_time",
"startDate": "<string>",
"collectionCycles": 1
}
],
"originalAmount": "<string>",
"quantity": 123,
"teachableCourseId": 123,
"teachableCourseExpiresAt": "<string>"
}
],
"notes": [
{
"id": 123,
"createdAt": "<string>",
"note": "<string>",
"user": {
"id": 123,
"name": "<string>",
"lastName": "<string>"
}
}
],
"subscriptionId": 123,
"source": "SETTLEMENT",
"serviceCost": {
"amount": "<string>",
"percentage": "<string>",
"description": "<string>"
}
}
Obtener una factura por su ID
curl --request GET \
--url https://api.fint.app/api/v1/invoice/{invoiceId} \
--header 'x-api-key: <api-key>'
{
"id": 123,
"totalAmount": "<string>",
"totalPaid": "<string>",
"totalPending": "<string>",
"totalMora": "<string>",
"interestPaid": "<string>",
"interestSnapshot": "<string>",
"interestSnapshotDate": "<string>",
"status": "DRAFT",
"description": "<string>",
"date": "<string>",
"expirationDate": "<string>",
"settlement": {
"id": 123,
"name": "<string>",
"sentDate": "<string>",
"status": "DRAFT"
},
"lastPaymentDate": "<string>",
"uniqueId": "<string>",
"applyInterest": true,
"externalReference": "<string>",
"contact": {
"id": 123,
"name": "<string>",
"lastName": "<string>"
},
"payments": [
{
"id": 123,
"date": "<string>",
"status": "PAID",
"method": "DEBIT_CARD",
"totalAmount": "<string>",
"isManual": true,
"reference": "<string>"
}
],
"payerContacts": [
{
"id": 123,
"type": "<string>",
"notify": true,
"name": "<string>",
"lastName": "<string>",
"hash": "<string>",
"documentType": "DNI",
"documentNumber": "<string>",
"address": "<string>",
"city": "<string>",
"province": "<string>",
"phoneNumber": "<string>",
"whatsappNumber": "<string>",
"email": "<string>"
}
],
"files": [
{
"id": 123,
"url": "<string>",
"createdAt": "<string>",
"user": {
"id": 123,
"name": "<string>",
"lastName": "<string>"
}
}
],
"activities": [
{
"id": 123,
"activity": "<string>",
"createdAt": "<string>",
"type": "created",
"history": [
{
"id": 123,
"status": "<string>",
"createdAt": "<string>"
}
],
"reminder": {
"id": 123,
"notificationType": "whatsapp",
"type": "days_after",
"days": 123
},
"lastStatus": "<string>"
}
],
"items": [
{
"id": 123,
"name": "<string>",
"amount": "<string>",
"description": "<string>",
"status": "active",
"type": "credit",
"frequencyType": "one_time",
"startDate": "<string>",
"collectionCycles": 1,
"generateInterestForLatePayment": false,
"moraDetails": [
{
"fromDay": 123,
"untilDay": 123,
"percentage": "<string>",
"daysToApply": 123,
"interestCalculated": "<string>",
"interestType": "FIXED",
"itemId": 123,
"configId": 123,
"baseAmount": "<string>"
}
],
"useCase": "subscription",
"isIndefinite": true,
"condition": "all",
"amountType": "fixed",
"conditionItems": [
{
"id": 123,
"name": "<string>",
"amount": "<string>",
"description": "<string>",
"status": "active",
"type": "credit",
"frequencyType": "one_time",
"startDate": "<string>",
"collectionCycles": 1
}
],
"originalAmount": "<string>",
"quantity": 123,
"teachableCourseId": 123,
"teachableCourseExpiresAt": "<string>"
}
],
"notes": [
{
"id": 123,
"createdAt": "<string>",
"note": "<string>",
"user": {
"id": 123,
"name": "<string>",
"lastName": "<string>"
}
}
],
"subscriptionId": 123,
"source": "SETTLEMENT",
"serviceCost": {
"amount": "<string>",
"percentage": "<string>",
"description": "<string>"
}
}
Retorna la factura solicitada
The response is of type object
.