bill_create
Creates a bill for a customer covering a date range and starts calculating its charges. The customer must have a billing profile.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | CreateBillInput! | Yes |
Return Type
Mutation
mutation bill_create(
$data: CreateBillInput!
) {
bill_create(
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",
"start_date": "2026-07-09T15:30:00Z",
"end_date": "2026-07-09T15:30:00Z",
"warehouse_id": "V2FyZWhvdXNlOjEyMzQ="
}
}Response
{
"data": {
"bill_create": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"bill": {id: "QmlsbDoxMjM0"}
}
}
}