GET
/dashboard/credit/transactions Retrieve credit transactions
Returns a list of credit transactions for the authenticated user.
Response
200
successbooleandataobjecttransactionsarrayRequest
curl -X GET "https://api.royalehosting.net/dashboard/credit/transactions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/credit/transactions", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/credit/transactions",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {
"transactions": [
{
"id": 0,
"amount": 15,
"subtract": true,
"created_at": "2024-01-15T10:30:00Z",
"note": "string"
}
]
}
}