Apply Guest Customer to Cart
Here we will apply customer info to the cart (including the address).
Note: For more details on this endpoint please refer to the API Reference
Once you have a cart with products in it you need to apply the customer information. For a brand new customer this would likely include Apply Guest Customer to Cart , Set Shipping Address , and Set Billing Address.
For the sake of ease in this example we will simplify address handling and use the same address for billing and shipping and pass this along with the customer the body of the request. For more details on what fields this API can take, refer to the documentation linked above. In this example, we have used the cart we created in the previous step. Your Cart Id will be unique and need to be updated in the request below.
Using same_address: true
we can set the shipping and billing address simultaneously.
See our Quick Checkout Guide for tips on how you can combine this step with the create cart call to reduce e-comm requests and use less rates
Path Parameters
Query Parameters
Body
Details of the customer placing the order.
Response
Violet Order Entity