Lifecycle Processor

Use to unblock your testing in the development environment!

Approve Prescription

Endpoint: /approvePrescription

Simulates a practitioner approving prescription(s) on an order.

Requirements:

  • Order must be in "Requires Provider Review" status

Behavior:

  • Based on configuration settings, the order will either:
    • Transition to "Requires Order Processing" status, OR
    • Be sent to the pharmacy (mocked in development) and then transition to "Completed" status

Example:

POST {telegra.url}/orders/<order-id>/actions/lifecycleProcessor/approvePrescription?access_token={{ias.affiliate.accessToken}}

Get Order Creation Payload

Endpoint: /getOrderCreationPayload

Generates the complete payload needed to create an order via the API.

Requirements:

  • Choose an order that is already submitted

Behavior:

  • Returns all the data required to hit the /Create Order + Patient + Questionnaires endpoint
  • Useful for replicating or testing order creation flows

Example:

POST {telegra.url}/orders/<order-id>/actions/lifecycleProcessor/getOrderCreationPayload?access_token={{ias.affiliate.accessToken}}

Trigger Webhook Event

Endpoint: /triggerWebhook

Simulates a specific webhook event being triggered for an order to test webhook integrations.

Requirements:

  • Request must include a JSON body
  • The webhookId must be configured to listen for the specified eventType

Request Body Structure:

{
  "eventType": "order_submitted",
  "webhookId": "webhook::example_id"
}

Example:

POST {telegra.url}/orders/<order-id>/actions/lifecycleProcessor/triggerWebhook?access_token={{ias.affiliate.accessToken}}

Supported Event Types:

  • affiliate_admin_was_assigned
  • external_questionnaire_instance_synchronization_attempt
  • message-from-admin-practitioner-received
  • new_status_set_to_request
  • order_created
  • order_expedited
  • order_payment_collected
  • order_product_variation_transitioned
  • order_submitted
  • order_updated
  • patient_communication_answered_call
  • patient_communication_follow_up_required
  • patient_communication_text_message_sent
  • patient_communication_unanswered_call
  • pharmacy_bundle_fax_sent
  • visit_type_overridden
  • visit_type_updated