Pular para o conteúdo principal
POST
/
client
/
webhook
/
config
Configurar webhook
curl --request POST \
  --url https://api.pixusglobal.com/client/webhook/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "webhook": {
    "methodId": "<string>",
    "active": true
  }
}
'
{
  "url": "<string>",
  "events": [
    {}
  ]
}

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json
url
string<uri>

URL de destino do webhook

webhook
object

Resposta

Webhook configurado com sucesso

url
string<uri>
events
object[]