Accept a quote
Request and response reference for POST /v1/quotes/{quote_id}/accept.
/v1/quotes/{quote_id}/acceptRequest
Keep API keys in your backend. Required entitlements and institution scope still apply.
curl -X POST "$OSAI_API_BASE_URL/v1/quotes/$QUOTE_ID/accept" \
-H "Authorization: ApiKey $OSAI_PUBLIC_ID:$OSAI_API_SECRET" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <stable-operation-key>" \
--data '{
"quote_id": "<quote_id>"
}'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. |
Idempotency-Key | header · string | Required | Use the value defined for this resource. |
quote_id | path · string | Required | Use the value defined for this resource. |
Request body
Send JSON with Content-Type: application/json. Nested field names identify their parent object; required markers apply within that object. Replace template values using the relevant resource and configured instrument rules.
| Field | Type | Description & constraints |
|---|---|---|
quote_idRequired in parent object | string | Defined by the resource contract. |
beneficiary_idOptional | string | Required when the selected settlement route uses an approved bank beneficiary. |
Responses
Inspect HTTP status before parsing a body. These tables describe client response fields rather than invented successful transaction payloads.
200 · Quote accepted
| Field | Type | Description & constraints |
|---|---|---|
quote_idRequired in parent object | string | Defined by the resource contract. |
trade_idRequired in parent object | string | Defined by the resource contract. |
statusRequired in parent object | string | Defined by the resource contract. |
request_idOptional | string | Defined by the resource contract. |
503 · Acceptance outcome unresolved; retry the same selection and idempotency key after Retry-After.
Response headers: Retry-After.
| 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.