List Merge Candidates for Sales Order
GET/api/v2/sales-orders/:salesOrder/merge-candidates
Returns a list of open sales orders eligible to be merged into a single shipment with the anchor sales order.
Eligibility rules — a candidate is included only if it:
- Is not the anchor itself.
- Has order_status of
openorreserved. - Ships from the same single warehouse as the anchor (across all of its lines).
- Has the same shipping address signature (name + company + address1 + address2 + city + province + zip + country_code) as the anchor.
- Is not already a member of any open SalesOrderMergeGroup.
- Has no in-progress SalesOrderFulfillment (submitted, processing, or shipped).
If the anchor itself has no shipping address, an empty list is returned.
Response shape — data[] is an array of MergeCandidateData:
sales_order_id(int)sales_order_number(string)order_status(string — typicallyopenorreserved)customer_name(string | null)integration_instance_name(string | null) — name of the sales channel's integration instance, when applicableintegration_instance_id(int | null)line_count(int)total_quantity(int)integration_matches_anchor(bool) —falsewhen the candidate is from a different sales channel/integration than the anchor; the UI should warn before merging.
Auth: Bearer token (scope rw:orders).
Request
Responses
- 200
Successful response