PaystationdocsPaystation

Remove a webhook destination ​

DELETE /v1/webhook_destinations/{id}

Remove a webhook destination

DELETE/v1/webhook_destinations/{id}

Autenticação

  • Chave secretask_…, só no seu servidor

Envie a chave no cabeçalho Authorization: Bearer <chave>.

Parâmetros

  • idstring · pathobrigatório

Resposta

200OK

  • idstringobrigatório
  • deletedbooleanobrigatório

    Valores: true

Erros

400The request path could not be decoded (`malformed_path`).
401Missing or invalid key, or a public key (`secret_key_required`).
404No such destination (`destination_not_found`).
429Rate limited.
500Unexpected error, or `api_unavailable`.

Todo erro vem no mesmo envelope: error.type, error.code, error.message e error.request_id, também devolvido no cabeçalho X-Request-Id.