Core API
- Concepts
- Authentication
- Countries
- Users
- KYC
- Capabilities
- Terms of Service
- Files
- Assets
- Accounts
- External Accounts
- Transactions
- Webhooks
Widgets API
- Payment
Create quote
Create a quote for a transaction.
POST
/
core
/
transactions
/
quote
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/transactions/quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"origin": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
},
"destination": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
},
"denomination": {
"asset": "GBP",
"amount": "100.00",
"target": "origin"
}
}'
{
"quote": {
"id": "623000c8-9bdf-4a2b-aa3d-6a6b44a7f6a0",
"origin": {
"amount": "100.00",
"asset": "GBP",
"rate": "47619.04761904762",
"node": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
}
},
"destination": {
"amount": "0.0021",
"asset": "BTC",
"rate": "0.000021",
"node": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
}
},
"denomination": {
"amount": "100.00",
"asset": "GBP",
"target": "origin",
"rate": "1"
},
"fees": [],
"expiresAt": "2024-07-24T15:22:39Z"
}
}
Authorizations
OAuth 2.0 authentication.
Body
application/json
Response
201
application/json
Quote created.
The response is of type object
.
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/transactions/quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"origin": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
},
"destination": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
},
"denomination": {
"asset": "GBP",
"amount": "100.00",
"target": "origin"
}
}'
{
"quote": {
"id": "623000c8-9bdf-4a2b-aa3d-6a6b44a7f6a0",
"origin": {
"amount": "100.00",
"asset": "GBP",
"rate": "47619.04761904762",
"node": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
}
},
"destination": {
"amount": "0.0021",
"asset": "BTC",
"rate": "0.000021",
"node": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
}
},
"denomination": {
"amount": "100.00",
"asset": "GBP",
"target": "origin",
"rate": "1"
},
"fees": [],
"expiresAt": "2024-07-24T15:22:39Z"
}
}