Send a test webhook event

Prev Next
Post
/api/webhooks-management/webhooks/{id}/test

Sends a sample event to the currently stored callback URL and returns the delivered event object.

Behavior:
- eventType is required and selects the event to send.
- The data payload matches the selected event type. Product and catalog identifiers are synthetic test values; no real product operation is performed. Processing errors in sample events are synthetic too.
- Uses the normal HTTP POST delivery mechanism, signed with the stored secret and X-Webhook-Signature/X-Webhook-Timestamp headers.
- Makes a single delivery attempt with no retries; it succeeds only if the callback accepts the request without a 4xx/5xx response and without a DNS, TLS, timeout, or other connection error.
- Returns the same event object sent to the receiver, including its generated id and timestamp.
- Tests any supported event type, even if the subscription is paused or does not subscribe to that type. The subscription and its delivery failure counters are not changed.

Security
HTTP
Type bearer
Path parameters
id
integer (int64) Required

Webhook subscription identifier.

Query parameters
eventType
stringRequired

Event type to deliver as a sample. Select one of the supported event types.

Valid values[ "variant.added", "variant.updated", "variant.upserted", "variant.deleted", "variant.processing.failed", "webhook.url.verification" ]
Examplevariant.added
Responses
200

The receiver accepted the test delivery. Returns the event object that was sent.

variant.added

variant.added

Illustrative event payload. Generated IDs and timestamps vary for each test delivery.

{
  "id": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5",
  "event_type": "variant.added",
  "api_version": "2026-01-01",
  "created_at": "2026-01-27T16:05:00Z",
  "company_id": 100,
  "event_id": "test_123456",
  "data": {
    "variant_id": "variant_123",
    "product_id": "product_123",
    "catalog_id": 42,
    "catalog_type": "SOURCE"
  }
}
variant.updated

variant.updated

Illustrative event payload. Generated IDs and timestamps vary for each test delivery.

{
  "id": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5",
  "event_type": "variant.updated",
  "api_version": "2026-01-01",
  "created_at": "2026-01-27T16:05:00Z",
  "company_id": 100,
  "event_id": "test_123456",
  "data": {
    "variant_id": "variant_123",
    "product_id": "product_123",
    "catalog_id": 42,
    "catalog_type": "SOURCE"
  }
}
variant.upserted

variant.upserted

Illustrative event payload. Generated IDs and timestamps vary for each test delivery.

{
  "id": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5",
  "event_type": "variant.upserted",
  "api_version": "2026-01-01",
  "created_at": "2026-01-27T16:05:00Z",
  "company_id": 100,
  "event_id": "test_123456",
  "data": {
    "variant_id": "variant_123",
    "product_id": "product_123",
    "catalog_id": 42,
    "catalog_type": "SOURCE"
  }
}
variant.deleted

variant.deleted

Illustrative event payload. Generated IDs and timestamps vary for each test delivery.

{
  "id": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5",
  "event_type": "variant.deleted",
  "api_version": "2026-01-01",
  "created_at": "2026-01-27T16:05:00Z",
  "company_id": 100,
  "event_id": "test_123456",
  "data": {
    "variant_id": "variant_123",
    "product_id": "product_123",
    "catalog_id": 42,
    "catalog_type": "SOURCE"
  }
}
variant.processing.failed

variant.processing.failed

Illustrative event payload. Generated IDs and timestamps vary for each test delivery.

{
  "id": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5",
  "event_type": "variant.processing.failed",
  "api_version": "2026-01-01",
  "created_at": "2026-01-27T16:05:00Z",
  "company_id": 100,
  "event_id": "test_123456",
  "data": {
    "variant_id": "variant_123",
    "product_id": "product_123",
    "error": {
      "code": "VALIDATION_FAILURE",
      "message": "No new data to add - all data already exists"
    },
    "catalog_id": 42,
    "catalog_type": "SOURCE"
  }
}
webhook.url.verification

webhook.url.verification

Illustrative event payload. Generated IDs and timestamps vary for each test delivery.

{
  "id": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5",
  "event_type": "webhook.url.verification",
  "api_version": "2026-01-01",
  "created_at": "2026-01-27T16:05:00Z",
  "company_id": 100,
  "data": {
    "message": "This is webhook url verification request"
  }
}
Expand All

The delivered test event. event_type determines the concrete data schema.

OneOf
VariantAddedEvent
object (VariantAddedEvent)
id
string

A unique identifier generated for this specific HTTP webhook event request. Used for deduplication: if a delivery is retried, the id remains identical so the client can avoid processing the same notification twice.

Example87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5
event_type
string

A dot-notated string that tells the client exactly what happened. Clients use this as the primary key for routing the message to the correct logic.

Valid values[ "variant.added" ]
Examplevariant.added
api_version
string

Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.

Example2026-01-01
created_at
string

An ISO 8601 UTC timestamp of when the event occurred. Because retries can cause webhooks to arrive out of order, clients use this to avoid overwriting newer data with an older stale event.

Example2026-01-27T16:05:00Z
company_id
integer (int64)

The company identifier where this event occurred.

Example100
event_id
string

A pointer back to the original system action, such as an API call or background job. For example, event_id is generated and returned by UPC async public API endpoints. No originating operation ID is set for webhook.url.verification.

Exampleevt_123456
data
object (VariantAddedDataDTO)

Details delivered with the variant.added event.

variant_id
string

Identifier of the variant affected by the operation.

Examplevariant_123
product_id
string

Identifier of the product that contains the variant.

Exampleproduct_123
catalog_id
integer (int64)

Identifier of the catalog containing the variant.

Example42
catalog_type
string

Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.

Valid values[ "SOURCE", "ENRICHED" ]
ExampleSOURCE
VariantUpdatedEvent
object (VariantUpdatedEvent)
id
string

A unique identifier generated for this specific HTTP webhook event request. Used for deduplication: if a delivery is retried, the id remains identical so the client can avoid processing the same notification twice.

Example87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5
event_type
string

A dot-notated string that tells the client exactly what happened. Clients use this as the primary key for routing the message to the correct logic.

Valid values[ "variant.updated" ]
Examplevariant.updated
api_version
string

Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.

Example2026-01-01
created_at
string

An ISO 8601 UTC timestamp of when the event occurred. Because retries can cause webhooks to arrive out of order, clients use this to avoid overwriting newer data with an older stale event.

Example2026-01-27T16:05:00Z
company_id
integer (int64)

The company identifier where this event occurred.

Example100
event_id
string

A pointer back to the original system action, such as an API call or background job. For example, event_id is generated and returned by UPC async public API endpoints. No originating operation ID is set for webhook.url.verification.

Exampleevt_123456
data
object (VariantUpdatedDataDTO)

Details delivered with the variant.updated event.

variant_id
string

Identifier of the variant affected by the operation.

Examplevariant_123
product_id
string

Identifier of the product that contains the variant.

Exampleproduct_123
catalog_id
integer (int64)

Identifier of the catalog containing the variant.

Example42
catalog_type
string

Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.

Valid values[ "SOURCE", "ENRICHED" ]
ExampleSOURCE
VariantUpsertedEvent
object (VariantUpsertedEvent)
id
string

A unique identifier generated for this specific HTTP webhook event request. Used for deduplication: if a delivery is retried, the id remains identical so the client can avoid processing the same notification twice.

Example87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5
event_type
string

A dot-notated string that tells the client exactly what happened. Clients use this as the primary key for routing the message to the correct logic.

Valid values[ "variant.upserted" ]
Examplevariant.upserted
api_version
string

Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.

Example2026-01-01
created_at
string

An ISO 8601 UTC timestamp of when the event occurred. Because retries can cause webhooks to arrive out of order, clients use this to avoid overwriting newer data with an older stale event.

Example2026-01-27T16:05:00Z
company_id
integer (int64)

The company identifier where this event occurred.

Example100
event_id
string

A pointer back to the original system action, such as an API call or background job. For example, event_id is generated and returned by UPC async public API endpoints. No originating operation ID is set for webhook.url.verification.

Exampleevt_123456
data
object (VariantUpsertedDataDTO)

Details delivered with the variant.upserted event.

variant_id
string

Identifier of the variant affected by the operation.

Examplevariant_123
product_id
string

Identifier of the product that contains the variant.

Exampleproduct_123
catalog_id
integer (int64)

Identifier of the catalog containing the variant.

Example42
catalog_type
string

Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.

Valid values[ "SOURCE", "ENRICHED" ]
ExampleSOURCE
VariantDeletedEvent
object (VariantDeletedEvent)
id
string

A unique identifier generated for this specific HTTP webhook event request. Used for deduplication: if a delivery is retried, the id remains identical so the client can avoid processing the same notification twice.

Example87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5
event_type
string

A dot-notated string that tells the client exactly what happened. Clients use this as the primary key for routing the message to the correct logic.

Valid values[ "variant.deleted" ]
Examplevariant.deleted
api_version
string

Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.

Example2026-01-01
created_at
string

An ISO 8601 UTC timestamp of when the event occurred. Because retries can cause webhooks to arrive out of order, clients use this to avoid overwriting newer data with an older stale event.

Example2026-01-27T16:05:00Z
company_id
integer (int64)

The company identifier where this event occurred.

Example100
event_id
string

A pointer back to the original system action, such as an API call or background job. For example, event_id is generated and returned by UPC async public API endpoints. No originating operation ID is set for webhook.url.verification.

Exampleevt_123456
data
object (VariantDeletedDataDTO)

Details delivered with the variant.deleted event.

variant_id
string

Identifier of the variant affected by the operation.

Examplevariant_123
product_id
string

Identifier of the product that contains the variant.

Exampleproduct_123
catalog_id
integer (int64)

Identifier of the catalog containing the variant.

Example42
catalog_type
string

Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.

Valid values[ "SOURCE", "ENRICHED" ]
ExampleSOURCE
VariantProcessingFailedEvent
object (VariantProcessingFailedEvent)
id
string

A unique identifier generated for this specific HTTP webhook event request. Used for deduplication: if a delivery is retried, the id remains identical so the client can avoid processing the same notification twice.

Example87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5
event_type
string

A dot-notated string that tells the client exactly what happened. Clients use this as the primary key for routing the message to the correct logic.

Valid values[ "variant.processing.failed" ]
Examplevariant.processing.failed
api_version
string

Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.

Example2026-01-01
created_at
string

An ISO 8601 UTC timestamp of when the event occurred. Because retries can cause webhooks to arrive out of order, clients use this to avoid overwriting newer data with an older stale event.

Example2026-01-27T16:05:00Z
company_id
integer (int64)

The company identifier where this event occurred.

Example100
event_id
string

A pointer back to the original system action, such as an API call or background job. For example, event_id is generated and returned by UPC async public API endpoints. No originating operation ID is set for webhook.url.verification.

Exampleevt_123456
data
object (VariantProcessingFailedDataDTO)

Details delivered with the variant.processing.failed event.

variant_id
string

Identifier of the variant affected by the operation.

Examplevariant_123
product_id
string

Identifier of the product that contains the variant.

Exampleproduct_123
error
object (VariantProcessingFailedErrorDTO)

Error reported by variant processing. Codes and messages are supplied by the processing system.

code
string

Machine-readable processing error code. The example is illustrative, not an exhaustive list of codes.

ExampleVALIDATION_FAILURE
message
string

Human-readable explanation of why processing failed.

ExampleNo new data to add - all data already exists
catalog_id
integer (int64)

Identifier of the catalog containing the variant.

Example42
catalog_type
string

Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.

Valid values[ "SOURCE", "ENRICHED" ]
ExampleSOURCE
WebhookUrlVerificationEvent
object (WebhookUrlVerificationEvent)
id
string

A unique identifier generated for this specific HTTP webhook event request. Used for deduplication: if a delivery is retried, the id remains identical so the client can avoid processing the same notification twice.

Example87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5
event_type
string

A dot-notated string that tells the client exactly what happened. Clients use this as the primary key for routing the message to the correct logic.

Valid values[ "webhook.url.verification" ]
Examplewebhook.url.verification
api_version
string

Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.

Example2026-01-01
created_at
string

An ISO 8601 UTC timestamp of when the event occurred. Because retries can cause webhooks to arrive out of order, clients use this to avoid overwriting newer data with an older stale event.

Example2026-01-27T16:05:00Z
company_id
integer (int64)

The company identifier where this event occurred.

Example100
event_id
string | null

A pointer back to the original system action, such as an API call or background job. For example, event_id is generated and returned by UPC async public API endpoints. No originating operation ID is set for webhook.url.verification.

data
object (WebhookUrlVerificationDataDTO)

Verification message sent to the receiver URL during webhook registration or URL updates.

message
string

Informational verification message. Return a successful HTTP response to accept the verification.

ExampleThis is webhook url verification request
400

Missing or unsupported eventType. Use one of the documented dotted event names.

string
404

Webhook subscription was not found for this company.

"Webhook not found"
string
422

Stored callback URL verification failed.

"Verification request returned 500 server error. Please check your endpoint is operational."
string