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".
Before you start
Section titled “Before you start”- 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 adepositnetwork 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.
Supported tokens and networks
Section titled “Supported tokens and networks”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.
How it works
Section titled “How it works”- Discover the
depositnetworks for the payer’s country and pick a provider. - Create the direct settlement with the token, network and the payer’s wallet address.
- Show the payer how to pay: bank details, a phone prompt, or an agent to pay.
- Wait for the payment to clear. The result arrives on your callback URL.
- The provider sends the crypto to the payer’s wallet on-chain.
1. Discover a deposit network
Section titled “1. Discover a deposit network”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". Itsnetwork_codenames 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.
2. Create the direct settlement
Section titled “2. Create the direct settlement”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.
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" } }'import requests
response = requests.post( f"{base_url}/api/global/payments", auth=(username, password), json={ "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["network_id"], "network_name": network["network_name"], "network_code": network["network_code"], "channel_id": network["channel_id"], "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", }, },)print(response.json())const auth = Buffer.from(`${username}:${password}`).toString("base64");
const response = await fetch(`${baseUrl}/api/global/payments`, { method: "POST", headers: { Authorization: `Basic ${auth}`, "Content-Type": "application/json", }, body: JSON.stringify({ 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.network_id, network_name: network.network_name, network_code: network.network_code, channel_id: network.channel_id, 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", }, }),});
console.log(await response.json());3. Show the payer what to do
Section titled “3. Show the payer what to do”What comes back depends on the provider and rail.
Yellow Card
Section titled “Yellow Card”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
Section titled “Accrue”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:
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.
4. Wait for the result
Section titled “4. Wait for the result”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.
Errors
Section titled “Errors”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.
Checklist
Section titled “Checklist”- 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_amountback to the payer before they pay. - Treat
crypto_amountas 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.
