Initiates asynchronous coupon issuance using the saga pattern for complex business workflow orchestration. Validates request format and publishes saga initiation events for distributed transaction management. Provides decoupled processing with enhanced reliability, compensation handling, and monitoring capabilities.
This endpoint allows to start the coupon issuing by using a saga pattern. Saga pattern is used to manage the transactional behavior of the system. It has no direct impact on the API behavior. Please check Genocs.Fiscanner.WebApi.Controllers.IssueCouponRequest to get more info.
This endpoint leverages the saga pattern for managing complex, long-running coupon issuance workflows. Saga orchestration provides transactional consistency across multiple services and external systems. Includes automatic compensation logic for handling failures in distributed processing scenarios. The code parameter must be a valid GUID format for saga correlation and tracking. Publishes CouponRequest event to initiate saga state machine with timestamped request tracking. Provides better scalability and fault tolerance compared to synchronous processing approaches. Enables monitoring and debugging of complex business processes through saga state visualization.