Ir al contenido
UnoPagoDocumentación
Referencia de la APIBillingCheckout sessions

List checkout sessions

GET
/v1/checkout-sessions

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.

status?string
Valor en"OPEN""PROCESSING""PAID""FAILED""EXPIRED""CANCELED"
page?integer
Rango1 <= value <= 9007199254740991
Por defecto1
pageSize?integer
Rango1 <= value <= 100
Por defecto25

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/checkout-sessions'
Ejemplo de respuesta
{  "results": [    {      "id": "string",      "externalId": "string",      "status": "OPEN",      "automaticTax": {        "enabled": true      },      "items": [        {          "productId": "string",          "description": "string",          "quantity": -9007199254740991,          "amount": 0,          "exento": true,          "taxes": [            {              "type": "IVA",              "rate": 0,              "amount": 0            }          ]        }      ],      "subtotal": 0,      "ivaRate": 0,      "ivaAmount": 0,      "ivaBreakdown": [        {          "rate": 0,          "rateBase": 0,          "amount": 0        }      ],      "amount": 0,      "currency": "VES",      "amountVes": 0,      "exchangeRate": 0,      "exchangeRateDate": "string",      "amountPaid": 0,      "amountRemaining": 0,      "splits": [        {          "vendor": "string",          "externalId": "string",          "amount": 0,          "amountVes": 0        }      ],      "reference": "string",      "description": "string",      "buyerName": "string",      "buyerEmail": "string",      "url": "http://example.com",      "iframeUrl": "http://example.com",      "appearance": {        "mode": "light",        "colorPrimary": "string",        "saturation": 0,        "lightness": 0,        "borderStyle": "square",        "showMerchantName": true,        "showTotal": true      },      "paidAt": "string",      "expiresAt": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "total": -9007199254740991,  "page": -9007199254740991,  "pageSize": -9007199254740991,  "totalPages": -9007199254740991}