- GET [/instances/$INSTANCE]/private/webhooks/$WEBHOOK_ID#
This is used to obtain detailed information about a specific webhook.
Required permission:
webhooks-readResponse:
- 200 OK:
The backend has successfully returned the detailed information about a specific webhook. Returns a WebhookDetails.
- 401 Unauthorized:
The request is unauthorized.
- 404 Not found:
The webhook(ID) is unknown to the backend. Returned with
TALER_EC_MERCHANT_GENERIC_WEBHOOK_UNKNOWN.- 500 Internal Server Error:
The server experienced an internal failure. Returned with
TALER_EC_GENERIC_DB_FETCH_FAILED.
Details:
interface WebhookDetails { // The event of the webhook: why the webhook is used. event_type: WebhookEventType; // URL of the webhook where the customer will be redirected. url: string; // Method used by the webhook http_method: string; // Header template of the webhook header_template?: string; // Body template by the webhook body_template?: string; }