Funding

Quote a session's fiat funding route.

Changed on

Prices a fiat onramp route for a session before committing it. The provider is resolved exactly as setPaymentMethod would resolve it, so the quote matches the checkout the user will get. Requires the session clientSecret.

post/v2/funding/sessions/{sessionId}/quotes

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v2/funding/sessions/{sessionId}/quotes
  • Auth: HTTP bearer

Path parameters

sessionIdstring required

The funding session ID (starts with fnd_).

Headers

cf-ipcountrystring
cf-connecting-ipstring
x-forwarded-forstring

Request body

clientSecretstring required

The session's client secret, returned at creation.

method'apple_pay' | 'google_pay' | 'card' | 'bank_transfer' required

The funding method to price.

sourceAmountstring required

Fiat amount in the source currency's human units (decimal string).

sourceCurrencystring required

ISO-4217 fiat currency.

countrystring

Explicit buyer country override (ISO-3166 alpha-2); defaults to the request IP.

anglesstring[]

Integration angles the client can execute; omit for no restriction. Must match the angles the commit will send so the quoted provider is the one that executes.

Example request

{
  "method": "card",
  "sourceAmount": "100.00",
  "sourceCurrency": "USD",
  "angles": [
    "popup"
  ]
}

Response

Successful response.

provider'coinbase' | 'stripe' required
sourceAmountstring required
sourceCurrencystring required
destinationAmountstring required
destinationCurrencystring required
destinationNetworkstring required
exchangeRatestring required

Changes