ad_hoc_charges
Fetch ad hoc charges matching the supplied arguments.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
ids | [String]! | Yes | Filter by IDs; pass public API IDs unless the field name says legacy IDs. Required. | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query ad_hoc_charges(
$ids: [String]!,
$analyze: Boolean
) {
ad_hoc_charges(
ids: $ids,
analyze: $analyze
) {
request_id
complexity
data {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
name
description
occurred_at
labor_unit_id
unit_amount
rate
bill_id
}
cursor
}
}
}
}Variables
{
"ids": ["UmVjb3JkOjEyMzQ="],
"analyze": true
}Response
{
"data": {
"ad_hoc_charges": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"data": [{id: "QWRIb2NDaGFyZ2U6MTIzNA=="}]
}
}
}