> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Send a test webhook event
> 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.
## OpenAPI
````json POST /api/webhooks-management/webhooks/{id}/test
{
"openapi": "3.0.1",
"info": {
"title": "Product Catalog API",
"version": "1.0.0",
"x-source-versions": {
"upc": "1.0.3",
"webhooks": "1.0.0"
}
},
"servers": [
{
"url": "https://api.mapp.com"
}
],
"security": [
{
"Keycloak": []
}
],
"tags": [
{
"name": "Variant Data Bulk Operations",
"description": "Endpoints for variant data bulk operations"
},
{
"name": "Variant Data Operations",
"description": "Endpoints for variant data operations"
},
{
"name": "Catalog Metadata Operations",
"description": "Endpoints for catalog metadata operations"
},
{
"name": "Product Data Operations",
"description": "Endpoints for product data operations"
},
{
"name": "Webhooks Management",
"description": "Manage webhook subscriptions. See Register webhook for delivery headers and signature verification."
}
],
"paths": {
"/api/webhooks-management/webhooks/{id}/test": {
"post": {
"tags": [
"Webhooks Management"
],
"summary": "Send a test webhook event",
"description": "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.",
"operationId": "test",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Webhook subscription identifier.",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "eventType",
"in": "query",
"description": "Event type to deliver as a sample. Select one of the supported event types.",
"required": true,
"schema": {
"type": "string",
"enum": [
"variant.added",
"variant.updated",
"variant.upserted",
"variant.deleted",
"variant.processing.failed",
"webhook.url.verification"
]
},
"example": "variant.added"
}
],
"responses": {
"200": {
"description": "The receiver accepted the test delivery. Returns the event object that was sent.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebhookTestEvent"
},
"examples": {
"variant.added": {
"summary": "variant.added",
"description": "Illustrative event payload. Generated IDs and timestamps vary for each test delivery.",
"value": {
"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": {
"summary": "variant.updated",
"description": "Illustrative event payload. Generated IDs and timestamps vary for each test delivery.",
"value": {
"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": {
"summary": "variant.upserted",
"description": "Illustrative event payload. Generated IDs and timestamps vary for each test delivery.",
"value": {
"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": {
"summary": "variant.deleted",
"description": "Illustrative event payload. Generated IDs and timestamps vary for each test delivery.",
"value": {
"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": {
"summary": "variant.processing.failed",
"description": "Illustrative event payload. Generated IDs and timestamps vary for each test delivery.",
"value": {
"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": {
"summary": "webhook.url.verification",
"description": "Illustrative event payload. Generated IDs and timestamps vary for each test delivery.",
"value": {
"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"
}
}
}
}
}
}
},
"400": {
"description": "Missing or unsupported eventType. Use one of the documented dotted event names.",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"422": {
"description": "Stored callback URL verification failed.",
"content": {
"text/plain": {
"schema": {
"type": "string"
},
"example": "Verification request returned 500 server error. Please check your endpoint is operational."
}
}
},
"404": {
"description": "Webhook subscription was not found for this company.",
"content": {
"text/plain": {
"schema": {
"type": "string"
},
"example": "Webhook not found"
}
}
}
}
}
}
},
"components": {
"schemas": {
"WebhookTestEvent": {
"description": "The delivered test event. event_type determines the concrete data schema.",
"discriminator": {
"propertyName": "event_type",
"mapping": {
"variant.added": "#/components/schemas/VariantAddedEvent",
"variant.updated": "#/components/schemas/VariantUpdatedEvent",
"variant.upserted": "#/components/schemas/VariantUpsertedEvent",
"variant.deleted": "#/components/schemas/VariantDeletedEvent",
"variant.processing.failed": "#/components/schemas/VariantProcessingFailedEvent",
"webhook.url.verification": "#/components/schemas/WebhookUrlVerificationEvent"
}
},
"oneOf": [
{
"$ref": "#/components/schemas/VariantAddedEvent"
},
{
"$ref": "#/components/schemas/VariantUpdatedEvent"
},
{
"$ref": "#/components/schemas/VariantUpsertedEvent"
},
{
"$ref": "#/components/schemas/VariantDeletedEvent"
},
{
"$ref": "#/components/schemas/VariantProcessingFailedEvent"
},
{
"$ref": "#/components/schemas/WebhookUrlVerificationEvent"
}
]
},
"VariantAddedEvent": {
"required": [
"event_type",
"data"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "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.",
"example": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5"
},
"event_type": {
"type": "string",
"description": "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.",
"example": "variant.added",
"enum": [
"variant.added"
]
},
"api_version": {
"type": "string",
"description": "Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.",
"example": "2026-01-01"
},
"created_at": {
"type": "string",
"description": "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.",
"example": "2026-01-27T16:05:00Z"
},
"company_id": {
"type": "integer",
"description": "The company identifier where this event occurred.",
"format": "int64",
"example": 100
},
"event_id": {
"type": "string",
"description": "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.",
"example": "evt_123456"
},
"data": {
"$ref": "#/components/schemas/VariantAddedDataDTO"
}
},
"description": "Details delivered with the variant.added event."
},
"VariantUpdatedEvent": {
"required": [
"event_type",
"data"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "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.",
"example": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5"
},
"event_type": {
"type": "string",
"description": "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.",
"example": "variant.updated",
"enum": [
"variant.updated"
]
},
"api_version": {
"type": "string",
"description": "Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.",
"example": "2026-01-01"
},
"created_at": {
"type": "string",
"description": "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.",
"example": "2026-01-27T16:05:00Z"
},
"company_id": {
"type": "integer",
"description": "The company identifier where this event occurred.",
"format": "int64",
"example": 100
},
"event_id": {
"type": "string",
"description": "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.",
"example": "evt_123456"
},
"data": {
"$ref": "#/components/schemas/VariantUpdatedDataDTO"
}
},
"description": "Details delivered with the variant.updated event."
},
"VariantUpsertedEvent": {
"required": [
"event_type",
"data"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "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.",
"example": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5"
},
"event_type": {
"type": "string",
"description": "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.",
"example": "variant.upserted",
"enum": [
"variant.upserted"
]
},
"api_version": {
"type": "string",
"description": "Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.",
"example": "2026-01-01"
},
"created_at": {
"type": "string",
"description": "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.",
"example": "2026-01-27T16:05:00Z"
},
"company_id": {
"type": "integer",
"description": "The company identifier where this event occurred.",
"format": "int64",
"example": 100
},
"event_id": {
"type": "string",
"description": "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.",
"example": "evt_123456"
},
"data": {
"$ref": "#/components/schemas/VariantUpsertedDataDTO"
}
},
"description": "Details delivered with the variant.upserted event."
},
"VariantDeletedEvent": {
"required": [
"event_type",
"data"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "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.",
"example": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5"
},
"event_type": {
"type": "string",
"description": "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.",
"example": "variant.deleted",
"enum": [
"variant.deleted"
]
},
"api_version": {
"type": "string",
"description": "Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.",
"example": "2026-01-01"
},
"created_at": {
"type": "string",
"description": "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.",
"example": "2026-01-27T16:05:00Z"
},
"company_id": {
"type": "integer",
"description": "The company identifier where this event occurred.",
"format": "int64",
"example": 100
},
"event_id": {
"type": "string",
"description": "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.",
"example": "evt_123456"
},
"data": {
"$ref": "#/components/schemas/VariantDeletedDataDTO"
}
},
"description": "Details delivered with the variant.deleted event."
},
"VariantProcessingFailedEvent": {
"required": [
"event_type",
"data"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "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.",
"example": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5"
},
"event_type": {
"type": "string",
"description": "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.",
"example": "variant.processing.failed",
"enum": [
"variant.processing.failed"
]
},
"api_version": {
"type": "string",
"description": "Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.",
"example": "2026-01-01"
},
"created_at": {
"type": "string",
"description": "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.",
"example": "2026-01-27T16:05:00Z"
},
"company_id": {
"type": "integer",
"description": "The company identifier where this event occurred.",
"format": "int64",
"example": 100
},
"event_id": {
"type": "string",
"description": "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.",
"example": "evt_123456"
},
"data": {
"$ref": "#/components/schemas/VariantProcessingFailedDataDTO"
}
},
"description": "Details delivered with the variant.processing.failed event."
},
"WebhookUrlVerificationEvent": {
"required": [
"event_type",
"data"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "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.",
"example": "87d61ed2-2b0f-44bd-9c77-c7f3f0ed05b5"
},
"event_type": {
"type": "string",
"description": "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.",
"example": "webhook.url.verification",
"enum": [
"webhook.url.verification"
]
},
"api_version": {
"type": "string",
"description": "Version of the delivered event payload format. This keeps existing integrations stable when payload shapes change in the future.",
"example": "2026-01-01"
},
"created_at": {
"type": "string",
"description": "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.",
"example": "2026-01-27T16:05:00Z"
},
"company_id": {
"type": "integer",
"description": "The company identifier where this event occurred.",
"format": "int64",
"example": 100
},
"event_id": {
"type": "string",
"description": "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.",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/WebhookUrlVerificationDataDTO"
}
},
"description": "Verification message sent to the receiver URL during webhook registration or URL updates."
},
"VariantAddedDataDTO": {
"type": "object",
"properties": {
"variant_id": {
"type": "string",
"description": "Identifier of the variant affected by the operation.",
"example": "variant_123"
},
"product_id": {
"type": "string",
"description": "Identifier of the product that contains the variant.",
"example": "product_123"
},
"catalog_id": {
"type": "integer",
"description": "Identifier of the catalog containing the variant.",
"format": "int64",
"example": 42
},
"catalog_type": {
"type": "string",
"description": "Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.",
"example": "SOURCE",
"enum": [
"SOURCE",
"ENRICHED"
]
}
},
"description": "Details delivered with the variant.added event."
},
"VariantUpdatedDataDTO": {
"type": "object",
"properties": {
"variant_id": {
"type": "string",
"description": "Identifier of the variant affected by the operation.",
"example": "variant_123"
},
"product_id": {
"type": "string",
"description": "Identifier of the product that contains the variant.",
"example": "product_123"
},
"catalog_id": {
"type": "integer",
"description": "Identifier of the catalog containing the variant.",
"format": "int64",
"example": 42
},
"catalog_type": {
"type": "string",
"description": "Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.",
"example": "SOURCE",
"enum": [
"SOURCE",
"ENRICHED"
]
}
},
"description": "Details delivered with the variant.updated event."
},
"VariantUpsertedDataDTO": {
"type": "object",
"properties": {
"variant_id": {
"type": "string",
"description": "Identifier of the variant affected by the operation.",
"example": "variant_123"
},
"product_id": {
"type": "string",
"description": "Identifier of the product that contains the variant.",
"example": "product_123"
},
"catalog_id": {
"type": "integer",
"description": "Identifier of the catalog containing the variant.",
"format": "int64",
"example": 42
},
"catalog_type": {
"type": "string",
"description": "Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.",
"example": "SOURCE",
"enum": [
"SOURCE",
"ENRICHED"
]
}
},
"description": "Details delivered with the variant.upserted event."
},
"VariantDeletedDataDTO": {
"type": "object",
"properties": {
"variant_id": {
"type": "string",
"description": "Identifier of the variant affected by the operation.",
"example": "variant_123"
},
"product_id": {
"type": "string",
"description": "Identifier of the product that contains the variant.",
"example": "product_123"
},
"catalog_id": {
"type": "integer",
"description": "Identifier of the catalog containing the variant.",
"format": "int64",
"example": 42
},
"catalog_type": {
"type": "string",
"description": "Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.",
"example": "SOURCE",
"enum": [
"SOURCE",
"ENRICHED"
]
}
},
"description": "Details delivered with the variant.deleted event."
},
"VariantProcessingFailedDataDTO": {
"type": "object",
"properties": {
"variant_id": {
"type": "string",
"description": "Identifier of the variant affected by the operation.",
"example": "variant_123"
},
"product_id": {
"type": "string",
"description": "Identifier of the product that contains the variant.",
"example": "product_123"
},
"error": {
"$ref": "#/components/schemas/VariantProcessingFailedErrorDTO"
},
"catalog_id": {
"type": "integer",
"description": "Identifier of the catalog containing the variant.",
"format": "int64",
"example": 42
},
"catalog_type": {
"type": "string",
"description": "Catalog in which the operation occurred: SOURCE for source data or ENRICHED for enriched data.",
"example": "SOURCE",
"enum": [
"SOURCE",
"ENRICHED"
]
}
},
"description": "Details delivered with the variant.processing.failed event."
},
"WebhookUrlVerificationDataDTO": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Informational verification message. Return a successful HTTP response to accept the verification.",
"example": "This is webhook url verification request"
}
},
"description": "Verification message sent to the receiver URL during webhook registration or URL updates."
},
"VariantProcessingFailedErrorDTO": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Machine-readable processing error code. The example is illustrative, not an exhaustive list of codes.",
"example": "VALIDATION_FAILURE"
},
"message": {
"type": "string",
"description": "Human-readable explanation of why processing failed.",
"example": "No new data to add - all data already exists"
}
},
"description": "Error reported by variant processing. Codes and messages are supplied by the processing system."
}
},
"securitySchemes": {
"Keycloak": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}
}
````