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
orderIds[O_Uuid!]Limit results to these order IDs (max 20). Other filters still apply.

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.
  • The optional orderIds argument limits results to a specific set of order IDs (max 20). Other active filters such as orderState still apply.
  • Each node.entryToken is the same identifier accepted by O_exportOrderKeys and O_orderExport.
  • Each node.id is the stable UUID for the order, suitable for use with the orderIds filter argument.

Response fields

O_API_Order (each node)

FieldTypeDescription
idO_Uuid!Stable UUID for this order. Use with the orderIds filter to fetch specific orders.
orderNumberString!Human-readable order number (e.g. o-8yZp8K).
entryTokenString!Token accepted by O_exportOrderKeys and O_orderExport.
orderStateO_OrderState!Current order state: CART, NEW, CANCELLED, FULFILLED, or FAILED.
paymentStateO_PaymentState!Current payment state (e.g. NEW, AWAITING_PAYMENT, PAID, REFUNDED).
totalPriceO_Money!Total order price.
createdAtO_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)

FieldTypeDescription
shortIdString!Short identifier for this item, used in the ZIP export directory path.
sellableNameStringDisplay name of the product.
sellableSlugStringURL slug of the product, used in the ZIP export directory path.
quantityInt!Number of units purchased.
totalPriceO_Money!Total price for this line item.
merchantO_API_OrderItemMerchantMerchant who fulfilled this item.

O_API_OrderItemMerchant (the merchant sub-object)

FieldTypeDescription
displayNameStringMerchant's display name.
slugStringMerchant's URL slug.

O_Money

FieldTypeDescription
amountInt!Amount in the smallest currency unit (e.g. cents for EUR).
currencyString!ISO 4217 currency code (e.g. EUR).

O_PageInfo

FieldTypeDescription
hasNextPageBoolean!Whether more pages exist when paginating forward.
hasPreviousPageBoolean!Whether more pages exist when paginating backward.
startCursorStringCursor for the first item on the current page.
endCursorStringCursor 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"
  ]
}
Copyright 2026 Eneba. All Rights Reserved. JSC “Helis play”, Gyneju St. 4-333, Vilnius, the Republic of Lithuania