Quotes / API reference
Get quote by ID
Request and response reference for GET /v1/quotes/{quote_id}.
GET
/v1/quotes/{quote_id}Authentication: API key
Use the base URL and access configuration provided to your institution. Examples are request templates, not transaction results. Field tables focus on client fields; preserve additional metadata returned by the configured service.
Request
Keep API keys in your backend. Required entitlements and institution scope still apply.
curl -X GET "$OSAI_API_BASE_URL/v1/quotes/$QUOTE_ID" \
-H "Authorization: ApiKey $OSAI_PUBLIC_ID:$OSAI_API_SECRET"Parameters
| Name | Location | Requirement | Description |
|---|---|---|---|
Authorization | header · string | Required | Use the value defined for this resource. |
X-Request-Id | header · string | Optional | Use the value defined for this resource. |
quote_id | path · string | Required | Use the value defined for this resource. |
Request body
This operation does not define a JSON request body.
Responses
Inspect HTTP status before parsing a body. These tables describe client response fields rather than invented successful transaction payloads.
200 · Quote found
| Field | Type | Description & constraints |
|---|---|---|
quote_idRequired in parent object | string | Defined by the resource contract. |
statusRequired in parent object | string | Defined by the resource contract. |
base_amount_minorRequired in parent object | integer | Defined by the resource contract. |
base_currencyRequired in parent object | string | Defined by the resource contract. |
quote_currencyRequired in parent object | string | Defined by the resource contract. |
destination_railOptional | string | Defined by the resource contract. |
amount_out_minorRequired in parent object | integer | Defined by the resource contract. |
rate_minorRequired in parent object | integer | Defined by the resource contract. |
fee_minorRequired in parent object | integer | Institution pricing fee in source-currency minor units. |
quote_modeRequired in parent object | string | Defined by the resource contract.Values: FIXED_SOURCE, FIXED_DESTINATION |
source_principal_minorRequired in parent object | integer | Source-currency principal converted by the quoted rate. |
total_debit_minorRequired in parent object | integer | Exact all-in source-currency debit, including fee. |
total_cost_minorRequired in parent object | integer | Total customer debit in source-currency minor units, including applicable customer-paid fees; equal to total_debit_minor. |
total_cost_currencyRequired in parent object | string | Currency of total_cost_minor; equal to base_currency. |
destination_target_minorOptional | integer | Contracted destination amount for FIXED_DESTINATION; zero for FIXED_SOURCE. |
destination_surplus_minorRequired in parent object | integer | Conservatively rounded proceeds above the exact requested destination target; separately identified for downstream accounting. |
rate_directionRequired in parent object | string | Defined by the resource contract. |
rate_scaleRequired in parent object | integer | Rate is destination major units per source major unit multiplied by this scale. |
fee_schedule_idRequired in parent object | string | Defined by the resource contract. |
fee_schedule_versionRequired in parent object | integer | Defined by the resource contract. |
source_minor_exponentRequired in parent object | integer | Defined by the resource contract. |
destination_minor_exponentRequired in parent object | integer | Defined by the resource contract. |
sell_amount_minorRequired in parent object | integer | Defined by the resource contract. |
sell_currencyRequired in parent object | string | Defined by the resource contract. |
buy_amount_minorRequired in parent object | integer | Defined by the resource contract. |
buy_currencyRequired in parent object | string | Defined by the resource contract. |
expires_atRequired in parent object | stringdate-time | Defined by the resource contract. |
request_idOptional | string | Defined by the resource contract. |
404 · Resource not found
| Field | Type | Description & constraints |
|---|---|---|
errorRequired in parent object | object | Defined by the resource contract. |
error.codeRequired in parent object | string | Defined by the resource contract. |
error.messageRequired in parent object | string | Defined by the resource contract. |
error.request_idRequired in parent object | string | Defined by the resource contract. |
Retries & recovery
Keep the original request identifiers and any required idempotency key. A timeout does not establish failure. Read the original resource or command before another financial write; use expected versions for concurrent changes.