Skip to content

Direct settlement

A direct settlement is a global collection where the payer pays local currency and receives USDT or USDC in their own crypto wallet. The provider collects the money and sends the crypto to the wallet address you supply. Two providers do this:

Provider Code How the payer pays
Yellow Card yc Bank transfer (EFT in South Africa) or mobile money
Accrue acr Mobile money to a local agent, e.g. M-Pesa in Kenya

Use whichever is assigned to your account and offered in the payer’s country. When both are, you choose.

It uses the same endpoint as any collection, POST /api/global/payments with request_type: payment, plus three crypto fields and payment_config.payment_category: "onramp".

  • The CRYPTO product must be enabled on your account. Without it, every direct settlement request is refused. Ask FinoQ to enable it.
  • Yellow Card (yc) or Accrue (acr) must be assigned to your account and offer a deposit network in the payer’s country. Discovery only lists the providers assigned to you. See discovery.
  • KYC as for collections. Direct settlements are collections, so the same KYC tier rules apply. See KYC tiers & limits.
asset_type asset_network Yellow Card Accrue Wallet address format
USDT TRC20 ✓ Tron, starts with T (34 characters)
USDT CELO ✓ ✓ EVM, 0x followed by 40 hex characters
USDT SOL ✓ Solana, base58 (32–44 characters)
USDT POL ✓ EVM, 0x followed by 40 hex characters
USDC ERC20 ✓ EVM, 0x followed by 40 hex characters
USDC SOL ✓ Solana, base58 (32–44 characters)
USDC BASE ✓ EVM, 0x followed by 40 hex characters

Values are case-insensitive. Any other pair is refused. The provider can also refuse a pair in some countries even when it is listed here. In that case its reason comes back in error_message.

  1. Discover the deposit networks for the payer’s country and pick a provider.
  2. Create the direct settlement with the token, network and the payer’s wallet address.
  3. Show the payer how to pay: bank details, a phone prompt, or an agent to pay.
  4. Wait for the payment to clear. The result arrives on your callback URL.
  5. The provider sends the crypto to the payer’s wallet on-chain.
Terminal window
curl "$PH_BASE_URL/api/global/discovery/discover-rails?country=ZA" \
-u "$PH_API_USERNAME:$PH_API_PASSWORD"

Look under provider_networks.yc and provider_networks.acr for a network with ramp_type: "deposit":

  • Yellow Card: channel_type: "bank" for a bank transfer, or "momo" for mobile money.
  • Accrue: channel_type: "momo". Its network_code names the method, e.g. mpesa.

If neither provider is listed, the payer’s country has no direct settlement on your account. Copy the network’s network_id, network_name, network_code and channel_id into provider_config, as for any collection. See How routing works. Respect the network’s min_amount and max_amount.

On top of a normal collection, send:

Field Value
provider yc or acr
transaction_channel bank or momo, matching the network’s channel_type
provider_config.account_type Same as transaction_channel
provider_config.asset_type The token, USDT or USDC
provider_config.asset_network The network, from the table above
provider_config.crypto_address The payer’s wallet address on that network
payment_config.payment_category onramp
payment_config.account_number The payer’s phone number, in international format

amount and currency are the local amount the payer pays, e.g. 1500 ZAR, not a crypto amount. Yellow Card collections also require customer.address. Accrue needs customer.email and matches the agent payment to customer.phone.

The examples below are a Yellow Card bank direct settlement. For mobile money, set transaction_channel and account_type to momo, add recipient_type: "MSISDN", and use a momo network from discovery. For Accrue, also set provider to acr and pick USDT on CELO.

Terminal window
curl -X POST "$PH_BASE_URL/api/global/payments" \
-u "$PH_API_USERNAME:$PH_API_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"request_type": "payment",
"transaction_channel": "bank",
"provider": "yc",
"amount": 1500,
"currency": "ZAR",
"country": "ZA",
"reason": "Buy USDT",
"customer": {
"first_name": "Thandi",
"last_name": "Nkosi",
"email": "thandi@example.com",
"phone": "+27821234567",
"dob": "1992-04-18T00:00:00Z",
"country": "ZA",
"address": { "line_1": "12 Loop Street, Cape Town", "country": "ZA" }
},
"vendor_config": { "vendor_id": 63 },
"provider_config": {
"network_id": "<network_id from discovery>",
"network_name": "<network_name from discovery>",
"network_code": "<network_code from discovery>",
"channel_id": "<deposit channel_id from discovery>",
"account_type": "bank",
"asset_type": "USDT",
"asset_network": "TRC20",
"crypto_address": "TFtbBr7yW3kXqHn2Vd8sJpLmZ4cRa9Q2hz"
},
"payment_config": {
"reference": "onramp_ORD-2026-118",
"account_number": "+27821234567",
"remark": "USDT purchase",
"payment_category": "onramp",
"callback_url": "https://your-system.com/webhooks/finoq",
"redirect_url": "https://your-system.com/onramp/return"
}
}'

What comes back depends on the provider and rail.

A 200 means Yellow Card accepted the order and quoted the crypto. For a bank direct settlement the response looks like this (values are illustrative, provider_response trimmed). On mobile money there is no bank_info: the payer approves a prompt on their phone, or follows manual_payment or checkout_url when present.

{
"status_code": "200",
"merchant_reference": "9FD194041612.iI",
"transaction_type": "payin",
"success": true,
"message": "request sent",
"checkout_request_id": "5b7c1e2a-0f4d-5e8a-9c31-7d2b6a4e8f10",
"gateway": "yellowcard",
"conversation_id": "9FD194041612.iI",
"bank_info": {
"name": "Example Bank",
"account_name": "Yellow Card Payments",
"account_number": "1234567890",
"branch_code": "250655",
"payment_link": ""
},
"provider_extra": {
"flow": "crypto_onramp",
"crypto_currency": "USDT",
"crypto_network": "TRC20",
"crypto_amount": "82.5",
"wallet_address": "TFtbBr7yW3kXqHn2Vd8sJpLmZ4cRa9Q2hz",
"crypto_local_rate": "18.01",
"network_fee_usd": "1",
"service_fee_usd": "0",
"partner_fee_usd": "0.42",
"partner_fee_local": "7.5"
}
}

Keep merchant_reference. You look the payment up with it.

bank_info is where the payer sends the money. Show every field. When payment_link is set, it is also returned as checkout_url, and you can send the payer there instead.

provider_extra is the quote. It is present only on a direct settlement (flow: "crypto_onramp"). Every value is a string.

Key Meaning
flow Always crypto_onramp
crypto_currency The token, e.g. USDT
crypto_network The network, e.g. TRC20
crypto_amount The crypto Yellow Card quotes to deliver, after fees
wallet_address The address the crypto goes to. Show it back to the payer to confirm
crypto_local_rate Yellow Card’s rate: local currency per one unit of the token
network_fee_usd The blockchain network fee, in USD
service_fee_usd Yellow Card’s service fee, in USD
partner_fee_usd The FinoQ fee, in USD
partner_fee_local The FinoQ fee, in the local currency

Show the payer crypto_amount, the token and network, and wallet_address before they transfer.

Accrue assigns one local agent. The payer pays the agent the local amount, then tells Accrue they have paid. The response carries the agent’s details in provider_extra, with flow: "agent_transfer":

{
"status_code": "200",
"merchant_reference": "9FD194055120.iI",
"success": true,
"message": "pay 1300.00 to the agent, then mark the deposit as paid",
"manual_payment": "M-Pesa 0712000000 Jane",
"gateway": "accrue",
"provider_extra": {
"flow": "agent_transfer",
"agent": "Jane",
"payment_details": "M-Pesa 0712000000 Jane",
"amount": "1300",
"currency": "KES",
"expires_at": "2026-11-18T10:45:00Z"
}
}

Show the payer payment_details and amount, and tell them to pay before expires_at. Once they say they have paid, mark it paid:

Terminal window
curl -X POST "$PH_BASE_URL/api/widget/payments/paid" \
-H "Content-Type: application/json" \
-d '{ "reference": "9FD194055120.iI" }'

The agent then confirms the payment and Accrue sends the crypto. Accrue does not quote a crypto amount up front, so there is no crypto_amount to show.

The payment clears asynchronously. The final result arrives on your callback_url as the standard callback payload, with transaction_type: "inbound_payment". amount and currency are the local amount paid. If no callback arrives, look the payment up with POST /api/global/transaction-status using merchant_reference as request_id.

On Yellow Card, three charges come out of the crypto before it reaches the payer. All three are already reflected in crypto_amount.

Fee Who sets it How much
FinoQ fee FinoQ 0.5% of the amount (partner_fee_local / partner_fee_usd)
Exchange rate Yellow Card Built into crypto_local_rate
Network fee Blockchain network_fee_usd, depends on the network

Yellow Card deducts the FinoQ fee from the crypto, so nothing is charged to your FinoQ wallet.

On Accrue there is no FinoQ fee. Accrue’s own rate and the network fee apply.

Direct settlement refusals come back as 400 invalid_argument, with the reason in error_message (Errors):

Cause error_message
Not a collection, or provider is not yc/acr crypto is bought by paying in through yellowcard or accrue
Token and network pair not supported USDT on TRC20 is not available to buy through accrue
Address does not match the network’s format "0x12ab…" is not a valid TRC20 address
CRYPTO product not enabled on your account crypto is not enabled for this account
customer.address missing customer address is required

A payment the provider itself refuses, for example a pair it does not settle in that country, also returns its reason in error_message.

  • The wallet is the payer’s own, and the address was copied for the exact token and network.
  • Show wallet_address, the token, the network and (on Yellow Card) crypto_amount back to the payer before they pay.
  • Treat crypto_amount as approximate.
  • On Accrue, mark the deposit paid once the payer has paid the agent.
  • Fulfil on the callback or a status lookup, never on the 200.

See also Global Collections and How routing works.