# Bills query 'Unexpected error'?

**URL:** <https://community.shiphero.com/t/bills-query-unexpected-error/3476>\
**Category:** GraphQL API\
**Created:** [July 3, 2025, 1:57am UTC](https://community.shiphero.com/t/bills-query-unexpected-error/3476 "2025-07-03T01:57:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamtsc](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@adamtsc](https://community.shiphero.com/u/adamtsc)\
**Post date:** [July 3, 2025, 1:57am UTC](https://community.shiphero.com/t/bills-query-unexpected-error/3476/1 "2025-07-03T01:57:16Z")

</div>

Hello! I had a query to grab Bill data that was working fine for months but suddenly stopped working the past two days

Here’s the query:

```auto
{
  bills {
    request_id
    complexity
    data(last: 10) {
      edges {
        node {
          id
          legacy_id
          customer_name
          created_at
          amount
          status
        }
      }
    }
  }
}

```

And the result I get is:

```auto
{
    "errors": [
        {
            "message": "Unexpected Error",
            "operation": "bills",
            "field": "data",
            "request_id": "REDACTED",
            "code": 22
        }
    ],
    "data": {
        "bills": {
            "request_id": "REDACTED",
            "complexity": 11,
            "data": null
        }
    },
    "extensions": {
        "throttling": {
            "estimated_complexity": 11,
            "cost": 1,
            "cost_detail": {
                "bills": {
                    "items_count": 0,
                    "cost": 1,
                    "total_cost": 1,
                    "fields": {}
                }
            },
            "user_quota": {
                "credits_remaining": 1643,
                "max_available": 2002,
                "increment_rate": 30
            }
        }
    }
}

```

Can anyone tell me what I might be doing wrong or whether there was an update of some sort?

Here’s the original thread where I found out about ‘Bills’, couldn’t seem to find it in the docs but might have missed it!

> [@Query 3PL bills and charges for a period](https://community.shiphero.com/t/query-3pl-bills-and-charges-for-a-period/2022):
>
> Hi, Is it possible to query 3PL bills and adhoc charges for a given time period using API? Basically this info: Thank you!

---

<div class="post-metadata">

**Author:** ![Nathan-Rhodes](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@Nathan-Rhodes](https://community.shiphero.com/u/Nathan-Rhodes)\
**Post date:** [July 8, 2025, 8:44pm UTC](https://community.shiphero.com/t/bills-query-unexpected-error/3476/2 "2025-07-08T20:44:17Z")

</div>

adamtsc,

This seems like a potential bug. In order to best address this issue I would ask that you submit a support ticket through the help portal or send an email to [support@shiphero.com](mailto:support@shiphero.com).

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/2X/8/83f2a5ec5d7908b156cb6999baa4c753fadfa85d.svg) [@system](https://community.shiphero.com/u/system)\
**Post date:** [October 6, 2025, 8:45pm UTC](https://community.shiphero.com/t/bills-query-unexpected-error/3476/3 "2025-10-06T20:45:13Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
