---
schema_version: "1"
id: 68aebed1970d0b71188d196063b9d43dd79348f1f376213ce35cb0c280c6baf3
title: Merge Baskets Consistently with One Script
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_rn_25_10_merge_baskets.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_rn_25_10_merge_baskets.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2ce0bc2dfeb19934cff8b5744dccd1b21f7a0c8f04c58d8cf54c03afa20c6522
description: Use the same merge script across controller and REST API implementations by invoking the new dw.order.mergeBasket business hook. Invoke the hook by using either the transferBasket endpoint and the merge=true parameter or the HookMgr in a controller. The dw.order.mergeBasket business hook unifies discrepancies between controller and REST API merging strategies. Replace your previous merging methods with the new business hook.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Merge Baskets Consistently with One Script

Use the same merge script across controller and REST API implementations by invoking the new dw.order.mergeBasket business hook. Invoke the hook by using either the transferBasket endpoint and the merge=true parameter or the HookMgr in a controller. The dw.order.mergeBasket business hook unifies discrepancies between controller and REST API merging strategies. Replace your previous merging methods with the new business hook.

**Where:** This change applies to B2C Commerce.

#### See Also

- [SCAPI Release](https://developer.salesforce.com/docs/commerce/commerce-api/references/about-commerce-api/about.html#09172025)
- [transferBasket](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-baskets-v2?meta=transferBasket)
- [Hybrid Authentication](https://developer.salesforce.com/docs/commerce/commerce-api/guide/hybrid-authentication.html)