Skip to main content
POST
/
api
/
v1
/
auth
/
pricing
/
resolve
Resolve active pricing IDs + commercial preview (authenticated)
curl --request POST \
  --url https://crypto.westminister.tech/api/v1/auth/pricing/resolve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flow_type": "onramp",
  "asset": "USDT",
  "fiat_currency": "KES",
  "amount_in": "<string>",
  "amount_in_type": "fiat",
  "network": "<string>",
  "vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "offer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "order_type": "ON_RAMP_BUY"
}
'
{
  "pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "flow_type": "<string>",
  "network": "<string>",
  "asset": "<string>",
  "fiat_currency": "<string>",
  "amount_in": "<string>",
  "amount_in_type": "fiat",
  "vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "offer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "order_type": "<string>",
  "reference_fx_rate": "<string>",
  "applied_fx_rate": "<string>",
  "spread_bps": 123,
  "spread_amount": "<string>",
  "fees": {
    "fixed_fee": "<string>",
    "fixed_fee_currency": "<string>",
    "percentage_fee_bps": 123,
    "percentage_fee_amount": "<string>",
    "total_fee_amount": "<string>",
    "fee_currency": "<string>"
  },
  "amounts": {
    "gross_fiat_amount": "<string>",
    "net_fiat_amount": "<string>",
    "gross_crypto_amount": "<string>",
    "net_crypto_amount": "<string>"
  },
  "settlement_side": "<string>",
  "rate_source": "<string>",
  "quoted_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
flow_type
enum<string>
required
Available options:
onramp,
offramp,
p2p,
b2b,
b2b2c
asset
string
required
Example:

"USDT"

fiat_currency
string
required
Example:

"KES"

amount_in
string
required

Positive decimal string

amount_in_type
enum<string>
required
Available options:
fiat,
crypto
network
string

tron or ethereum

vendor_id
string<uuid>
offer_id
string<uuid>
order_type
enum<string>
Available options:
ON_RAMP_BUY,
OFF_RAMP_SELL,
ON_RAMP_SELL,
OFF_RAMP_BUY

Response

Resolved IDs and pricing preview

pricing_profile_id
string<uuid>
fx_rate_quote_id
string<uuid>
flow_type
string
network
string
asset
string
fiat_currency
string
amount_in
string
amount_in_type
enum<string>
Available options:
fiat,
crypto
vendor_id
string<uuid>
offer_id
string<uuid>
order_type
string
reference_fx_rate
string
applied_fx_rate
string
spread_bps
integer
spread_amount
string
fees
object
amounts
object
settlement_side
string
rate_source
string
quoted_at
string<date-time>
expires_at
string<date-time> | null