capabilities.work

Build Cart and Convert to Order

A 3-step recipe with Swell. We can help you get access.

Recipe · 3 steps

Build Cart and Convert to Order

with Swell

Create a cart, set its items, then create an order from it.

  1. Create an empty cart tied to the supplied account.
  2. Update the cart with the supplied line items.
  3. Create an order carrying the same account and items, converting the pending cart into a real order.
What you'll need to have ready
  • account_id: The account the cart and order belong to.
  • items: Line items to place in the cart and resulting order.
  • currency: ISO 4217 currency code.
For your developer

Arazzo workflow swell-io:build-cart-and-convert-to-order, 3 operations: createCart → updateCart → createOrder. Specs on APIs.io.