GET
https://api.cryptohopper.com/v1/market/giftcards/orders/used
Meant to return the 5 gift cards you redeemed most recently.
OAuth scope:
read manage About scopes
Only available to Cryptohopper's own apps; other apps get a 403 error. In the current code this endpoint always returns an empty list: the redeemed gift cards are loaded into a different variable than the one the response is built from.
Example request
curl "https://api.cryptohopper.com/v1/market/giftcards/orders/used" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/market/giftcards/orders/used', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/market/giftcards/orders/used",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/market/giftcards/orders/used');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Response
{
"data": []
}