P_wholesaleAuctions
Returns a paginated list of publicly available wholesale auctions.
Supported arguments
The following arguments are supported by P_wholesaleAuctions query:
| Field | Type | Description |
|---|---|---|
first | Int | Returns up to the first n elements from the list |
after | String | Returns the elements that come after the specified cursor |
search | String | Search phrase for product name |
merchantSearch | String | Exact merchant slug |
sort | P_API_AuctionSort | Wholesale auctions sorting option |
Return type
The query returns theP_AuctionConnection type.
Example usage
Query
query getWholesaleAuctions(
$first: Int
$after: String
$search: String
$merchantSearch: String
$sort: P_API_AuctionSort
) {
P_wholesaleAuctions(
first: $first
after: $after
search: $search
merchantSearch: $merchantSearch
sort: $sort
) {
totalCount
edges {
cursor
node {
id
name
slug
wholesale
wholesalePrice {
amount
currency
}
price {
amount
currency
}
expiresAt
owner
merchant {
displayName
slug
}
onHand
}
}
pageInfo {
hasNextPage
endCursor
}
}
}Example Response
{
"data": {
"P_wholesaleAuctions": {
"totalCount": 2,
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uLjA=",
"node": {
"id": "a1b2c3d4-1234-11ee-be56-0242ac120002",
"name": "Call of Duty: Modern Warfare III Steam Key GLOBAL",
"slug": "call-of-duty-modern-warfare-iii-steam-key-global",
"wholesale": true,
"wholesalePrice": {
"amount": 3200,
"currency": "EUR"
},
"price": {
"amount": 4500,
"currency": "EUR"
},
"expiresAt": "2025-12-31T23:59:59+00:00",
"owner": "a1b2c3d4-1234-11ee-be56-0242ac120002",
"merchant": {
"displayName": "Top Games Store",
"slug": "top-games-store"
},
"onHand": 150
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uLjE=",
"node": {
"id": "b2c3d4e5-2345-11ee-be56-0242ac120002",
"name": "FIFA 25 EA App Key GLOBAL",
"slug": "fifa-25-ea-app-key-global",
"wholesale": true,
"wholesalePrice": {
"amount": 2800,
"currency": "EUR"
},
"price": {
"amount": 3900,
"currency": "EUR"
},
"expiresAt": "2025-11-30T23:59:59+00:00",
"owner": "b2c3d4e5-2345-11ee-be56-0242ac120002",
"merchant": {
"displayName": "Game Keys Direct",
"slug": "game-keys-direct"
},
"onHand": 75
}
}
],
"pageInfo": {
"hasNextPage": false,
"endCursor": "YXJyYXljb25uZWN0aW9uLjE="
}
}
}
}