Shiphero Billing Graphql

Hi we are trying to create an automation where we can grab the bills in “draft” status, so whenever they are created, the automation can run and create invoices. We are having trouble with grabbing the information, I tried running this query:

query {
bills {
request_id
complexity
data(first: 10) {
edges {
node {
id
status
bill_exports(first: 5) {
edges {
node {
id
status
file_url
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}

Please advise

Be sure you are using authentication for an admin account in Shiphero when using the bills query specifically. Developer users do not have access to that query. You can find the process for acquiring credentials for a full user instead of a developer user here: Getting Started – Developer Resources | ShipHero

Oh gotcha, thank you. I think it worked