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:

FieldTypeDescription
firstInt
afterString
orderStateO_OrderState

Return type

The query returns the O_API_OrderConnection type.

Behavior

  • first defaults to 20 and is capped at 100. Values of 0 or below fall back to the default.
  • Results are ordered by createdAt descending. For orders with identical timestamps, id is 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 orderState argument filters both the returned edges and the reported totalCount.
  • Each node.entryToken is the same identifier accepted by O_exportOrderKeys and O_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.

Copyright 2026 Eneba. All Rights Reserved. JSC “Helis play”, Gyneju St. 4-333, Vilnius, the Republic of Lithuania