Ir al contenido
UnoPagoDocumentación
Referencia de la APIWebhook integrationWebhooks

Get all events for a webhook endpoint

GET
/v1/webhooks/{webhookId}/events

This API is used to get all events for a webhook endpoint

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

webhookId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
page?number
Rango1 <= value
Por defecto1
pageSize?number
Rango1 <= value <= 1000
Por defecto10
startDate?string
endDate?string

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/webhooks/string/events'
Ejemplo de respuesta
{  "results": [    {      "id": "string",      "accountId": "string",      "webhookId": "string",      "eventType": "string",      "entityId": "string",      "connectedAccountId": "string",      "url": "string",      "data": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "total": 0,  "totalPages": 0,  "nextCursor": "string",  "exchangeRates": {    "property1": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    },    "property2": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    }  }}