Create a quote for a transaction.
origin and destination objects identify the source and destination of funds respectively for the transaction.
Read more about the Anatomy of a quote request to understand the different types of nodes you can use as origin and destination. Refer to the API spec below to see how each node type is expressed in the request.
denomination object defines what is being moved, how much, and which side of the trade the amount applies to precisely.
asset: The currency or asset in which amount is expressed — for example, GBP, USD, or BTC. Does not need to match the asset of either account; Uphold will convert as needed.amount: The amount to transfer, expressed as a decimal string (e.g. "100.00").target: Controls which side of the trade receives the exact amount:
origin — Debits exactly amount from the origin. Fees are deducted before the destination receives funds.destination — Credits exactly amount to the destination. Fees are added on top of what is debited from the origin.| Target | Debited from origin | Credited to destination |
|---|---|---|
origin | Exactly 500 GBP | BTC equivalent of 490 GBP (after 10 GBP fee) |
destination | 510 GBP (500 + 10 GBP fee) | BTC equivalent of exactly 500 GBP |
origin when you want to control exactly how much leaves the sender. Use destination when you want to control exactly how much arrives for the recipient.
For a more comprehensive explanation of the denomination concept, see the Core Concepts page.
ttl field allows you to extend the validity of the quote to accommodate those cases. When omitted, the platform applies a default TTL based on the transaction type.
expiresAt field in the response indicates the exact time when the quote will expire, which takes into account the default TTL or the custom ttl provided in the request. Use this field to drive quote refresh logic in your UI — schedule the next refresh slightly before this time (e.g. a few seconds earlier) to account for network and infrastructure latency, ensuring the user always sees a valid quote.OAuth 2.0 authentication.
Quote created.