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