Payment Quotes
GET
/v2/payment_intents/{intent_id}/payment_quotes/{quote_id}Auth requiredGet a payment quote
Returns a single payment quote, including how many seconds are left on its price lock.
A quote whose lock has run out can still show status: pending with expires_in: 0. Treat expires_in of 0 as expired.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Path Parameters
intent_idstringrequiredID of the payment intent
quote_idstringrequiredID of the payment quote
Responses
intent_idpath · stringrequiredID of the payment intent
quote_idpath · stringrequiredID of the payment quote
Response will appear here
Request
curl -X GET \
"https://www.blockonomics.co/api/v2/payment_intents/d5e88bd4-2964-4554-9a81-ab64c391d174/payment_quotes/d81111b2-0165-4831-bd12-7a09011d4aa6" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch('https://www.blockonomics.co/api/v2/payment_intents/d5e88bd4-2964-4554-9a81-ab64c391d174/payment_quotes/d81111b2-0165-4831-bd12-7a09011d4aa6', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
const data = await response.json()
console.log(data)import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
response = requests.get(
"https://www.blockonomics.co/api/v2/payment_intents/d5e88bd4-2964-4554-9a81-ab64c391d174/payment_quotes/d81111b2-0165-4831-bd12-7a09011d4aa6",
headers=headers
)
print(response.json())Response
{
"data": {
"id": "d81111b2-0165-4831-bd12-7a09011d4aa6",
"payment_intent_id": "d5e88bd4-2964-4554-9a81-ab64c391d174",
"amount": 11982,
"paid_amount": 0,
"crypto": "BTC",
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"status": "pending",
"txid": null,
"paid_timestamp": null,
"expires_in": 299
}
}