Replace the events of a webhook destination
POST /v1/webhook_destinations/{id}
Replace the events of a webhook destination
POST/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
Corpo da requisição
eventsarray of stringobrigatórioValores:
checkoutsubscription_cyclesubscription
Resposta
200OK
idstringpode ser nullobrigatório`null` for a destination managed by Paystation.
urlstringpode ser nullobrigatório`null` for a destination managed by Paystation.
originstringpode ser nullobrigatórioeventsarray of stringobrigatórioValores:
checkoutsubscription_cyclesubscriptionmanaged_bystringobrigatórioValores:
partnerpaystation
Erros
| 400 | The request path could not be decoded (`malformed_path`). |
| 401 | Missing or invalid key, or a public key (`secret_key_required`). |
| 404 | No such destination (`destination_not_found`). |
| 409 | Checkout is still configured by Paystation (`legacy_configuration_active`). |
| 422 | The body is invalid. |
| 429 | Rate limited. |
| 500 | Unexpected 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.