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: Data consistency across distributed servicesProper compensation logic in case of failuresState management throughout the workflowRetry policies for transient failures Asynchronous Processing Benefits:Improved response times for API clientsBetter resource utilization and scalabilityEnhanced fault tolerance and recovery capabilitiesIntegration with external payment and validation services Workflow Steps: The saga manages the following workflow: Validate request and create initial voucher recordInitiate payment processing (if required)Perform external validationsFinalize voucher activationSend 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.
post https://api.fiscanner.net/Vouchers/IssuingBySaga