I need to create carts for multiple customers behind the scenes (i.e., not tied to a browser session) in an SSO-style implementation, so I'm attempting to use the h-api to loop through the customers and create their carts. I will have the Foxy customer id and the items for each cart at the time of cart creation. I'm guessing I will want to store the resulting Foxy session so that later when users log in I can retrieve the appropriate cart.
Can someone give me a brief outline on how to accomplish this with the API? I've done a few things with the API, but I'm a bit confused on whether I should post to 'carts' first and then flesh out the cart info with a secondary PATCH request to the new cart or is there a way to create the cart with the customer id and items in one post?