WebhookTestResult

@Serializable
data class WebhookTestResult(val eventType: String, val statusCode: Int, val webhookEndpointId: String, val success: Boolean = true, val objectType: String = "webhook_endpoint.test")

Result of sending a sample webhook delivery.

Constructors

Link copied to clipboard
constructor(eventType: String, statusCode: Int, webhookEndpointId: String, success: Boolean = true, objectType: String = "webhook_endpoint.test")

Properties

Link copied to clipboard
@SerialName(value = "event_type")
val eventType: String

Delivered sample event type.

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

API object discriminator.

Link copied to clipboard
@SerialName(value = "status_code")
val statusCode: Int

HTTP status returned by the receiving endpoint.

Link copied to clipboard
@SerialName(value = "success")
val success: Boolean = true

Whether the test request completed; inspect statusCode for receiver success.

Link copied to clipboard
@SerialName(value = "webhook_endpoint_id")
val webhookEndpointId: String

Endpoint that received the sample.