Trigger Webhook Event - Lifecycle Processor
You can simulate a specific webhook event being triggered for an order. This action allows users to test their webhook integrations by mimicking the notification flow for various order-related events.
Endpoint
POST https://dev-core-ias-rest.telegramd.com/orders/<put-order-id-here>/actions/lifecycleProcessor/triggerWebhook?access_token={{ias.affiliate.accessToken}}
Requirements
- The request must include a JSON body.
- The
webhookIdprovided must be configured to be interested in (i.e., listen for) the specifiedeventType. - The
eventTypemust be of category "Order" and have a "Public" level. - The affiliate must have
lifecycleProcessorEnabledsetting enabled in their development settings.
Request Body Structure
{
"eventType": "order_submitted",
"webhookId": "webhook::example_id"
}Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
eventType | string | Yes | The type of webhook event to trigger (see supported values below) |
webhookId | string | Yes | The ID of the webhook configuration that should receive this event |
Supported eventType Values
The following event types are supported for the triggerWebhook lifecycle processor action:
affiliate_admin_was_assignedexternal_questionnaire_instance_synchronization_attemptmessage-from-admin-practitioner-receivednew_status_set_to_requestorder_createdorder_expeditedorder_payment_collectedorder_product_variation_transitionedorder_submittedorder_updatedpatient_communication_answered_callpatient_communication_follow_up_requiredpatient_communication_text_message_sentpatient_communication_unanswered_callpharmacy_bundle_fax_sentvisit_type_overriddenvisit_type_updated
Example Request
curl -X POST \
'https://dev-core-ias-rest.telegramd.com/orders/12345/actions/lifecycleProcessor/triggerWebhook?access_token=your_access_token' \
-H 'Content-Type: application/json' \
-d '{
"eventType": "order_submitted",
"webhookId": "webhook::example_id"
}'Response
On success, the endpoint returns the created event object with details about the triggered webhook event.
Notes
- This endpoint is only available in development environments.
- The endpoint will return a 500 error if used in production.
- The webhook must be configured to listen for the specified event type, otherwise the request will fail with an authorization error.
Updated about 14 hours ago
