Settlement account routing
Route transactions to a specific settlement account by passing the settlement_account parameter in your API request.
When you operate multiple settlement accounts, pass settlement_account in your
API request to choose the account yourself. Pay.com sends the transaction to
that settlement account without applying your routing rules, and records the
routing methodology as merchant_provided.
When to choose the account yourself
Pass settlement_account when your backend already knows which acquirer to
use for a transaction. Common cases:
- Contractual obligations: certain transactions must settle through a specific provider regardless of routing logic.
- Your own routing logic: your code decides the account, for example to keep a customer's repeat payments on the account that approved their first one.
Supported resources
The settlement_account parameter is accepted when creating the following
resources:
| Resource | Endpoint | Use case |
|---|---|---|
| Charge | POST /v1/charges | Route a payment to a specific acquirer |
| Hold | POST /v1/holds | Authorize funds through a specific acquirer |
| Payment method | POST /v1/payment_methods | Vault a payment method against a specific account |
| Payment method verification | POST /v1/payment_methods/{id}/verify | Verify a saved card through a specific account |
| Payment session | POST /v1/sessions/payment | Book the session's payment to a specific account |
| Setup session | POST /v1/sessions/setup | Use a specific account for the session |
| Payout | POST /v1/payouts | Send funds through a specific acquirer |
Requirements
Before you begin, make sure you have the following:
- An
sk-pay-com-sandbox-API key forhttps://api.sandbox.pay.com/v1(see authentication). - At least two settlement accounts configured in your workspace. Go to Settings → Settlement Accounts to verify.
Route a transaction
Find the ID of the account you want, pass it in your request, and check which account processed the transaction.
- 1
Find your settlement account ID
Go to Settings → Settlement Accounts in the Pay.com dashboard. Each configured account displays its ID,
sa_followed by 18 to 20 digits (for example,sa_296645958265997349).
Copy the ID of the settlement account you want to route transactions to. You'll pass this value as the
settlement_accountparameter in your API requests.If you pass a
settlement_accountID that doesn't exist or isn't connected to your workspace, the API returns HTTP400with the messageSettlement account id is invalid. Check the ID in Settings → Settlement Accounts before you use it in requests. - 2
Pass
settlement_accountin your requestInclude the
settlement_accountparameter in your request body when creating a transaction. The following example creates a charge for $80.00 (amountis in minor units) and routes it to settlement accountsa_296645958265997349.curl -X POST https://api.sandbox.pay.com/v1/charges \ -u ':sk-pay-com-sandbox-…' \ -H "Content-Type: application/json" \ -H "idempotency-key: $(uuidgen)" \ -d '{ "amount": 8000, "currency": "usd", "source_data": { "type": "card", "card": { "number": "4242424242424242", "expiry_month": "12", "expiry_year": "2028", "cvv": "123", "name": "John Smith" } }, "settlement_account": "sa_296645958265997349" }'{ "id": "chrg_685125114794084352", "resource": "charge", "amount": 8000, "amount_human_readable": "80.00", "currency": "usd", "status": "succeeded", "payment_method": "pm_card_685125127054035968", "payment_method_details": { "card": { "brand": "visa", "last4": "4242", "exp_month": "12", "exp_year": "2028", "funding": "debit", "network": "visa" }, "type": "card" }, "underlying_processing_details": { "settlement_account": "sa_296645958265997349", "routing_details": { "selected_methodology": "merchant_provided" } }, "created": "2026-03-06T14:02:39.261Z", "test_mode": true }The same pattern works for holds, payment methods, payment method verifications, payment sessions, setup sessions, and payouts. Add the
settlement_accountfield to the request body, and Pay.com routes the resource to that account. If the account is disabled, Pay.com declines the payment instead of choosing another account. - 3
Verify the routing
Confirm that the transaction was processed through the correct settlement account. There are three ways to verify:
- API response: check
underlying_processing_details.settlement_accountin the response body. It confirms which account handled the transaction, androuting_details.selected_methodologyismerchant_provided. - Webhooks: listen for events like
charge.succeededorhold.requires_capture. The webhookdatafield contains the full resource object, includingunderlying_processing_details.settlement_account. See webhook events for the full list of events. - Dashboard: go to Activity → Transactions and check the Settlement Account column, or select the transaction to see its details.
The API response and the webhooks carry
underlying_processing_detailsonly when processor details are enabled for your account. Contact your Pay.com account team to enable them. - API response: check
Next steps
- How routing works: The order Pay.com follows to pick a settlement account.
- Routing rules: Route payments by conditions, splits, and fallbacks in the dashboard.
- Create a charge: Charge a card or saved payment method from your server with
POST /v1/charges.