Skip to content
Last updated

Dime Bridge

Dime Bridge v2 lets a marketplace merchant take payments on behalf of other merchants it has linked. Every link is consented to by the linked merchant, every payment names one linked merchant, and payouts to several merchants go through Bridge transfers.

All endpoints are on the Partner API (/dapi/v2) and use the marketplace's own API key (X-Dime-Client header plus its secret key as Authorization: Bearer).

Replacing the old split? See Migrating from v1 split. The previous guide is kept as Dime Bridge v1 split.

Concepts

TermMeaning
MarketplaceThe merchant whose API key makes the calls. Needs Dime Bridge enabled.
Linked merchantA Dime merchant that agreed to let the marketplace transact for it.
Bridge request (token brq…)The marketplace's invitation to a merchant.
Bridge linkA short-lived, single-use URL that opens co-branded onboarding or approval. It has no token; the URL is its only identifier.
Bridge merchant (token brm…)The active link between the marketplace and one linked merchant. Its token is the destination you pay.
Bridge feeWhat the marketplace keeps from a Bridge payment.
Bridge transfer (token btr…)Money moved from the marketplace's wallet to a linked merchant's wallet.

Every Bridge record is named by its token, like every other v2 object: in URLs, in request fields and in webhooks. Database ids are never returned and are not accepted.

1. Invite a merchant

POST /dapi/v2/bridge/requests
{
  "email": "vendor@example.com",
  "account_type": "standard",
  "capabilities": { "payments": true, "transfers": true },
  "prefill": {
    "business_name": "Jane's Store",
    "business_type": "SOLE_TRADER",
    "first_name": "Jane",
    "last_name": "Doe",
    "phone_number": "+18765550123",
    "website_url": "https://janestore.example",
    "mcc": "5734",
    "address_street": "1 Market St",
    "address_city": "Kingston",
    "address_country": "JM"
  },
  "return_url": "https://marketplace.example/dashboard",
  "refresh_url": "https://marketplace.example/bridge/refresh?req=brq_ksV-MbRi_uWgDF4iD_jNf6oBHl_PIq3pl8",
  "metadata": { "vendor_id": "v_123" }
}
  • account_type: only standard (a full Dime merchant) is available. express (a merchant bound only to your marketplace) is reserved and currently returns parameter_unsupported.
  • prefill: anything you already know. It is filled in during signup so the merchant does not retype it. Each field must match the formats and lists in Prefill fields; a bad value rejects the request. A prefilled MCC still goes through Dime's compliance review.
  • status stays pending until the request is resolved. The response never tells you whether the email already has a Dime account.

Other endpoints: GET /bridge/requests, GET /bridge/requests/:token, POST /bridge/requests/:token/cancel. Requests expire after 30 days.

Prefill fields

Every prefill field is optional. Dime checks each value against the same rules a merchant would face signing up directly, and normalizes it before storing it:

  • Unknown keys, null and empty strings are dropped. Text is trimmed and repeated spaces are collapsed.
  • <, > and control characters are rejected in every field.
  • The first invalid field rejects the whole request with 400 parameter_invalid and param set to prefill.<field>. Nothing is created.
  • The stored, normalized values are what GET /bridge/requests/:token returns.
FieldAccepted valuesStored as
business_nameText, up to 100 characters.As sent.
legal_nameText, up to 100 characters.As sent.
business_typeSOLE_TRADER, PARTNERSHIP, LIMITED_LIABILITY_COMPANY or NON_PROFIT. Case does not matter; spaces and hyphens count as underscores (sole trader works).Upper case, e.g. SOLE_TRADER.
first_name, last_nameUp to 50 characters. Letters in any alphabet, spaces, apostrophes, hyphens and periods. No digits or other symbols.As sent.
phone_numberA number that is valid for its country's numbering plan. Send international format (+18765550123). A national number (876-555-0123) is accepted only when you also send address_country (or country); it is read as a number in that country.E.164, e.g. +18765550123.
website_urlAn absolute https:// or http:// URL on a public domain name, up to 2048 characters. No IP addresses, localhost or user:password@. A bare domain such as janestore.example is rejected.Normalized URL, e.g. https://janestore.example/.
mccA 4-digit code from Supported MCCs. A number such as 742 is padded to 0742. Dime still reviews a prefilled MCC before the merchant is approved.4-digit string.
address_countryISO 3166-1 alpha-2 (JM), alpha-3 (JAM) or the English country name (Jamaica).Alpha-2, e.g. JM.
countrySame as address_country. Prefer address_country; if you send both, they must be the same country.Alpha-2.
currencyAn ISO 4217 code Dime supports for merchants (list below). When a country is sent, it must be USD or that country's local currency (JMD for JM).Upper case, e.g. JMD.
address_streetText, up to 200 characters.As sent.
address_city, address_stateText, up to 100 characters each.As sent.
address_postal_codeUp to 12 letters, digits, spaces and hyphens, starting and ending with a letter or digit.Upper case, e.g. JMAAW10.

Business types

ValueUse for
SOLE_TRADEROne person trading in their own name, including registered business names.
PARTNERSHIPTwo or more owners trading together without incorporating.
LIMITED_LIABILITY_COMPANYAn incorporated company (Ltd, LLC, Inc).
NON_PROFITCharities, churches, NGOs and registered associations.

Phone numbers by country

Numbers are checked against each country's numbering plan, so area codes and lengths must be real. Examples of valid numbers:

CountryFormatExample
Jamaica (JM)+1 876 or +1 658, then 7 digits+18762101234
Trinidad and Tobago (TT)+1 868, then 7 digits+18682911234
Barbados (BB)+1 246, then 7 digits+12462501234
Bahamas (BS)+1 242, then 7 digits+12423591234
Cayman Islands (KY)+1 345, then 7 digits+13453231234
Antigua and Barbuda (AG)+1 268, then 7 digits+12684641234
Saint Lucia (LC)+1 758, then 7 digits+17582845678
Grenada (GD)+1 473, then 7 digits+14734031234
Guyana (GY)+592, then 7 digits+5926091234
Suriname (SR)+597, then 6 or 7 digits+5977412345
United States (US) / Canada (CA)+1, then a 10-digit number+12015550123
United Kingdom (GB)+44, then 9 or 10 digits+447400123456

Every other country follows its own numbering plan in the same way.

Supported currencies

AED, ANG, AOA, ARS, AUD, AWG, BBD, BDT, BGN, BHD, BOB, BRL, BSD, BWP, BZD, CAD, CHF, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, DZD, EGP, ETB, GBP, GHS, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, JMD, JOD, JPY, KES, KHR, KRW, KWD, KYD, LAK, LBP, LKR, LYD, MAD, MMK, MNT, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PHP, PKR, PLN, PYG, QAR, RON, RUB, RWF, SAR, SDG, SEK, SGD, SRD, THB, TND, TRY, TTD, TWD, TZS, UGX, USD, UYU, VES, VND, XAF, XCD, XOF, ZAR, ZMW, ZWL.

Example error

{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "prefill.mcc 1234 is not on Dime's supported MCC list. See the Dime Bridge guide for the list.",
    "param": "prefill.mcc"
  }
}

Supported MCCs

MCCCategory
0742Veterinary Services
0763Agricultural Co-operatives
0780Horticultural / Landscaping Services
1520General Contractors – Residential & Commercial
1711Air Conditioning, Heating, & Plumbing Contractors
1731Electrical Contractors
1740Masonry, Tile Setting, Plastering Contractors
1750Carpentry Contractors
1761Roofing, Siding, & Sheet Metal Contractors
1771Concrete Work Contractors
1799Special Trade Contractors (Not Elsewhere Classified)
2741Miscellaneous Publishing and Printing
4011Railroads – Freight
4111Local Suburban Commuter Passenger Transportation & Ferries
4112Passenger Railways
4119Ambulance Services
4121Taxicabs, Limousines, & Ride-Sharing Services
4131Bus Lines
4214Motor Freight Carriers, Trucking, & Moving Companies
4215Courier Services (Air/Ground) & Express Delivery
4411Cruise Lines & Steamships
4511Airlines & Air Carriers (Not Elsewhere Classified)
4582Airports, Flying Fields, & Terminals
4722Travel Agencies & Tour Operators
4784Tolls & Bridge Fees
4812Telecommunication Equipment & Telephone Sales
4814Telecommunication Services
4816Computer Network / Information Services
4829Wire Transfers & Money Orders
4899Cable, Satellite, & Other Pay TV/Streaming Services
4900Utilities – Electric, Gas, Water, Sanitary
5045Computers, Peripherals, & Software (Wholesale)
5111Stationery, Office Supplies, & Printing Paper
5122Drugs, Proprietaries, & Druggist Sundries
5200Home Supply Warehouse Stores
5211Lumber & Building Materials Stores
5251Hardware Stores
5300Wholesale Clubs
5310Discount Stores
5311Department Stores
5411Grocery Stores & Supermarkets
5462Bakeries
5511Car and Truck Dealers (New & Used)
5541Service Stations (With or Without Ancillary Service)
5542Automated Fuel Dispensers (AFD)
5611Men's & Boys' Clothing Stores
5621Women's Ready-to-Wear Stores
5651Family Clothing Stores
5661Shoe Stores
5712Furniture, Home Furnishings, & Equipment Stores
5722Household Appliance Stores
5732Electronics Stores
5734Computer Software Stores
5811Caterers
5812Eating Places & Restaurants
5813Drinking Places (Bars, Taverns, Nightclubs)
5814Fast Food Restaurants
5815Digital Goods – Books, Movies, Music
5816Digital Goods – Games
5817Digital Goods – Applications (Excluding Games)
5818Digital Goods – Large Merchants
5912Drug Stores & Pharmacies
5941Sporting Goods Stores
5942Book Stores
5967Direct Marketing – Inbound Teleservices
5968Direct Marketing – Continuity / Subscription Merchants
5969Direct Marketing – Other Direct Marketers
7011Lodging – Hotels, Motels, & Resorts
7210Laundry, Cleaning, & Garment Services
7230Barber & Beauty Shops
7273Dating Services
7276Tax Preparation Services
7311Advertising Services
7372Computer Programming, Data Processing, & Systems Design
7392Management, Consulting, & Public Relations Services
7399Business Services (Not Elsewhere Classified)
7538Automotive Service Shops
7995Gambling Transactions, Lotteries, & Betting
7997Membership Sports & Recreation Clubs
8011Doctors & Physicians
8021Dentists & Orthodontists
8062Hospitals
8111Legal Services & Attorneys
8211Elementary & Secondary Schools
8220Colleges, Universities, & Professional Schools
8398Charitable & Social Service Organizations
8931Accounting, Auditing, & Bookkeeping Services
8999Professional Services (Not Elsewhere Classified)
9211Court Costs, Alimony, & Child Support Payments
9222Government Fines & Penalties
9311Tax Payments
9399Government Services (Not Elsewhere Classified)
9402Postal Services – Government Only

2. Send the merchant to onboarding

POST /dapi/v2/bridge/requests/:token/links
{ "object": "bridge_link", "url": "https://portal.dimepay.app/bridge/onboard/brl_…", "bridge_request": "brq_ksV-MbRi_uWgDF4iD_jNf6oBHl_PIq3pl8", "expires_at": "…" }

Redirect the merchant's browser to url.

  • Single use. Once it is opened, it cannot be opened again.
  • Short-lived. If unused, it expires after 10 minutes.
  • Refresh. If the link has expired or was already used, the page sends the merchant to your refresh_url. Your server then creates a new link and redirects the merchant to it. Creating a new link cancels any earlier link that has not been opened.

What the merchant sees:

  • Already a Dime merchant (Dime checks the email when you create the request; you are not told):
    • Not signed in: they sign in as the invited email and come back to the page.
    • Signed in as the invited email: they pick which of their stores to link, enter a code emailed to the invited address, and approve or decline.
    • Signed in as someone else: they are asked to sign out and reopen the link.
  • No Dime account: co-branded signup, prefilled from prefill, with an explicit consent step. If someone is signed in on that browser, they are asked to sign out first. The link is created when they submit onboarding (bridge_merchant.activated, payments_enabled: false). When Dime approves them you receive bridge_merchant.updated with payments_enabled: true.

Signing in or out on the way does not use up the link.

Afterwards the merchant is sent back to your return_url.

3. Linked merchants

GET /bridge/merchants, GET /bridge/merchants/:token, POST /bridge/merchants/:token/revoke.

payments_enabled is true when the link is active, the merchant granted payments, and Dime has approved the merchant. The linked merchant can also revoke the link from its portal.

4. Take a Bridge payment

Add bridge to POST /orders, POST /payments/hosted-page, POST /payments/sale or POST /payments/auth, or to a Web SDK checkout.

"bridge": { "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP", "merchant_of_record": "marketplace", "fee": 10.00 }
"bridge": { "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP", "merchant_of_record": "marketplace", "amount": 90.00 }
"bridge": { "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP", "merchant_of_record": "linked_merchant", "fee": 10.00 }

merchant_of_record defaults to marketplace.

marketplacelinked_merchant
Whose sale it is / processor profile / descriptorMarketplaceLinked merchant
Dime's processing fee paid byMarketplaceLinked merchant
Linked merchant receivesamount, or total − feetotal − Dime fee − fee
Marketplace receivestotal − linked amount − Dime feefee
Chargeback liabilityMarketplaceLinked merchant
Allowedfee or amountfee only

Example: total 100.00, fee 10.00, Dime fee 3.20, marketplace is merchant of record. The customer pays 100.00, the linked merchant gets 90.00 and the marketplace keeps 6.80.

The payment is rejected if any party's share would be negative.

Other rules:

  • Only one linked merchant per payment. To pay several, see Bridge transfers.
  • merchant_descriptor_override is accepted on these endpoints. It replaces the card-statement name, which by default is the merchant of record's business name.
  • Bridge payments cannot be subscriptions yet.
  • When the linked merchant is merchant of record, you can still retrieve, capture, void and refund the payment with your own key.
  • When a payment settles, the other party's share is recorded as a separate fee or payout transaction (bridge.role is marketplace_fee or linked_payout, and bridge.parent_transaction_id is the main payment's token). Sending its token to PUT /payments/refund refunds the main payment it belongs to: amount is the customer refund amount (omit it to refund the rest of the payment), and the refund flags decide how the shares move. It can't be captured or voided on its own. The linked merchant can't refund your payment through its payout record.

Responses include:

"bridge": { "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP", "merchant_of_record": "marketplace", "fee": 10, "amount": null,
            "linked_amount": 90, "marketplace_net": 6.8, "dime_fee": 3.2, "refunds": null }

The figures are estimates until the payment settles. After settlement they are the actual amounts.

Web SDK checkout

Put the same bridge block in the order claims you sign into the SDK's data:

{ "id": "ORDER-001", "currency": "JMD", "total": 2950, "subtotal": 2950,
  "bridge": { "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP", "merchant_of_record": "linked_merchant", "fee": 200 } }
  • Web SDK 2.x sends it to POST /dapi/v2/orders/sdk. onSuccess receives the payment, the same object POST /payments/sale returns, including bridge.
  • Web SDK 1.x (/api/v1/orders/sdk) also accepts bridge. Don't send it together with the deprecated split.
  • The same rules apply as on the other endpoints. In addition, a Bridge order can't use settlement_override or usd_preferred, because the shares are worked out in the charge currency.
  • Webhooks go to you, the merchant whose key signed the order, even when the linked merchant is merchant of record.

5. Refunds

PUT /payments/refund accepts optional flags, like Stripe's reverse_transfer and refund_application_fee:

{ "transaction_id": "…", "amount": 40.00,
  "bridge": { "refund_from_linked_account": true, "refund_bridge_fee": true } }

A full refund unwinds everything, whatever the flags. When the payment ends fully refunded, each party gives back all it received, and Dime and the bank return their fees. If earlier partial refunds were split differently, the refund that completes the payment debits or credits back the difference.

Partial refunds: the flags decide. Wallets pay the refund amount in full; fees are returned when the payment is fully refunded. Example: a 100.00 payment where the linked merchant got 90.00, the marketplace kept 6.80 and the fees were 3.20; a refund of 40:

Merchant of recordFlagsRefund of 40
MarketplacenoneMarketplace −40
Marketplacerefund_from_linked_accountLinked merchant −40, marketplace −0 (keeps its commission; capped at what the linked merchant received)
MarketplacebothLinked merchant −36, marketplace −4
Marketplacerefund_bridge_fee onlyparameter_invalid
Linked merchantnoneLinked merchant −40
Linked merchantrefund_bridge_feeLinked merchant −36, marketplace −4 (fee 10 of 100)
Linked merchantrefund_from_linked_accountparameter_invalid

reverse_linked_share is still accepted as a deprecated name for refund_from_linked_account.

Refund fee. The linked merchant always pays the refund fee: the marketplace sells on its behalf.

Refund transactions. The merchant of record's refund is the refund transaction the API returns. When the other party pays part of a refund, or the refund fee, it gets its own refund transaction (bridge.role is counterparty_refund) with its ledgers, so it sees the refund in its transaction list. That transaction refunds its fee or payout record, not the main payment. Refund and void transactions carry the id the processor gave them in external_transaction_id.

Other rules:

  • Every channel. These rules apply to refunds from any channel, including the dashboard. Only the v2 API can send the flags; other channels use the no-flags behaviour.
  • One ledger job. The Bridge part of a refund is written in the same ledger job as the rest of the refund. Running totals appear on the payment's bridge.refunds: refunded_total, linked_debited, marketplace_debited and fees_returned.
  • Balance check. Before the customer is refunded, the party paying must have enough available balance, including the refund fee for the linked merchant. If its credit from this payment is still on hold, that held money counts.
  • Chargebacks. The merchant of record is debited the whole charge, including the other party's share. A won chargeback credits it back. Recovering the other party's share is up to the marketplace.

6. Bridge transfers

POST /dapi/v2/bridge/transfers
Idempotency-Key: 6a1f…
{ "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP", "amount": 25.00, "currency": "JMD",
  "source_transaction_id": "txn_PBFpP02o_roeIDWon_7xBHS7NT_d9FsXV1", "description": "Order 1234 vendor payout",
  "items": [{ "name": "Handmade mug", "price": 12.50, "quantity": 2, "sku": "MUG-01" }] }

The money moves from the marketplace's available wallet balance to the linked merchant's wallet. The transfer is returned pending and becomes complete once the money has moved, normally within seconds; bridge_transfer.created is sent then. A pending transfer already counts against the marketplace's available balance. The link must have the transfers capability.

Each transfer shows up as a transaction on both sides, each with its own order (origin_type BRIDGE_TRANSFER) holding the items:

  • The linked merchant sees an incoming "Dime Bridge transfer from {marketplace}".
  • You see an outgoing "Dime Bridge transfer to {linked merchant}".

The response gives both as tokens: transaction (yours) and destination_transaction (the linked merchant's). Payment refund endpoints don't accept these transactions; reverse the transfer instead.

Other rules:

  • The currency must match the wallet; there is no FX.
  • With source_transaction_id, total transfers for that payment cannot exceed what the marketplace netted from it.
  • Sending the same Idempotency-Key again returns the original transfer. Reusing the key with different parameters returns 409.

To read transfers: GET /bridge/transfers (filter by destination or source_transaction_id) and GET /bridge/transfers/:token.

Reversing a transfer

Take back all or part of a transfer, for example when the order behind it is refunded or an item comes back:

POST /dapi/v2/bridge/transfers/btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w/reversals
Idempotency-Key: 9c2e…
{ "amount": 10.00, "description": "Order 1234 item returned" }

Leave out amount (send {}) to take back everything not yet reversed. Only a complete transfer can be reversed. The response is a bridge_transfer_reversal with status: pending; it becomes complete once the money has moved from the linked merchant's wallet back to the marketplace's, and bridge_transfer.reversed is sent then:

{ "token": "trr_…", "object": "bridge_transfer_reversal", "transfer": "btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w",
  "amount": 10, "currency": "JMD", "status": "pending", "description": "Order 1234 item returned", "metadata": null, "created_at": "…" }
  • Like a refund: each side gets a refund transaction on the transfer's order, pointing at the transfer's transaction. It is PARTIAL_REFUND, or REFUND once everything is reversed, after which the orders show REFUNDED. Send items to show what is being reversed; they appear on both refund transactions.
  • Partial reversals: you can make several, up to the transfer amount. The transfer shows amount_reversed. Once it's all back, reversed is true and status is reversed.
  • The linked merchant's balance: its available balance must cover the reversal. If it has already spent or withdrawn the money, the request fails with insufficient_balance and nothing moves.
  • Revoked links: a transfer can still be reversed after the link is revoked.
  • Transferring again: money reversed from a transfer with source_transaction_id counts again towards what you can transfer for that payment.
  • Idempotency: sending the same Idempotency-Key again returns the original reversal. Reusing it with a different amount returns 409.
  • Webhook: you receive bridge_transfer.reversed with the reversal and the updated transfer.

To read a transfer's reversals: GET /bridge/transfers/:token/reversals.

Webhooks

Payment, refund and chargeback webhooks for a Bridge payment go to the merchant that created it, the marketplace, even when the linked merchant is merchant of record. They carry the main payment's token. The linked merchant receives no webhooks for payments you create, and fee and payout transactions send none.

These Bridge events are also sent to the marketplace's webhook endpoints:

  • bridge_request.created, bridge_request.approved, bridge_request.declined, bridge_request.cancelled, bridge_request.expired
  • bridge_merchant.activated, bridge_merchant.updated, bridge_merchant.revoked
  • bridge_transfer.created, bridge_transfer.failed

Migrating from v1 split

v1v2
split: [{ merchant_id: "m…", fee }] with items tagged by merchant_idbridge: { destination: "<linked merchant token>", fee }
Any merchant token could be namedOnly linked merchants (consented, approved)
Each child merchant pays MDRThe merchant of record pays MDR (see table above)
Several merchants per paymentOne per payment, plus Bridge transfers
Full refunds onlyFull and partial, with reversal flags

Steps:

  1. For each merchant you split to today, create a Bridge request and have the merchant approve it.
  2. Replace split with bridge.
  3. For multi-vendor carts, take the payment with merchant_of_record: "marketplace", then send one POST /bridge/transfers per vendor with source_transaction_id.

Reference