O_orders
Returns a paginated list of the current user's orders that were placed via
API checkout, newest first. Use this to discover the entryToken values you
need for O_exportOrderKeys
and O_orderExport.
Supported arguments
The following arguments are supported by O_orders query:
| Field | Type | Description |
|---|---|---|
first | Int | |
after | String | |
orderState | O_OrderState |
Return type
The query returns theO_API_OrderConnection type.
Behavior
firstdefaults to20and is capped at100. Values of0or below fall back to the default.- Results are ordered by
createdAtdescending. For orders with identical timestamps,idis used as a stable tiebreaker. - Only orders placed via the API checkout flow are returned. Orders the same account placed through the Eneba storefront are not included.
- The optional
orderStateargument filters both the returned edges and the reportedtotalCount. - Each
node.entryTokenis the same identifier accepted byO_exportOrderKeysandO_orderExport.
Example usage
Query
query ListApiOrders($first: Int, $after: String, $orderState: O_OrderState) {
O_orders(first: $first, after: $after, orderState: $orderState) {
totalCount
edges {
cursor
node {
number
entryToken
orderState
paymentState
totalPrice {
amount
currency
}
createdAt
items {
sellableName
quantity
totalPrice {
amount
currency
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}Variables:
{
"first": 20,
"after": null,
"orderState": null
}Example response
{
"data": {
"O_orders": {
"totalCount": 42,
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uLjA=",
"node": {
"number": 10248,
"entryToken": "a1b2c3d4-1234-11ee-be56-0242ac120002",
"orderState": "FULFILLED",
"paymentState": "PAID",
"totalPrice": {
"amount": 5999,
"currency": "EUR"
},
"createdAt": "2026-04-22T14:05:12+00:00",
"items": [
{
"sellableName": "Call of Duty: Modern Warfare III Steam Key GLOBAL",
"quantity": 2,
"totalPrice": {
"amount": 5999,
"currency": "EUR"
}
}
]
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uLjE=",
"node": {
"number": 10247,
"entryToken": "b2c3d4e5-2345-11ee-be56-0242ac120002",
"orderState": "NEW",
"paymentState": "NEW",
"totalPrice": {
"amount": 2499,
"currency": "EUR"
},
"createdAt": "2026-04-21T09:31:47+00:00",
"items": [
{
"sellableName": "FIFA 25 EA App Key GLOBAL",
"quantity": 1,
"totalPrice": {
"amount": 2499,
"currency": "EUR"
}
}
]
}
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "YXJyYXljb25uZWN0aW9uLjE="
}
}
}
}Pass pageInfo.endCursor as the after argument on the next call to fetch
the following page.