Refresh a quote
curl --request POST \
--url https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"response": {
"quote": {
"checkout_id": "8f3b2c1e-5d47-4a9b-b6e0-2c7f1a9d4e53",
"quote_id": "0x5c1d9a7e3b6f48021e9d7c4a5b3f6e8d1a2c4b6e8f0a1c3e5d7f9b2a4c6e8d0f",
"network": "base",
"token": "USDC",
"address": "0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1",
"settlement": "base",
"recipient": "0x91C4e7B2a6D83f05E2b7A9c4D6f8E1a3B5c7D9F0",
"amount": "25000000",
"received": "0",
"expected": "24.77643200",
"rate": "1.00000000",
"cost": "0.02356800",
"created_at": "2026-12-02T16:21:03.220145Z",
"updated_at": "2026-12-02T16:21:03.220145Z",
"expires_at": "2026-12-02T17:21:02.981377Z",
"remaining": "25000000",
"uri": "ethereum:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913@8453/transfer?address=0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1&uint256=25000000"
}
}
}Quotes
Refresh a quote
Returns a quote with an amount that is guaranteed again. If the quote has not reached expires_at it is returned unchanged. If it has, the amount is recalculated at the current price and expires_at moves forward. The deposit address stays the same.
Requires an API key with write access.
POST
/
checkouts
/
{checkout_id}
/
quotes
/
{quote_id}
/
refresh
Refresh a quote
curl --request POST \
--url https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://coinstack.net/api/v1/checkouts/{checkout_id}/quotes/{quote_id}/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"response": {
"quote": {
"checkout_id": "8f3b2c1e-5d47-4a9b-b6e0-2c7f1a9d4e53",
"quote_id": "0x5c1d9a7e3b6f48021e9d7c4a5b3f6e8d1a2c4b6e8f0a1c3e5d7f9b2a4c6e8d0f",
"network": "base",
"token": "USDC",
"address": "0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1",
"settlement": "base",
"recipient": "0x91C4e7B2a6D83f05E2b7A9c4D6f8E1a3B5c7D9F0",
"amount": "25000000",
"received": "0",
"expected": "24.77643200",
"rate": "1.00000000",
"cost": "0.02356800",
"created_at": "2026-12-02T16:21:03.220145Z",
"updated_at": "2026-12-02T16:21:03.220145Z",
"expires_at": "2026-12-02T17:21:02.981377Z",
"remaining": "25000000",
"uri": "ethereum:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913@8453/transfer?address=0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1&uint256=25000000"
}
}
}