Getting credit limit issue, while fetching all items for a order

Hi,

I’m getting remaining credit issue with orders Query.
I have my order with more than 100 items.

i’m trying to get all items using cursor. but when i’m running the query. it showing me remaining credit issue.

please check below.

There are not enough credits to perform the requested operation, which requires 10001 credits, The max allowed for your account is 1001 credits per operation.

Request ID: 60262eb7527ee25816d0466e

Hi @devrsingh2
Thanks for that request_id!
That query on the request_id should be “complexity”: 1001, actually, but try by including first:1 in the order data.

Something like this:

query {
  orders(order_number: "<SomeOrderNumber>") {
    request_id
    complexity
    data(first:1)  {
      edges {
        node {
          id
          legacy_id
          order_number
          shop_name
          shipments {
            id
            legacy_id
            pending_shipment_id
          }
          fulfillment_status
          line_items(first: 10) {
            pageInfo {
              hasNextPage
              hasPreviousPage
              startCursor
              endCursor
            }
            edges {
              node {
                legacy_id
                id
                sku
                barcode
                order_id
                fulfillment_status
                quantity
                quantity_shipped
                quantity_allocated
                quantity_pending_fulfillment
                updated_at
              }
            }
          }
          order_date
        }
      }
    }
  }
}

This should lower significantly the complexity.
Let me know if this doesn’t help!
Thanks in advance!
Tom