Skip to main content

Links between Split Order Payment Module and Other Modules

This document showcases the module links defined between the Split Order Payment Module and other Commerce Modules.

Summary

The Split Order Payment Module has the following links to other modules:
First Data ModelSecond Data ModelTypeDescription
OrderSplitOrderPaymentStored - one-to-oneAssociates an order with its split payment record tracking the seller’s payment portion

Order Module

Mercur defines a link between the Order Module’s Order data model and the Split Order Payment Module’s SplitOrderPayment data model. This allows tracking payment amounts (authorized, captured, refunded) specific to each seller’s portion of an order in a multi-vendor marketplace.

Retrieve with Query

To retrieve the split order payment of an order with Query, pass split_order_payment.* in fields:
const { data: orders } = await query.graph({
  entity: "order",
  fields: [
    "*",
    "split_order_payment.*",
  ],
})

// orders[0].split_order_payment
To manage the split order payment of an order, use Link: