[api] fix and test the branch and submit cycle for products