API to stop deal that have status: upcoming, running OR pause
API
Input: list of deal id you want to stop
output: Result of each deal you submitted
Logic
1/ Just can stop deal that have is_active : 1(upcoming), 2(running), 6(pause)
2/ If you want to stop deal (ex: id = 1) and create new deal right after that, should follow these step
- Stop deal with deal_id=1. If api response status = success or error skip step 2. If api response status = processing , do step 2
- Search deal with deal_id=1 to check if deal is successfully stop (deal.is_active != 1,2,6)
- Create new deal