public interface WebhooksApi
Replaying a webhook re-sends a webhook request to its original URL. It will not re-send other webhook requests for the same event. Replaying a webhook will reset the error information recorded for the original request and record any new errors that occur during the replay.
| Modifier and Type | Method and Description |
|---|---|
WebhookResponse |
fetch(java.lang.String webhookToken)
Returns the details of a webhook.
|
WebhookListResponse |
list(int page)
Returns a paginated list of all webhooks.
|
WebhookResponse |
replay(java.lang.String webhookToken)
Replays a webhook.
|
WebhookListResponse list(int page) throws java.io.IOException
page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.WebhookResponse fetch(java.lang.String webhookToken) throws java.io.IOException
webhookToken - The webhook token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.WebhookResponse replay(java.lang.String webhookToken) throws java.io.IOException
webhookToken - The webhook token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.