• Log in
  • Contact Sales
  • Evaluate

Get in touch  

Blog • Announcements | Developer

Further Flows improvements

Last updated: 01 Jul 2019

We've been working hard recently to improve the developer experience when using the Moltin API to build an online store.

An important part of this is to look at how we can make working with custom data - Flows even easier. We're very excited to talk about some of the updates we're ready to ship!

 

Better flows functionality on carts & orders


One of the most reported issues with Flows was that the behaviour of Flow Fields on items in carts was unpredictable. We've shored this up so whether you're doing a GET, PUT or POST with any type of item in your cart, Flow Fields are attached to the correct objects.

You can also now attach Flow data to carts & objects more easily. While previously most of our users would add an item to a cart, then do a second request to add custom data (Flows), this can now be achieved in a single request, just pass the Flow data with the add to cart request:

This also works when checking a cart out. You can pass any custom data (Flows) that should be attached to the order:

Improved behaviour when creating/updating an entity with Flow Fields


In some instances when updating a core entity with Flow Fields that have validation rules. It was possible that the core entity would be updated and the flows validation would fail. In this situation, the user would get a 200 response and have no idea their Flow Fields were not updated. We've modified this behavior to return the error response code and validation error message.

When responding to PUT/POST requests that included Flows data, the values from the original client request were attached to the response, rather than the data returned from the Flows service. This meant that there could sometimes be slight differences in how the data was formatted. Coupled with the issue above, it could also mean that it looked like Flow data had been saved when it hadn't been saved because of a validation error.

Improved performance

We've streamlined the process for updating a Flow, meaning all PUT/POST requests for entities that use Flow Fields will see a performance boost.

We've made some changes that will allow us to tweak how Flows requests work even more, so that there is scope to improve performance again in the future.

Explore More Blog Posts

24 Oct 2019

November - product updates & deprecations

On Thursday 12th December we will be fixing an issue which results in flow data for orders appearing on the orders transactions.

Read More
author
Adam Sturrock
in Developer
30 Sep 2019

Onboarding with Moltin

The aim of this post is to give you a view into how onboarding works at Moltin. It is designed around a service based implementation.

Read More
author
Matt Foyle
in Magento Migration | Developer | eCommerce
11 Sep 2019

eCommerce API 101

In this post we’ll cover what an eCommerce API is, why you should use one and how you should evaluate an eCommerce API.

Read More
author
Adam Sturrock
in Developer | eCommerce