Skip to main content
Built for platforms that sell on behalf of many merchants — storefront builders, marketplaces, booking and delivery apps. You integrate once; each of your stores is a sub-merchant under your Rach account.
Integrating now? Follow the step-by-step Platform integration guide, with code for every call, a webhook handler and a daily payout job.

How the money moves

  1. A customer pays a checkout created for one of your stores.
  2. Rach takes its fee (0.5%, capped at 1 USD — or the customer pays it with fee_bearer: "customer").
  3. Your platform_fee is yours. The rest — the price less your platform fee, plus any overpayment — is the store’s share.
  4. Both sit in your Rach balance, but the store’s share is ring-fenced: you cannot spend, swap or withdraw it as your own. It can only be paid out to that store’s own bank account.
If Rach’s fee is larger than your platform_fee (merchant-borne fee), the difference comes out of the store’s share.

Create a store

reference is your own ID for the store and is unique on your account; repeating a create with the same reference and name returns the same store (200 instead of 201). Anywhere a store is named in a path or a checkout, its sm_… ID or your reference both work. A disabled store cannot take new checkouts or payouts; its share stays ring-fenced.

Charge for a store

Add sub_merchant and, optionally, platform_fee (in the checkout’s currency) to an ordinary checkout:
The response and the payment.confirmed webhook carry sub_merchant (the sm_… ID), platform_fee (converted to dollars at the checkout’s rate) and, once paid, fee (Rach’s fee taken). The hosted payment page shows the store’s name with “via” your platform’s name. Neither the split nor the store ID is shown to the customer.

Store bank accounts

Each store can keep up to five Nigerian bank accounts, one of them primary. Bank codes come from GET /api/v1/banks?country=NG. An account added or changed with an API key can receive payouts only after 24 hours (payable_after), so a leaked key cannot add an account and pay to it at once. Accounts added in the dashboard are payable immediately.

Pay a store

  • amount is in naira (what the store receives) or in USD (what leaves the store’s share). Rach’s flat 1 USD bank fee comes out of the store’s share.
  • Without bank_account_id, the store’s primary account is paid.
  • reference is your idempotency key: repeating it returns the first payout.
  • POST …/payouts/quote with the same body prices a payout without locking anything.
  • GET …/payouts lists a store’s payouts; statuses are those of withdrawals. A failed payout returns the whole amount to the store’s share.
  • When a payout finishes you receive a signed payout.completed or payout.failed webhook with the naira paid, the rate and the bank reference.

Turning on payouts by API key

Payouts are always available from the dashboard to a team member with the withdrawal permission (and 2FA when enabled). Paying stores by API key is off until a workspace owner switches it on under Platform → API payouts, with a 2FA code. While it is off, the endpoint answers 403 with api_payouts_disabled. Payouts by API key can only ever reach a store’s own bank accounts.

From the dashboard

Payment gateway → Stores shows how many stores you have, what you hold for them and what is yours, and the Payouts by API key switch. Click a store to:
  • see what is held for it, and disable or re-enable it;
  • add bank accounts (up to five), make one primary, or remove one;
  • pay it: enter naira to receive or dollars to send, see the live quote (rate, 1 USD fee, what leaves its share), and request the payout (with your 2FA code if enabled);
  • follow its payouts and its ledger.
Payment links (on the Payment links tab) can be created for a store too: choose the store and your platform fee in the form.

Fees