---
title: "Set up a marketplace"
description: "Choose the right seller boundary and route payouts without turning every seller into an app by default."
canonical: "https://studio.inttegro.dev/guides/set-up-a-marketplace"
format: inttegro-machine-docs/v1
language: "Ruby"
sdk_version: "v13.0.0"
reader_profile: optional
reader_manifest: "https://studio.inttegro.dev/machine/ruby/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 602
model_token_report: "https://studio.inttegro.dev/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["get_integration_guide","check_integration_readiness"]
estimated_tokens: 3789
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Choose the right seller boundary and route payouts without turning every seller into an app by default. This Ruby representation uses the selected SDK's native names wherever Studio has a verified mapping.

### Five questions

#### Q1. When should the reader use Set up a marketplace?

Use this guide when implementing the complete business outcome rather than an isolated request.

#### Q2. What is authoritative on this page?

The guide owns the business sequence and verification logic. Its linked API references own the exact request, response, state, and error contracts.

#### Q3. What page-specific constraint matters most?

Keep the documented ordering, trust boundary, idempotency behavior, and authoritative read-after-write verification intact.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `get_integration_guide`, `check_integration_readiness`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Use the guide’s explicit completion condition and verify the final resource through the documented lookup or lifecycle state; a successful redirect or accepted request may be intermediate. Continue with [Set up a platform](https://studio.inttegro.dev/machine/ruby/guides/set-up-a-platform.md) and [Set up financial accounts](https://studio.inttegro.dev/machine/ruby/guides/set-up-financial-account.md) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`get_integration_guide`](https://studio.inttegro.dev/machine/ruby/inttegro-mcp/tools.md#get_integration_guide) — read-only integration guidance. Returns a focused implementation sequence and canonical Studio links for authentication, checkout, orders, catalog, messaging, idempotency, or testing.
- [`check_integration_readiness`](https://studio.inttegro.dev/machine/ruby/inttegro-mcp/tools.md#check_integration_readiness) — read-only integration guidance. Audits platform secret storage, server-runtime compatibility, idempotency, errors, state verification, checkout returns, and messaging consent without receiving source code or credentials.

## Document content

# Set up a marketplace

A seller is not automatically an Inttegro app. Start with the financial and security boundary you need: many marketplaces should use one app, connect seller-owned payout accounts, and select the destination on each order. Create child apps only when sellers need durable, independent Inttegro credentials, resources, settings, balances, payouts, or operator control.

## Prerequisites

- Identify who is the merchant boundary for customer payments and who owns reconciliation.
- Decide whether sellers will ever call Inttegro directly.
- Map each seller's payout account ownership and verification process.
- Complete [Design app boundaries](https://studio.inttegro.dev/machine/ruby/guides/design-app-boundaries.md) before choosing child apps.

## Choose the marketplace model

| Requirement                                                                           | One marketplace app                             | Child app per seller                                                 |
| ------------------------------------------------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------- |
| Seller needs an Inttegro API key                                                      | No                                              | Yes                                                                  |
| Seller must have isolated Inttegro customers, orders, settings, balances, and payouts | No                                              | Yes                                                                  |
| Marketplace controls checkout and seller routing                                      | Yes                                             | Possible, but often unnecessary                                      |
| Orders need different payout destinations                                             | Supported with order-level payout configuration | Each child configures its own financial accounts and payout settings |
| Marketplace wants one reconciliation boundary                                         | Yes                                             | No; reconciliation is divided by child app                           |
| Seller is merely a catalog participant                                                | Usually correct                                 | Usually too much isolation and credential overhead                   |

If the only seller-specific fact is “where should proceeds from this order go?”, prefer the one-app model. If a seller must operate as a separate Inttegro customer with its own secrets and financial state, use a child app.

## Model one app with seller financial accounts

In this model, the marketplace owns one Inttegro app and one trusted server integration. Each seller is an entity in your marketplace, not an Inttegro app.

1. Maintain a marketplace seller record with an internal seller ID and onboarding state.
2. [Connect a financial account](https://studio.inttegro.dev/machine/ruby/api/financial-accounts.md#connect-a-financial-account) inside the marketplace app using seller-approved details.
3. Verify the account is active, uses the required currency, and has push capability before making it selectable.
4. Store the returned financial-account ID against exactly one seller. Never accept a client-supplied account ID without resolving and checking that mapping server-side.
5. When you [create an order](https://studio.inttegro.dev/machine/ruby/api/orders.md#create-an-order), set the order's payout configuration to the mapped financial-account ID when that order should use seller-specific routing.
6. Persist the order-to-seller and order-to-financial-account decision for reconciliation.
7. Review the resulting order and payout records; do not treat successful account connection as proof that a payout occurred.

The order-level payout configuration overrides application-level payout settings for that order. It does not make the seller an app, issue the seller a credential, or create tenant isolation within the marketplace app. Your backend remains responsible for preventing one seller from reading or selecting another seller's resources.

> **Warning:**
>
> Never let a browser or seller-facing client submit an arbitrary `financial_account_id` as the final routing decision. Resolve the authenticated seller, select the account from your trusted mapping, and verify its current state on the server. A syntactically valid resource ID is not proof of ownership.

## Model sellers as child apps

Use child apps when seller independence is a product requirement rather than a routing convenience. For each seller:

1. Approve a durable seller boundary and decide credential and management ownership.
2. [Create and verify the child app](https://studio.inttegro.dev/machine/ruby/guides/onboard-child-apps.md); keep production and non-production sellers in separate parent environments.
3. If policy controls are enabled, apply the narrowest approved operating-policy snapshot.
4. Connect financial accounts and configure payout destinations using the child credential so the resources belong to the seller app.
5. Route every seller API call through the server-side tenant-to-app mapping. Do not choose credentials from a request parameter.
6. Reconcile orders, balances, and payouts within that child boundary.

Child apps increase operational work: credential delivery and rotation, policy rollout, app-specific support, reconciliation, and offboarding all become per-seller responsibilities. Do not take on that complexity unless it buys required isolation.

## Handle mixed-seller baskets honestly

The public order contract provides one order-level payout configuration, not a public instruction to split one order among an arbitrary number of seller destinations. Do not approximate a multi-seller split by inventing undocumented fields.

If a customer basket spans sellers, choose a model your public contract can represent—for example, creating separately accountable orders per seller—and make the customer experience and reconciliation consequences explicit. If your required settlement behavior cannot be expressed by the documented order and payout APIs, confirm the supported design with Inttegro before launch.

## Secure seller onboarding

Whether you choose one app or child apps:

- verify the seller through your own onboarding and authorization process before accepting financial details;
- collect financial-account data only in trusted server flows and restrict who can view it;
- never store Inttegro bearer keys in seller browsers, mobile apps, logs, or support systems;
- keep seller, app, financial-account, order, and payout mappings environment-specific;
- require an auditable operator action to replace a payout destination; and
- test wrong-seller resource IDs and ensure they cannot alter routing or reveal data.

Do not describe a connected financial account as “verified” unless its returned public state supports that statement. Likewise, do not describe a scheduled payout as delivered until the payout reaches the documented terminal state.

## Test routing and isolation

Simile is useful for validating order construction, client parsing, named error handling, and synthetic state without moving money. Create at least two synthetic sellers and assert that your server always chooses the account or app mapped to the authenticated seller.

That local test does not prove ownership of a live financial account, payout eligibility, seller authorization, or money movement. Complete those checks with non-production Inttegro credentials and controlled accounts before production traffic.

## Acceptance checklist

- The seller-to-app decision is documented, not inferred from seller count.
- In the one-app model, every financial account maps to one seller in a trusted registry.
- In the child-app model, every seller maps to one environment-specific app and secret reference.
- Order routing is decided server-side and recorded for reconciliation.
- Mixed-seller baskets use a documented order model.
- No test or production credential reaches a browser, log, repository, or Simile.
- Wrong-seller resource-access tests pass before launch.

## Change a seller's payout account safely

Treat payout destination replacement as a financial control, not an ordinary profile edit. Require a freshly authenticated seller or approved operator, validate the new account through the documented Financial Accounts API, and record who approved the change. Keep the previous mapping until the replacement is confirmed usable; do not route an order to an account merely because its ID was saved.

Before activating the replacement:

1. Resolve the seller from trusted server context.
2. Confirm the proposed financial account belongs to the same Inttegro app as the marketplace flow.
3. Check currency, lifecycle state, and push capability required by the payout contract.
4. Update the seller-to-account mapping atomically.
5. Preserve the old and new IDs, activation time, approver, and Inttegro request IDs for reconciliation.
6. Verify a controlled non-production order uses the new destination before relying on it for customer traffic.

Never update historical order routing records to make them appear to have used the new account. Reconciliation needs the destination decision that was active for each order.

## Offboard a seller

Stopping new listings is not enough. Disable new marketplace operations for the seller, identify open orders and refunds, review payouts already scheduled or in progress, and keep the financial-account and order mappings needed for reconciliation. Disconnect or replace a financial account only through its documented lifecycle; do not assume deleting the seller in your product cancels Inttegro operations.

For a child-app seller, revoke credentials when access should end and preserve the app ID and public relationship record. The public Apps API does not expose a general delete or resource-transfer operation, so confirm any additional lifecycle requirement before promising it to the seller.

## Reject marketplace anti-patterns

- One shared payout account ID accepted from every seller-facing client.
- Child apps created only to represent products, storefront pages, or short-lived campaigns.
- Seller app keys embedded in storefront JavaScript or mobile applications.
- A default seller destination used when the order-to-seller mapping is missing.
- One order described as split settlement when only one documented payout configuration was supplied.
- “Payout complete” shown from order creation or payout scheduling instead of the documented payout state.
- Seller support staff able to replace destinations without independent authorization and an audit record.

Failing closed is more productive than repairing misrouted money. If the seller, app, or financial-account mapping is ambiguous, stop order creation and surface an actionable configuration error to your operator.

## Related resources

- [Create an order](https://studio.inttegro.dev/machine/ruby/api/orders.md#create-an-order) - Exact order and payout-configuration contract.
- [Connect a financial account](https://studio.inttegro.dev/machine/ruby/api/financial-accounts.md#connect-a-financial-account) - Register a seller payout destination.
- [Set payout destinations](https://studio.inttegro.dev/machine/ruby/api/payouts.md#set-payout-destinations) - Configure application-level routing.
- [Set up financial accounts](https://studio.inttegro.dev/machine/ruby/guides/set-up-financial-account.md) - Prepare supported payout accounts.
- [Set up a platform](https://studio.inttegro.dev/machine/ruby/guides/set-up-a-platform.md) - Child-app tenant model and control-plane design.
