Links between Payout Module and Other Modules
This document showcases the module links defined between the Payout Module and other Commerce Modules.Summary
The Payout Module has the following links to other modules:| First Data Model | Second Data Model | Type | Description |
|---|---|---|---|
| Order | Payout | Stored - one-to-many | Associates an order with its payout transfers to sellers |
| Seller | PayoutAccount | Stored - one-to-one | Associates a seller with their payout account |
Order Module
Mercur defines a link between the Order Module’sOrder data model and the Payout Module’s Payout data model. This allows tracking which payouts were created for a specific order.
Retrieve with Query
To retrieve the payouts of an order with Query, passpayout.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the payouts of an order, use Link:- link.create
- createRemoteLinkStep
Seller Module
Mercur defines a link between the Seller Module’sSeller data model and the Payout Module’s PayoutAccount data model. This allows each seller to have a payout account for receiving payments from the marketplace.
Retrieve with Query
To retrieve the payout account of a seller with Query, passpayout_account.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the payout account of a seller, use Link:- link.create
- createRemoteLinkStep