Ir al contenido
UnoPagoDocumentación
Referencia de la APIBillingInvoices

Get all transactions related to an invoice with pagination.

GET
/v1/invoices/{invoiceId}/transactions

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.

Parámetros de ruta

invoiceId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
cursor?string
limit?number
Rangovalue <= 100
Por defecto10
sortKey?string
Por defecto"transactionDate"
Valor en"createdAt""transactionDate""debit""credit"
sortDirection?string
Por defecto"desc"
Valor en"asc""desc"

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/string/transactions'
Ejemplo de respuesta
{  "results": [    {      "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",      "fromPayment": {        "transactionDate": "string"      }    }  ],  "total": 0,  "totalPages": 0,  "nextCursor": "string",  "exchangeRates": {    "property1": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    },    "property2": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    }  }}