merchant_id is automatically resolved at payment time.
A merchant operating multiple franchise stores can assign different provider credentials (e.g., CIELO_456 for Cielo, ADYEN_789 for Adyen) to each store, and the system will pick the right one based on which provider processes the payment.
Key Concepts
- Organizational Scope: A seller is created under a specific
account_code, but is available organization-wide — any account within the same organization can reference that seller in payment requests. - Non-Blocking Resolution: Franchise resolution never blocks a payment. If no mapping exists or the service is unavailable, the payment proceeds with the default
merchant_idfrom the connection. - Polymorphic Detail: The
payment_methodarray uses a polymorphicdetailstructure. The shape of the detail object depends on thepayment_method_typefield (CARD→detail.card.provider,APPLE_PAY→detail.wallet.provider). - Soft Delete: Deleting a seller soft-deletes the record and all associated payment method data. Past payments are unaffected.
Authentication
All Sellers API endpoints require the following headers:| Header | Required | Description |
|---|---|---|
public-api-key | Yes | Your Yuno public API key. |
private-secret-key | Yes | Your Yuno private secret key. |
X-account-code | Yes | The account UUID identifier. |
X-Idempotency-Key | Recommended (POST) | Unique UUID for safe retries. |
Business Rules
- Uniqueness: One seller per
(account_code, merchant_seller_id). Within a seller, each(provider.id, payment_method_type)must be unique. - Multiple stores: A merchant can register multiple
merchant_seller_idvalues (one per franchise store). - Multiple providers: Each seller can have
payment_methodentries for multiple providers and payment method types. - Seller reference: Payments reference sellers via
seller_id(Yuno UUID) ormerchant_seller_id(merchant’s identifier) — mutually exclusive. - Field overrides: Seller fields sent in a payment request override stored values for that payment only — not persisted back.
- Resolution priority: Seller mapping takes precedence over the connection’s
merchant_id. If no mapping exists, the originalmerchant_idis used. - Organizational scope: Seller mappings are available at the organizational level — any account in the organization can use any seller registered under that organization.
- “Operates as Franchise” flag: When enabled on a connection, the integration logic uses the
merchant_idfrom the franchise mapping instead of the connection’smerchant_id. - Soft delete: Deleting a seller soft-deletes the record and all payment method data. Past payments are unaffected. Future payments fall back to the connection’s default
merchant_id. - Backward compatibility: When neither seller reference field is present, the feature is fully bypassed.
The Seller Object
Understand the structure and attributes of a seller identity.
Using Sellers in Payments
Learn how to reference sellers in your payment requests.