bill
Fetch bill records matching the supplied arguments.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
id | String! | Yes | Filter by ID; pass the public API ID unless the field name says legacy ID. Required. | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query bill(
$id: String!,
$analyze: Boolean
) {
bill(
id: $id,
analyze: $analyze
) {
request_id
complexity
data {
id
legacy_id
status
customer_name
profile_name
created_at
due_date
amount
totals {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
amount
label
category
quantity
}
cursor
}
}
bill_exports {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
status
file_url
}
cursor
}
}
billing_period {
start
end
}
billing_frequency
}
}
}Variables
{
"id": "UmVjb3JkOjEyMzQ=",
"analyze": true
}Response
{
"data": {
"bill": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"data": {id: "QmlsbDoxMjM0"}
}
}
}