GET
https://api.cryptohopper.com/v1/ai/credits/invoices
Returns your paid AI credit purchases, newest first, up to 500.
The handler checks no OAuth scope. Payment tokens and the billing profile are not included.
Example request
curl "https://api.cryptohopper.com/v1/ai/credits/invoices" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/ai/credits/invoices', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/ai/credits/invoices",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/ai/credits/invoices');
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": [
{
"id": "118",
"user_id": "123456",
"transaction_id": "pi_example123",
"payment_method_id": "2",
"deposit_id": "3",
"status": "1",
"price": "25.00",
"subtotal": "25.00",
"payment_fee": "0.00",
"tax": "0.00",
"total": "25.00",
"tax_id": "0",
"payment_cur": "USD",
"payment_cur_rate": "1.00000000",
"payment_total": "25.00",
"created": "2026-09-01 12:00:00",
"updated": "2026-09-01 12:01:10",
"is_eu": "0",
"refunded": "0",
"deleted": "0"
}
]
}