2. Add to Cart
Since we currently don't have any products within our Moltin inventory, we'll go ahead and add a custom item to the Cart.
Custom cart items are a great solution, if you manage your inventory outside of Moltin, and wish to slowly migrate your data.
Custom items are also perfect when dealing with shipping charges.
Add to Cart
Let's go ahead and add a custom_item
to the Cart. We'll be using the same cart reference abc
Replace XXXX
below with your access_token.
We can very easily add another custom_item
to the Cart.
Both of these requests will respond with the current cart items, including useful data such as display_price
for each item, which provides helpful formatted currencies for items in the cart.
Now we have items in the cart, in the next lesson we will convert the Cart to an unpaid Order using the /checkout
endpoint.
Last updated