SSolace PlatformDOCS
Open console →
API reference

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

GET/platform/v1/buys/accounts

Their account, or 404 before one is opened. Scope: read:buys.

Query parameters

end_userrequiredstring

Returns

  • 200 The account.
Request
curl https://sandbox-api.solacefi.co/platform/v1/buys/accounts?end_user=eu_4kPq9Zm2xV7b \
  -H "Authorization: Bearer $SOLACE_KEY"
Response · 200
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

POST/platform/v1/buys/accounts

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

end_userrequiredstring
holder_namerequiredstring
The end user's full legal name: a first and a last name.
emailstring
For the bank's record. The end user's own email is used when this isn't sent; one of the two is required.
phonestring

Returns

  • 201 The account.
Request
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"}'
Response · 201
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

POST/platform/v1/buys/quotes

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

assetrequiredstring
The coin to buy: any with swaps: true in GET /assets.
amountstring
Naira to pay, fee included, to 2 decimals. Send this or receive_amount.
receive_amountdecimal string
How much of the coin to receive.

Returns

  • 200 The price.
Request
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"}'
Response · 200
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

POST/platform/v1/buys

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

Idempotency-Keyrequiredstring
Makes a retry safe; see Idempotency.

Body parameters

end_userrequiredstring
assetrequiredstring
The coin to buy: any with swaps: true in GET /assets.
amountstring
Naira to pay. Send this or receive_amount.
receive_amountdecimal string
A decimal amount, as a string.

Returns

  • 201 The buy, with the account to pay.
Request
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"}'
Response · 201
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

GET/platform/v1/buys/{id}

One buy, by its buy_ id. Scope: read:buys.

Path parameters

idrequiredstring

Returns

  • 200 The buy.
Request
curl https://sandbox-api.solacefi.co/platform/v1/buys/buy_8Wn2Kc5Rt1Ym \
  -H "Authorization: Bearer $SOLACE_KEY"
Response · 200
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

POST/platform/v1/buys/cancel

Cancels a buy still awaiting payment. A transfer that arrives afterwards matches no buy and is held for review. Scope: buys.

Body parameters

idrequiredstring

Returns

  • 200 The buy, cancelled.
Request
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"}'
Response · 200
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

POST/platform/v1/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

end_userrequiredstring
amountrequiredstring
sender_namestring

Returns

  • 201 What became of it.
Request
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"}'
Response · 201
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

GET/platform/v1/buys

Their buys, newest first, ten a page. Scope: read:buys.

Query parameters

end_userrequiredstring
pageinteger

Returns

  • 200 The buys.
Request
curl https://sandbox-api.solacefi.co/platform/v1/buys?end_user=eu_4kPq9Zm2xV7b \
  -H "Authorization: Bearer $SOLACE_KEY"
Response · 200
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
}