Submerchants let a platform or marketplace represent the individual sellers (vendors) it processes payments on behalf of. Each submerchant is mapped to your payment providers using the provider's own submerchant identifier, so ProcessOut routes each payment to the correct account per gateway.
How it works
- Create a submerchant — one per seller (vendor) on your platform.
- Add a mapping per gateway — for each gateway configuration the seller can be paid through, register the provider-side submerchant id. A mapping is the link
submerchant,gateway_configuration) →psp_submerchant_id. - Charge with
submerchant_id— setsubmerchant_idon the invoice. This marks the payment as a marketplace payment: ProcessOut routes it only to gateways the submerchant has a mapping for, and forwards the matchingpsp_submerchant_idto the provider.
When you specify a
submerchant_iddirectly on an invoice, it will override theinvoice.submerchant.referencevalue. This means that the submerchant ID provided at the invoice level takes precedence over any submerchant reference configured in the submerchant object.

