Skip to main content
POST
/
partner
/
{partnerId}
/
subscriptions
Crear una subscripción webhook
curl --request POST \
  --url https://e3-kausanna.sonqo.io/partner/{partnerId}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isActive": true,
  "url": "https://webhook.site/e52e639b-80b7-4493-9588-4ba8d883a945",
  "subscribedEvents": [
    "chargeback.created"
  ]
}
'
{
  "success": true,
  "data": {
    "id": "01H69QTYGPZCFWJJMQC9HDC9PC",
    "url": "https://google.com",
    "secret": "sq_2Wn5QwBo8x3RTOF-az0_f52e5TUzwh0waOAqAtwtht4",
    "subscribedEvents": [
      "chargeback.created"
    ],
    "partnerId": "006837",
    "isActive": true,
    "createdAt": "2023-07-26T18:37:01.334Z",
    "updatedAt": "2023-07-26T18:37:01.334Z"
  }
}
Los webhooks son notificaciones que se envían a una URL específica cada vez que ocurre un evento en la plataforma de Kausanna. Puedes usar webhooks para notificar a tu sistema cuando se crea un contracargo, se actualiza uno, se rechaza, entre otros eventos. Permiten tener sistemas en tiempo real y mantener la información actualizada. Tan solo necesitarás un endpoint que reciba las notificaciones y un sistema que las procese.
Solo aceptamos conexiones seguras (HTTPS) para recibir notificaciones.

Eventos disponibles

CódigoDescripción
chargeback.createdSe dispara cuando se crea un chargeback
chargeback.rejectedSe dispara cuando se rechaza un chargeback
chargeback.acceptedSe dispara cuando se acepta un chargeback
chargeback.resolvedSe dispara cuando se finaliza un contracargo
documentation.approvedSe dispara cuando se aprueba una documentación. Las aprobaciones se realizan de forma automática por nuestro sistema con IA.
documentation.rejectedSe dispara cuando se rechaza una documentación por la IA o por la red de la disputa. Las rechazos se realizan de forma automática por nuestro sistema con IA.
En caso de que necesites recibir notificaciones de otros eventos, por favor, contacta a tu ejecutivo de cuenta.

Authorizations

Authorization
string
header
required

API Token generated for your account. The token must be prefixed with Bearer.

Path Parameters

partnerId
integer
required

The ID of the partner registered to receive webhooks

Body

application/json
url
string
Example:

"https://webhook.site/e52e639b-80b7-4493-9588-4ba8d883a945"

subscribedEvents
string[]
isActive
boolean
Example:

true

Response

OK

success
boolean
Example:

true

data
object