Skip to main content

Carts & Orders

View All Tags

Major Changed default calculation type in stores for new customers to line calculation from simple calculation method. Major Implemented time constrained promotion usage which limits usage to a time range in a given day or dates.

Minor In some cases, errors to the orders endpoints would return a blank error. This has been resolved. Minor Deleting a relationship on a flow now sets the fields to null, not a blank array.

Minor Return an error if a user tries to add a product to a cart that does not have a price in the supplied currency. Minor Return an error if more than 10 filter parameters are applied to a request. Minor Fixed a bug where adding a relationship field to some entity types could cause a 5xx response.

Major Added new methods, simple (default) and line, to calculate totals for carts and orders.

Minor Fixed a bug where a PUT to a cart item with a quantity of 0 would return a 404.

Minor Fixed a bug where passing mismatched IDs in the URL and body, or not passing an ID in the body would cause a 5xx error.

Minor You can now add a tax item at the same time you add a cart item. See Add Product to Cart or Add Custom Item to Cart and for tax item reference see Tax Items.

Minor Fixed bug where in some cases cart totals did not exactly reflect the order totals created after the cart was checked out. Cart totals and order totals now exactly match.

Minor Fixed bug where phone number associated with address would not update correctly on PUT.

Minor Cart items now returned with GET cart call.

Minor Adding a promo code to an empty cart now returns 422: "At least one product must be included in your cart to qualify for this offer".

Minor Adding the same promo code to a cart more than once returns 201 but ensures the code is applied only once.

Minor Updating a modifier no longer changes the child product IDs on rebuild.

Minor Improved the safety of carts using different currencies by rejecting requests which would mix up currencies. The following use cases apply:

  1. If you attempt to add a product to a cart which contains items in a different currency, you receive a 400 error.
  2. If you attempt to check out a cart in a different currency than the products that exist in the cart, you receive a 400 error.
  3. If you attempt to GET a cart in a different currency than the items in the cart, then the currency header should be ignored. You should see it in the original currency.
  4. If you attempt to GET cart items in a different currency than the items in the cart, then the currency header should be ignored. You should see it in the original currency.

Minor Fixed an issue with carts whereby changing the product quantity would change the order of cart items. This is now preserved.

Minor Added attribute validation so that only known events are accepted.

Minor DELETE calls are now rejected to remove a relationship from a collection for incorrectly formatted requests.

Minor Checkout call now returns order items in the response.

Major The architecture now incorporates Kubernetes.

  • Successful request to orders/:ID/payments endpoint now returns information about the transaction which was created.
  • Validation on files endpoint now checks the file parameter is passed, that it is an actual file and returns a 422 if it is not.