Changelog
Commerce Layer changelog for software updates, new features, and general improvements.

​
πŸ—“
June 23, 2022

​Core API​

Introduced price volume and shipping weight tiers

Commerce Layer now supports tiered pricing strategies based on volume. These tiers can be used to enable specialized pricing when customers order in quantity, like offering a unit discount when a customer orders 10 of an SKU instead of 1.
We’ve introduced two new resources β€” price tiers and price volume tiers β€” enabling you to create up to 5 tiers for each price. The price of the associated SKU will then be set by the tier the total quantity of items falls within. Price tiers can be imported together with their related prices.
The shipping methods availability management has been improved:
  • The relationships with the shipping zone and the shipping category has been relaxed (they're now both optional when creating a shipping method).
  • A new optional relationship with a stock location has been added so that the shipping method will only be available if the items are shipped from that specific stock location.
  • A new optional weight-based constraint on the shipping method availability has been added. Now you can define a minimum and/or a maximum weight threshold and make the shipping method available only if the total weight of the items in the shipment falls within the threshold.
The shipping methods cost management has also been updated. Now you can select one of two schemes:
  • Flat β€” the shipping method has a fixed cost.
  • Weight-tiered β€” the shipping method's price is tiered based on the total weight of the items in the shipment. Two new resources have been introduced (shipping method tiers and shipping weight tiers) so that you can create up to 5 price tiers for each shipping method.
A new events endpoint has been exposed (which can be used to improve webhooks management and monitoring). Events can be included when fetching the resources that support them in order to inspect each recorded action.

​
πŸ—“
June 20, 2022

​Core API​

Introduced idempotency for payments

​Order status changes are now idempotent. This means order and payment statuses stay consistent with multiple updates, which can limit the effect of transaction errors. For example, it's now possible to place or cancel an order more than once without worrying about duplicated transactions (or other unintended effects). Because of this, order status-related actions such as webhook events and stock item updates are only executed once.
​Adyen gateway authorizations via 3DS now generate just one transaction.

​
πŸ—“
June 7, 2022

​Core API​

Improved bundle support for promotions

​Free gift and fixed price promotions can now apply to bundles (as long as they share the same SKU list). Both can now combine with other promotion types (but cannot overlap with each other or with other promotions of the same type). Two new relationships have also been added to the order object (available_free_skus and available_free_bundles), which is useful when presenting the customer with a list of possible free gifts during checkout.

​
πŸ—“
May 3, 2022

​Hosted checkout​

Checkout.com integration and error improvements in v1.7.0

Hosted checkout v1.7.0 now supports Checkout.com out-of-the-box (in addition to all other payment gateway integrations). A new error handling process for out-of-stock and no shipping zone errors is now available.

​
πŸ—“
May 2, 2022

​React components​

Updated stock transfer components in v3.11.1

React components v3.11.1 comes with valuable improvements regarding the stock transfer components. Now developers can customize stock transfers alongside line items in a rapid and efficient way.

​
πŸ—“
April 20, 2022

​Core API​

New token info endpoint

A new OAuth endpoint has been exposed. You can now unpack the JWT token information by sending a GET request to oauth/tokeninfo. The response will contain some useful info such as the application type, the owner, and the associated roles, permissions, and scopes.

​
πŸ—“
April 14, 2022

​Core API​

Avalara integration update (AvaTax)

​AvaTax is a full-service engine for calculating transactional taxes, including sales, use, VAT, and many other tax types. If you're using Avalara as the tax calculator associated with one (or more) of your markets, you can now register tax computation on their systems (SalesInvoice). This is useful for tax returns in the US.

​
πŸ—“
April 12, 2022

​React components​

Klarna and Checkout.com integration in v3.10.0

React components v3.10.0 now supports Klarna and Checkout.com out-of-the-box (in addition to all the other payment gateway integrations).

​
πŸ—“
April 4, 2022

​Core API​

Checkout.com integration and updates to importable resources

Commerce Layer API now supports Checkout.com out-of-the-box (in addition to all the other payment gateway integrations). Bundles and SKU options have been added to the list of importable resources.

​
πŸ—“
March 17, 2022

​Hosted checkout​

Improved flow in v1.5.0

Hosted checkout v1.5.0 features robust improvements on how the application state is managed, which translates into a speed boost and offers a way to hook on each user action. The checkout flow has also been streamlined by introducing auto-selection of the shipping method when the shipment only has a single shipping method available.

​
πŸ—“
March 16, 2022

​Core API​

Stripe integration optimizations

In order to prevent errors in some edge cases where an order can be placed after the authorization was created by the Stripe webhook, a large set of optimizations has been implemented on our Stripe integration. Among them:
  • A control on order placement to check if the payment has been authorized has been introduced.
  • Previously created Stripe's payment sources are now nullified in case of order edit/refresh. The related authorizations are voided.
  • The _nullify_payment_source trigger attribute has been added to the order object in case you want to force the payment source nullification.
On top of that, a payment source nullification automation has been introduced for all intent-based payments (e.g. Stripe, Klarna, PayPal).

​
πŸ—“
February 9, 2022

​Core API​

PayPal integration updates

Our PayPal integration has been updated and now uses the most recent PayPal V2 libraries (no changes to the developer experience and integration functionalities).

​
πŸ—“
January 19, 2022

​Core API​

Klarna integration

Commerce Layer API now supports Klarna out-of-the-box (in addition to all the other payment gateway integrations).

​
πŸ—“
January 18, 2022

​Hosted checkout​

Bundles management in v1.1.0

Hosted checkout v1.1.0 now supports bundles, showing them in the order summary as a single line item and unpacking them in terms of single SKUs inside each shipment.

​
πŸ—“
November 23, 2021

​React components​

Switched to the new SDK in v2.47.0

React components v2.47.0 start using our new SDK (the previous one is now deprecated, so make sure to update your code ASAP if you're still using it). This comes with improved performance, stability, and a lot of other new features.
Last modified 8d ago