Skip to Content
Assetera Docs
Distribution partners

Off-chain sale (bank transfer)

Create a bank-transfer primary-sale purchase, show the returned payment instruction, and track reconciliation and delivery.

In an off-chain primary sale, the buyer commits to a quantity, pays the issuer's configured receiving account using a unique reference, and receives the asset after payment reconciliation and delivery.

Flow

Prerequisites

The buyer must be signed in, currently eligible for the action, have an allowed delivery wallet, and select an active registered payment account. The instrument must be active, open for primary sale, entitled to the partner tenant, and linked to an active receiving account. The receiving account's currency is the payment currency. The instrument's price may be in another currency.

The API enforces these prerequisites. Frontend checks improve the journey but do not authorize the purchase.

Create a purchase

Your BFF forwards the body and the signed-in user's server-held access token to POST /offchain-purchases.

{
  "pairId": 42,
  "quantity": "62155",
  "walletAddress": "0x1111111111111111111111111111111111111111",
  "bankAccountId": "11111111-1111-4111-8111-111111111111",
  "payment": {
    "currency": "EUR",
    "amount": "100000.00"
  }
}

payment is optional. Send it only for an instrument that returns a payment object, and send the amount exactly as the investor typed it.

amount and currency are what the investor transfers. unitPrice is the price of one unit in the instrument's price currency. A purchase that crosses currencies also returns an fx object with the notional in the price currency, the applied rate, and the ECB reference rate behind it.

Quantities and money are decimal strings. Preserve them as strings or use a decimal library. A quantity has at most 8 decimal places, and no more than the token's own decimals. The exact response schema and nullable fields are defined in the Marketplace OpenAPI contract.

The create operation is idempotent for the same active purchase intent. The selected payment account is part of that intent, so changing it creates a different purchase and reference.

Instruments paid in another currency

An instrument is priced in one currency and can be paid in another. The instrument's price and currency are the price currency from the prospectus. The receiving account's currency is the payment currency. The feature is enabled per environment by Assetera.

Read the instrument

GET /offchain-instruments returns the price and, for a cross-currency instrument, a payment object:

{
  "price": "1.80",
  "currency": "USD",
  "payment": {
    "currency": "EUR",
    "referenceRate": "1.118800000000",
    "referenceAsOf": "2026-10-15T12:15:00.000Z",
    "bandBps": 100
  }
}
FieldMeaning
payment.currencyThe currency the investor transfers. It matches the receiving account.
payment.referenceRatePrice-currency units for one payment-currency unit, or null.
payment.referenceAsOfWhen the ECB rate was published, or null.
payment.bandBpsThe allowed deviation in basis points, each way.

A purchase is accepted when the implied rate (quantity × price / amount) deviates from referenceRate by at most bandBps, in both directions. The band is room for rounding and different rate feeds. It is not a fee.

referenceRate and referenceAsOf are null when no fresh ECB rate exists. The ECB publishes on working days. When they are null, show the instrument as temporarily unavailable and do not offer a purchase.

How to quote

Quote from the amount, not the quantity. The investor types an amount in the payment currency, and you derive the quantity.

Take the amount. The investor enters an amount A in payment.currency.

Compute the quantity. Q = floor(A × referenceRate / price), rounded down to 8 decimal places (or to the token's decimals, if the token has fewer). Do not send the token's full precision.

Check the band. Compare the implied rate Q × price / A with referenceRate. Whole units or small amounts can fall outside the band. If it does, offer A' = round2(Q × price / referenceRate) as the amount to transfer.

Send the purchase. POST /offchain-purchases with quantity: Q and payment: { currency, amount }. Send the amount exactly as the investor typed it. Assetera stores it unchanged, so the QR code or bank details show exactly that amount.

Reload on a stale rate. On fx_rate_out_of_band or fx_reference_unavailable, reload the instrument and ask again.

What to show the investor

Before the investor confirms, show:

  • the instrument, with its name and ticker
  • the amount to transfer, in the payment currency
  • the quantity of units, with the ticker
  • the total in the price currency (quantity × price)
  • the price of one unit in the price currency
  • the applied rate

Update the quantity and the total in the price currency while the investor types the amount. Show the same figures, including the instrument and the quantity with its ticker, on the payment instruction.

Do not show the ECB reference rate, its date or the deviation to the investor. They are the basis of Assetera's check, not part of the offer. Use them for your own monitoring and support only.

Make clear that the instrument is priced in the price currency and paid in the payment currency.

Worked example

The instrument price is 1.80 USD, the receiving account is in EUR, and the ECB reference rate is 1 EUR = 1.1188 USD. The investor types 100,000.00 EUR.

  • Q = floor(100000.00 × 1.1188 / 1.80) = 62155
  • Implied rate = 62155 × 1.80 / 100000.00 = 1.11879
  • Deviation from the reference rate: about 0 bps, inside the 100 bps band.
  • The purchase is accepted, and the QR code shows 100,000.00 EUR.

Refusal codes

These refusals return { "error": "<message>", "code": "...", "detail": {...} }. Branch on the code, never on the message text. Other refusals keep their existing shape.

CodeWhat it means
payment_not_supportedPaying in another currency is not enabled in this environment. Returns 400.
payment_requiredThe instrument has a payment object, but the request omitted it.
payment_currency_mismatchpayment.currency does not match the receiving account currency.
payment_amount_mismatchpayment.currency is the price currency, and payment.amount is not quantity × price. detail.expected gives the amount.
fx_reference_unavailableNo fresh ECB reference rate is available. Reload the instrument and treat it as temporarily unavailable.
fx_rate_out_of_bandThe implied rate falls outside the band. detail carries referenceRate, referenceAsOf, impliedRate, deviationBps, bandBps, paymentCurrency, and priceCurrency. Reload the instrument and ask again.
quantity_too_preciseThe quantity has more than 8 decimal places. Returns 400. detail.maxDecimals gives the maximum (8).
quantity_not_representableThe quantity has more decimals than the token has. detail.maxDecimals gives the maximum.

Show the payment instruction

Display the returned beneficiary, IBAN, amount, currency, reference, and QR. The amount and currency are what the investor transfers, which for a cross-currency purchase is the payment currency, not the price currency. qr is returned only for EUR transfers because the EPC QR standard covers EUR only. For any other payment currency, show the bank details instead. Do not hardcode, rewrite, or cache receiving-account details in the frontend.

Tell the buyer to pay from the selected registered account and reproduce the reference exactly. Missing or inconsistent payment information requires the configured exception process and can delay or prevent completion.

Track status

Use GET /offchain-purchases/:reference for one caller-owned purchase or GET /offchain-purchases for the caller's list. The detailed lifecycle is:

For customer-facing UI, use the coarse phase returned by the API (pending, review, success, failed, cancelled, or expired). Keep the detailed status in support diagnostics and do not infer additional transitions.

Reconciliation boundaries

Issuer users can perform only the transitions allowed for their role and issuer assignment. A payment-account mismatch cannot be overridden in the issuer portal. It follows the Compliance escalation route, where any permitted override is officer-only and audited.

On-chain delivery can be performed or observed by Assetera's operational flow. The buyer integration tracks the purchase response rather than trying to advance operational states itself.

Security requirements

  • Keep the Assetera bearer token in the BFF.
  • Read the buyer subject from the validated user session.
  • Use only the returned receiving account and reference.
  • Treat 400, 403, and permanent 409 responses as business failures, not blind retry candidates.
  • Redact IBANs, customer names, access tokens, and QR payloads from application logs.
  • Re-fetch the purchase after reconnecting or resuming a session.

On this page