bill_recalculate
Recalculates a bill's charges as a new bill. Fails if the bill is finalized, deleted, or already recalculating.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | RecalculateBillInput! | Yes |
Return Type
Mutation
mutation bill_recalculate(
$data: RecalculateBillInput!
) {
bill_recalculate(
data: $data
) {
request_id
complexity
bill {
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
{
"data": {
"customer_account_id": "QWNjb3VudDoxMjM0",
"id": "QmlsbDoxMjM0"
}
}Response
{
"data": {
"bill_recalculate": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"bill": {id: "QmlsbDoxMjM0"}
}
}
}