Get all invoices
GET
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
startDate?stringendDate?stringsortKey?stringPor defecto
"issueDate"Valor en
"firstName""issueDate""dueDate"sortDirection?stringPor defecto
"desc"Valor en
"asc""desc"cursor?stringlimit?numberRango
value <= 1000Por defecto
10status?stringValor en
"DRAFT""UNPAID""OVERDUE""PENDING""PARTIAL""PAID""VOIDED"dueDateFrom?stringdueDateTo?stringagingBucket?stringValor en
"DAYS_1_30""DAYS_31_60""DAYS_61_90""DAYS_90_PLUS"isPrinted?booleansubscriptionId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
results*array<>total*numbertotalPages*numbernextCursor?|The cursor to get the next page of results
exchangeRates?curl -X GET 'https://api.unopago.com/v1/invoices'Ejemplo de respuesta
{ "results": [ { "lateFeeType": "PERCENTAGE", "currency": "VES", "pricingMode": "CURRENCY", "status": "DRAFT", "source": "STANDARD", "id": "string", "externalId": "string", "accountId": "string", "customerId": "string", "printJobId": "string", "fiscalRecordId": "string", "billingDetailsId": "string", "description": "string", "issueDate": "string", "dueDate": "string", "expired": true, "paidAt": "string", "voidedAt": "string", "planDate": "string", "billingRunKey": "string", "lateFee": 0, "fiscalInvoicing": true, "createdAt": "string", "updatedAt": "string", "total": 0, "balance": 0, "feesTotals": [ { "type": "IGTF", "rateBase": 0, "rate": 0, "total": 0 } ], "customer": { "id": "string", "accountId": "string", "externalId": "string", "mainContactId": "string", "nationalId": "string", "firstName": "string", "lastName": "string", "email": "string", "phoneNumber": "string", "address": "string", "createdAt": "string", "updatedAt": "string" }, "discounts": [ { "valueType": "PERCENTAGE", "id": "string", "accountId": "string", "invoiceId": "string", "fromPaymentId": "string", "description": "string", "value": 0, "expiresAt": "string", "expired": true, "createdAt": "string", "updatedAt": "string" } ], "fees": [ { "type": "IGTF", "id": "string", "accountId": "string", "invoiceId": "string", "fromPaymentId": "string", "amount": 0, "rate": 0, "rateBase": 0, "createdAt": "string", "updatedAt": "string" } ], "items": [ { "discountValueType": "PERCENTAGE", "id": "string", "accountId": "string", "invoiceId": "string", "productId": "string", "studentId": "string", "description": "string", "amount": 0, "quantity": -9007199254740991, "exento": true, "isService": true, "subscriptionId": "string", "ivaRatePercent": -9007199254740991, "discountValue": 0, "discountExpiresAt": "string", "discountExpired": true, "createdAt": "string", "updatedAt": "string" } ], "transactions": [ { "kind": "ITEMS", "currency": "VES", "id": "string", "accountId": "string", "customerId": "string", "invoiceId": "string", "statementId": "string", "description": "string", "transactionDate": "string", "exchangeRate": 0, "rateDate": "string", "credit": 0, "debit": 0, "paymentId": "string", "fromPaymentId": "string", "retentionId": "string", "createdAt": "string", "updatedAt": "string" } ], "paymentMethods": [ { "id": "string", "invoiceId": "string", "accountPaymentMethodId": "string", "createdAt": "string", "updatedAt": "string" } ], "paymentLink": "string", "invoiceSequence": "string", "fiscalInvoice": { "source": "UNOPRINT", "invoiceNumber": "string", "controlNumber": "string", "issuedAt": "string" } } ], "total": 0, "totalPages": 0, "nextCursor": "string", "exchangeRates": { "property1": { "rate": 0, "rateDate": "string", "daysAhead": 0 }, "property2": { "rate": 0, "rateDate": "string", "daysAhead": 0 } }}
