S_sales
This method deprecated and might return unexpected results. Check sales by using transactions query.
Supported arguments
The following arguments are supported by S_sales query:
Field | Type | Description |
---|---|---|
after | String | Returns the elements that come after the specified cursor |
first | Int | Returns up to the first n elements from the list |
dateFrom | S_DateTime | Lower date and time range of sale |
dateTo | S_DateTime | Upper date and time range of sale |
auctionId | S_Uuid | The ID of the auction. If NULL provided - all sales will be returned |
orderId | S_Uuid | The ID of the order. If NULL provided - all sales will be returned |
Return type
The query returns theS_API_SalesConnection
type.
Example usage
You can get all your sales by using S_sales
query, it allows simple filtering of sales.
Query
Perform S_sales
to get report
{
S_sales {
edges {
node {
id
quantity
createdAt
totalPrice {
amount
currency
}
auctionId
productName
keys
}
}
}
}
Result
{
"data": {
"S_sales": {
"edges": [
{
"node": {
"id": "fffffffff-7792-11ea-80b4-ffffffffffff",
"quantity": 1,
"createdAt": "2020-04-05T23:12:29+00:00",
"totalPrice": {
"amount": 29,
"currency": "EUR"
},
"auctionId": "ffffffff-2f7d-11e9-a926-ffffffffffff",
"productName": "Sherlock Holmes: The Secret of the Silver Earring Steam Key GLOBAL",
"keys": [
"key-A"
]
}
},
{
"node": {
"id": "ffffffff-778e-11ea-9168-ffffffffffff",
"quantity": 1,
"createdAt": "2020-04-05T22:38:22+00:00",
"totalPrice": {
"amount": 2079,
"currency": "EUR"
},
"auctionId": "ffffffff-59dd-11e9-81fa-ffffffffffff",
"productName": "Playstation Plus Card 90 days (DK) PSN Key DENMARK",
"keys": [
"key-B"
]
}
}
]
}
}
}