api checkout done