Buys
Let an end user buy a coin with a naira bank transfer: open their naira account, place a buy, and the transfer credits the coin.
Get an end user's naira account
Their account, or 404 before one is opened. Scope: read:buys.
Query parameters
Returns
- 200 The account.
curl https://sandbox-api.solacefi.co/platform/v1/buys/accounts?end_user=eu_4kPq9Zm2xV7b \
-H "Authorization: Bearer $SOLACE_KEY"const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys/accounts?end_user=eu_4kPq9Zm2xV7b', { method: 'GET', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, }, }); const data = await res.json();
{
"object": "naira_account",
"end_user": "eu_4kPq9Zm2xV7b",
"account_number": "9900000042",
"account_name": "SOLACE/Ada Okoro",
"bank_name": "Pulse MFB",
"holder_name": "Ada Okoro"
}Open a naira account
Opens the end user's own naira bank account: what they send a transfer to when they buy. holder_name is their full legal name. Solace holds no identity of your end users, so this is the name every payment's sender is compared with; a transfer from an account in another name is held for Solace's review and not credited. Opening one again answers the same account, with 200 instead of 201, and does not change its name. Naira only. Scope: buys.
Body parameters
Returns
- 201 The account.
curl -X POST https://sandbox-api.solacefi.co/platform/v1/buys/accounts \ -H "Authorization: Bearer $SOLACE_KEY" \ -H "Content-Type: application/json" \ -d '{"end_user":"eu_4kPq9Zm2xV7b","holder_name":"Ada Okoro","email":"ada@example.com"}'
const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys/accounts', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "end_user": "eu_4kPq9Zm2xV7b", "holder_name": "Ada Okoro", "email": "ada@example.com" }), }); const data = await res.json();
{
"object": "naira_account",
"end_user": "eu_4kPq9Zm2xV7b",
"account_number": "9900000042",
"account_name": "SOLACE/Ada Okoro",
"bank_name": "Pulse MFB",
"holder_name": "Ada Okoro"
}Price a buy
What amount naira buys of asset right now, or with receive_amount instead, what receiving that much of the coin costs. fee_ngn is inside pay.amount. Nothing is held: a buy holds its price. Scope: buys.
Body parameters
swaps: true in GET /assets.receive_amount.Returns
- 200 The price.
curl -X POST https://sandbox-api.solacefi.co/platform/v1/buys/quotes \ -H "Authorization: Bearer $SOLACE_KEY" \ -H "Content-Type: application/json" \ -d '{"asset":"USDT","amount":"50000"}'
const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys/quotes', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "asset": "USDT", "amount": "50000" }), }); const data = await res.json();
{
"object": "buy_quote",
"pay": {
"currency": "NGN",
"amount": "50000"
},
"fee_ngn": "750",
"receive": {
"asset": "USDT",
"amount": "32.84"
},
"ngn_per_usd": "1500",
"price_usd": "1"
}Buy with naira
Places a buy and holds its price until expires_at (30 minutes). The end user then sends a bank transfer of exactly pay.amount naira to the account returned. When it arrives before the price lapses, amount of asset is credited to their balance and buy.completed is sent. Their naira account must be open first.
A transfer of another amount, one that arrives after the price lapsed, or one from an account in another name is not credited on its own: it is held, buy.payment_held is sent, and Solace reviews it. If the review credits it, buy.payment_credited follows.
These coins can be bought right now:
- BTC (Bitcoin)
- ETH (Ethereum)
- SOL (Solana)
- BNB (BNB)
- AVAX (Avalanche)
- TRX (Tron)
- XLM (Stellar Lumens)
- USDT (Tether USD)
- USDC (USD Coin)
The list changes as coins are added. GET /assets always has it: any coin with swaps: true can be bought. The coin is credited to the end user's balance, not on a network.
Buys have limits, in naira, fee included. Right now they are:
- Smallest buy: ₦100.
- Largest buy: ₦5,000,000.
- Most one end user may buy in 24 hours: ₦10,000,000.
Solace may change these. A buy outside them is refused with 400 (invalid_request), and the message names the limit.
In the sandbox no bank is involved: send the payment yourself with POST /test/naira-payment. Scope: buys.
Headers
Body parameters
swaps: true in GET /assets.receive_amount.Returns
- 201 The buy, with the account to pay.
curl -X POST https://sandbox-api.solacefi.co/platform/v1/buys \ -H "Authorization: Bearer $SOLACE_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{"end_user":"eu_4kPq9Zm2xV7b","asset":"USDT","amount":"50000"}'
const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID(), }, body: JSON.stringify({ "end_user": "eu_4kPq9Zm2xV7b", "asset": "USDT", "amount": "50000" }), }); const data = await res.json();
{
"id": "buy_8Wn2Kc5Rt1Ym",
"object": "buy",
"reference": "BY-7Q2M8",
"end_user": "eu_4kPq9Zm2xV7b",
"asset": "USDT",
"amount": "32.84",
"pay": {
"currency": "NGN",
"amount": "50000"
},
"fee_ngn": "750",
"ngn_per_usd": "1500",
"status": "awaiting_payment",
"expires_at": "2026-10-03T16:06:10.482Z",
"created_at": "2026-10-03T15:36:10.482Z",
"credited_at": null,
"account": {
"object": "naira_account",
"end_user": "eu_4kPq9Zm2xV7b",
"account_number": "9900000042",
"account_name": "SOLACE/Ada Okoro",
"bank_name": "Pulse MFB",
"holder_name": "Ada Okoro"
}
}Get a buy
One buy, by its buy_ id. Scope: read:buys.
Path parameters
Returns
- 200 The buy.
curl https://sandbox-api.solacefi.co/platform/v1/buys/buy_8Wn2Kc5Rt1Ym \
-H "Authorization: Bearer $SOLACE_KEY"const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys/buy_8Wn2Kc5Rt1Ym', { method: 'GET', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, }, }); const data = await res.json();
{
"id": "buy_8Wn2Kc5Rt1Ym",
"object": "buy",
"reference": "BY-7Q2M8",
"end_user": "eu_4kPq9Zm2xV7b",
"asset": "USDT",
"amount": "32.84",
"pay": {
"currency": "NGN",
"amount": "50000"
},
"fee_ngn": "750",
"ngn_per_usd": "1500",
"status": "credited",
"expires_at": "2026-10-03T16:06:10.482Z",
"created_at": "2026-10-03T15:36:10.482Z",
"credited_at": "2026-10-03T15:41:22.730Z"
}Cancel a buy
Cancels a buy still awaiting payment. A transfer that arrives afterwards matches no buy and is held for review. Scope: buys.
Body parameters
Returns
- 200 The buy, cancelled.
curl -X POST https://sandbox-api.solacefi.co/platform/v1/buys/cancel \ -H "Authorization: Bearer $SOLACE_KEY" \ -H "Content-Type: application/json" \ -d '{"id":"buy_8Wn2Kc5Rt1Ym"}'
const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys/cancel', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "id": "buy_8Wn2Kc5Rt1Ym" }), }); const data = await res.json();
{
"id": "buy_8Wn2Kc5Rt1Ym",
"object": "buy",
"reference": "BY-7Q2M8",
"end_user": "eu_4kPq9Zm2xV7b",
"asset": "USDT",
"amount": "32.84",
"pay": {
"currency": "NGN",
"amount": "50000"
},
"fee_ngn": "750",
"ngn_per_usd": "1500",
"status": "cancelled",
"expires_at": "2026-10-03T16:06:10.482Z",
"created_at": "2026-10-03T15:36:10.482Z",
"credited_at": null
}Send a test naira payment
Sandbox only. A bank transfer of amount naira arriving in the end user's naira account, as if a bank had sent it. It settles as a real one does: a buy awaiting exactly that amount is credited and buy.completed sent; anything else is held and buy.payment_held sent. Send sender_name to try a payment from another name; without it the account holder's own name is used. A live key is refused with 403. Scope: buys.
Body parameters
Returns
- 201 What became of it.
curl -X POST https://sandbox-api.solacefi.co/platform/v1/test/naira-payment \ -H "Authorization: Bearer $SOLACE_KEY" \ -H "Content-Type: application/json" \ -d '{"end_user":"eu_4kPq9Zm2xV7b","amount":"50000"}'
const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/test/naira-payment', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "end_user": "eu_4kPq9Zm2xV7b", "amount": "50000" }), }); const data = await res.json();
{
"id": "npay_4Jd7Xq2Mv9Ks",
"object": "test_naira_payment",
"end_user": "eu_4kPq9Zm2xV7b",
"amount": "50000",
"status": "credited",
"reason": null,
"buy": "buy_8Wn2Kc5Rt1Ym"
}List an end user's buys
Their buys, newest first, ten a page. Scope: read:buys.
Query parameters
Returns
- 200 The buys.
curl https://sandbox-api.solacefi.co/platform/v1/buys?end_user=eu_4kPq9Zm2xV7b \
-H "Authorization: Bearer $SOLACE_KEY"const res = await fetch('https://sandbox-api.solacefi.co/platform/v1/buys?end_user=eu_4kPq9Zm2xV7b', { method: 'GET', headers: { Authorization: `Bearer ${process.env.SOLACE_KEY}`, }, }); const data = await res.json();
{
"object": "list",
"data": [
{
"id": "buy_8Wn2Kc5Rt1Ym",
"object": "buy",
"reference": "BY-7Q2M8",
"end_user": "eu_4kPq9Zm2xV7b",
"asset": "USDT",
"amount": "32.84",
"pay": {
"currency": "NGN",
"amount": "50000"
},
"fee_ngn": "750",
"ngn_per_usd": "1500",
"status": "awaiting_payment",
"expires_at": "2026-10-03T16:06:10.482Z",
"created_at": "2026-10-03T15:36:10.482Z",
"credited_at": null
}
],
"has_more": false
}