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 | |
orderIds | [O_Uuid!] | Limit results to these order IDs (max 20). Other filters still apply. |
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. - The optional
orderIdsargument limits results to a specific set of order IDs (max 20). Other active filters such asorderStatestill apply. - Each
node.entryTokenis the same identifier accepted byO_exportOrderKeysandO_orderExport. - Each
node.idis the stable UUID for the order, suitable for use with theorderIdsfilter argument.
Response fields
O_API_Order (each node)
| Field | Type | Description |
|---|---|---|
id | O_Uuid! | Stable UUID for this order. Use with the orderIds filter to fetch specific orders. |
orderNumber | String! | Human-readable order number (e.g. o-8yZp8K). |
entryToken | String! | Token accepted by O_exportOrderKeys and O_orderExport. |
orderState | O_OrderState! | Current order state: CART, NEW, CANCELLED, FULFILLED, or FAILED. |
paymentState | O_PaymentState! | Current payment state (e.g. NEW, AWAITING_PAYMENT, PAID, REFUNDED). |
totalPrice | O_Money! | Total order price. |
createdAt | O_DateTime! | ISO 8601 timestamp of when the order was created. |
items | [O_API_OrderItem!]! | Line items included in this order. |
O_API_OrderItem (each items entry)
| Field | Type | Description |
|---|---|---|
shortId | String! | Short identifier for this item, used in the ZIP export directory path. |
sellableName | String | Display name of the product. |
sellableSlug | String | URL slug of the product, used in the ZIP export directory path. |
quantity | Int! | Number of units purchased. |
totalPrice | O_Money! | Total price for this line item. |
merchant | O_API_OrderItemMerchant | Merchant who fulfilled this item. |
O_API_OrderItemMerchant (the merchant sub-object)
| Field | Type | Description |
|---|---|---|
displayName | String | Merchant's display name. |
slug | String | Merchant's URL slug. |
O_Money
| Field | Type | Description |
|---|---|---|
amount | Int! | Amount in the smallest currency unit (e.g. cents for EUR). |
currency | String! | ISO 4217 currency code (e.g. EUR). |
O_PageInfo
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | Whether more pages exist when paginating forward. |
hasPreviousPage | Boolean! | Whether more pages exist when paginating backward. |
startCursor | String | Cursor for the first item on the current page. |
endCursor | String | Cursor to pass as after to fetch the next page. |
Example usage
Query
query ListApiOrders(
$first: Int
$after: String
$orderState: O_OrderState
$orderIds: [O_Uuid!]
) {
O_orders(first: $first, after: $after, orderState: $orderState, orderIds: $orderIds) {
totalCount
edges {
cursor
node {
id
orderNumber
entryToken
orderState
paymentState
totalPrice {
amount
currency
}
createdAt
items {
shortId
sellableName
sellableSlug
quantity
totalPrice {
amount
currency
}
merchant {
displayName
slug
}
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}First page
Variables
{ "first": 2 }Response
{
"data": {
"O_orders": {
"totalCount": 42,
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uLjA=",
"node": {
"id": "f1e2d3c4-0001-11ee-be56-0242ac120002",
"orderNumber": "o-8yZp8K",
"entryToken": "a1b2c3d4-1234-11ee-be56-0242ac120002",
"orderState": "FULFILLED",
"paymentState": "PAID",
"totalPrice": {
"amount": 5999,
"currency": "EUR"
},
"createdAt": "2026-04-22T14:05:12+00:00",
"items": [
{
"shortId": "kw8eey8nupy7jjasetufktyyyy",
"sellableName": "Call of Duty: Modern Warfare III Steam Key GLOBAL",
"sellableSlug": "call-of-duty-modern-warfare-iii-steam-key-global",
"quantity": 2,
"totalPrice": {
"amount": 5999,
"currency": "EUR"
},
"merchant": {
"displayName": "Top Games Store",
"slug": "top-games-store"
}
}
]
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uLjE=",
"node": {
"id": "f1e2d3c4-0002-11ee-be56-0242ac120002",
"orderNumber": "o-7aYo7J",
"entryToken": "b2c3d4e5-2345-11ee-be56-0242ac120002",
"orderState": "NEW",
"paymentState": "NEW",
"totalPrice": {
"amount": 2499,
"currency": "EUR"
},
"createdAt": "2026-04-21T09:31:47+00:00",
"items": [
{
"shortId": "6t7cnn4a3tbzfjm8babmfo6wxr",
"sellableName": "FIFA 25 EA App Key GLOBAL",
"sellableSlug": "fifa-25-ea-app-key-global",
"quantity": 1,
"totalPrice": {
"amount": 2499,
"currency": "EUR"
},
"merchant": {
"displayName": "Game Keys Direct",
"slug": "game-keys-direct"
}
}
]
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "YXJyYXljb25uZWN0aW9uLjA=",
"endCursor": "YXJyYXljb25uZWN0aW9uLjE="
}
}
}
}Next page
Pass the endCursor from the previous response as after to fetch the next set of results.
Variables
{ "first": 2, "after": "YXJyYXljb25uZWN0aW9uLjE=" }Response
{
"data": {
"O_orders": {
"totalCount": 42,
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uLjI=",
"node": {
"id": "f1e2d3c4-0003-11ee-be56-0242ac120002",
"orderNumber": "o-6bZp6I",
"entryToken": "c3d4e5f6-3456-11ee-be56-0242ac120002",
"orderState": "FULFILLED",
"paymentState": "PAID",
"totalPrice": {
"amount": 1299,
"currency": "EUR"
},
"createdAt": "2026-04-20T17:22:05+00:00",
"items": [
{
"shortId": "m3n4p5q6r7s8t9u0v1w2x3y4z5",
"sellableName": "Minecraft Java Edition PC Key GLOBAL",
"sellableSlug": "minecraft-java-edition-pc-key-global",
"quantity": 1,
"totalPrice": {
"amount": 1299,
"currency": "EUR"
},
"merchant": {
"displayName": "Digital Keys Hub",
"slug": "digital-keys-hub"
}
}
]
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uLjM=",
"node": {
"id": "f1e2d3c4-0004-11ee-be56-0242ac120002",
"orderNumber": "o-5cXn5H",
"entryToken": "d4e5f6a7-4567-11ee-be56-0242ac120002",
"orderState": "FULFILLED",
"paymentState": "PAID",
"totalPrice": {
"amount": 3800,
"currency": "EUR"
},
"createdAt": "2026-04-19T11:44:30+00:00",
"items": [
{
"shortId": "a9b8c7d6e5f4g3h2i1j0k9l8m7",
"sellableName": "Red Dead Redemption 2 Steam Key GLOBAL",
"sellableSlug": "red-dead-redemption-2-steam-key-global",
"quantity": 2,
"totalPrice": {
"amount": 3800,
"currency": "EUR"
},
"merchant": {
"displayName": "Game Keys Direct",
"slug": "game-keys-direct"
}
}
]
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "YXJyYXljb25uZWN0aW9uLjI=",
"endCursor": "YXJyYXljb25uZWN0aW9uLjM="
}
}
}
}Fetch specific orders by ID
Variables
{
"orderIds": [
"f1e2d3c4-0001-11ee-be56-0242ac120002",
"f1e2d3c4-0003-11ee-be56-0242ac120002"
]
}