Issue asynchronously

Saga Pattern Implementation: This endpoint utilizes the Saga pattern to manage complex, long-running transactions that may involve multiple services and external systems. The saga orchestrator ensures:

  1. Data consistency across distributed services
  2. Proper compensation logic in case of failures
  3. State management throughout the workflow
  4. Retry policies for transient failures
Asynchronous Processing Benefits:
  1. Improved response times for API clients
  2. Better resource utilization and scalability
  3. Enhanced fault tolerance and recovery capabilities
  4. Integration with external payment and validation services
Workflow Steps: The saga manages the following workflow:
  1. Validate request and create initial voucher record
  2. Initiate payment processing (if required)
  3. Perform external validations
  4. Finalize voucher activation
  5. Send notifications and update audit logs
Monitoring and Tracking: Use the returned requestId to track the progress of the saga through monitoring endpoints or subscribe to relevant SignalR notifications for real-time updates.

Language
URL
Response
Click Try It! to start a request and see the response here!