Skip to main content

Transactions

The /v1/account/transactions endpoint retrieves a paginated list of user account transactions, including details such as transaction type, status, amount, fees, and associated items.

HTTP Request

GET /v1/account/transactions

Authorization

Authorization required.

Arguments

ParameterTypeRequiredDescription
pagenumberOptionalPagination Page (default 1).
limitnumberOptionalLimit results between 1 and 100 (default 100).
orderstringOptionalOrder results by asc or desc (default desc).

Example Request

transactions.js
const params = new URLSearchParams({
page: 1,
limit: 100,
order: 'desc'
});

(async () => {
const response = await fetch(`https://api.skinport.com/v1/account/transactions?${params}`, {
method: 'GET',
headers: {
'Authorization': 'Basic <Base64_Encoded_String>',
'Accept-Encoding': 'br'
}
});

const data = await response.json();
console.log(data);
})();

Example Response

console.log(data)
{
"pagination": {
"page": 1,
"pages": 1,
"limit": 100,
"order": "desc"
},
"data": [
{
"id": 9999993,
"type": "credit",
"sub_type": "item",
"status": "complete",
"amount": 1.57,
"fee": 0.09,
"currency": "EUR",
"items": [
{
"sale_id": 9999321,
"market_hash_name": "Mann Co. Supply Crate Key",
"seller_country": "DE",
"buyer_country": "DE"
}
],
"created_at": "2021-10-11T21:22:24.425Z",
"updated_at": "2021-10-11T21:22:24.425Z"
},
{
"id": 9999992,
"type": "withdraw",
"sub_type": null,
"status": "complete",
"amount": 1333.70,
"fee": null,
"currency": "EUR",
"items": null,
"created_at": "2021-10-11T05:30:10.880Z",
"updated_at": "2021-10-11T06:14:07.427Z"
},
{
"id": 9999991,
"type": "purchase",
"sub_type": null,
"status": "complete",
"amount": 90.01,
"fee": null,
"currency": "EUR",
"items": [
{
"sale_id": 9999123,
"market_hash_name": "★ Huntsman Knife",
"seller_country": "US",
"buyer_country": "DE"
}
],
"created_at": "2021-08-27T03:00:34.728Z",
"updated_at": "2021-08-27T03:00:58.488Z"
}
]
}