Ir al contenido
UnoPagoDocumentación
Referencia de la APIBillingSettlements

List settlements

GET
/v1/settlements

The payouts UnoPago has deposited into your bank accounts, newest first by creation. Only completed settlements are listed. Amounts are decimal strings in bolívares (VES), the currency of every settlement: netAmount, what was deposited, is totalAmount − totalFees − totalSplits, where totalSplits is the part of those payments owed to vendors (splits on their checkout sessions), each paid in a payout of its own. With vendorId, the payouts deposited into that vendor's bank account instead. startDate/endDate filter by processedAt; an endDate at exactly midnight UTC is treated as that date and includes the whole day — send a timestamp to use an exclusive bound.

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.

page?integer
Rango1 <= value <= 9007199254740991
Por defecto1
pageSize?integer
Rango1 <= value <= 100
Por defecto10
merchantBankAccountId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
vendorId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
bankReference?string
startDate?string
endDate?string

Cuerpo de la respuesta

Successful response

application/json
  1. response
results*array<>
total*integer
Rango-9007199254740991 <= value <= 9007199254740991
page*integer
Rango-9007199254740991 <= value <= 9007199254740991
pageSize*integer
Rango-9007199254740991 <= value <= 9007199254740991
totalPages*integer
Rango-9007199254740991 <= value <= 9007199254740991
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/settlements'
Ejemplo de respuesta
{  "results": [    {      "id": "string",      "totalAmount": "string",      "totalFees": "string",      "totalSplits": "0",      "netAmount": "string",      "paymentCount": -9007199254740991,      "bankReference": "string",      "processedAt": "string",      "createdAt": "string",      "bankAccount": {        "id": "string",        "bankCode": "C0105",        "accountNumber": "string",        "accountType": "CHECKING"      },      "deposit": {        "id": "string",        "status": "PENDING",        "reconciledAt": "string",        "bankTransaction": {          "id": "string",          "date": "string",          "referenceCode": "string",          "amount": "string"        }      }    }  ],  "total": -9007199254740991,  "page": -9007199254740991,  "pageSize": -9007199254740991,  "totalPages": -9007199254740991}