Ir al contenido
UnoPagoDocumentación
Referencia de la APIBillingInvoices

Get all invoices

GET
/v1/invoices

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

startDate?string
endDate?string
sortKey?string
Por defecto"issueDate"
Valor en"firstName""issueDate""dueDate"
sortDirection?string
Por defecto"desc"
Valor en"asc""desc"
cursor?string
limit?number
Rangovalue <= 1000
Por defecto10
status?string
Valor en"DRAFT""UNPAID""OVERDUE""PENDING""PARTIAL""PAID""VOIDED"
dueDateFrom?string
dueDateTo?string
agingBucket?string
Valor en"DAYS_1_30""DAYS_31_60""DAYS_61_90""DAYS_90_PLUS"
isPrinted?boolean
subscriptionId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

Cuerpo de la respuesta

Successful response

application/json
  1. response
results*array<>
total*number
totalPages*number
nextCursor?|

The cursor to get the next page of results

exchangeRates?
Ejemplo de solicitud
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    }  }}