Mutation
mutation bill_create(
$data: CreateBillInput!
) {
bill_create(
data: $data
) {
request_id
complexity
bill {
...BillFragment
id
legacy_id
status
customer_name
profile_name
created_at
due_date
amount
totals {
...FeeCategoryTotalConnectionFragment
pageInfo {
...PageInfoFragment
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
...FeeCategoryTotalEdgeFragment
node {
...FeeCategoryTotalFragment
id
legacy_id
amount
label
category
quantity
}
cursor
}
}
bill_exports {
...BillExportsConnectionFragment
pageInfo {
...PageInfoFragment
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
...BillExportsEdgeFragment
node {
...BillExportsFragment
id
legacy_id
status
file_url
}
cursor
}
}
billing_period {
...BillingPeriodFragment
start
end
}
billing_frequency
}
}
}
Variables
{
"data": {
"customer_account_id": "abc123",
"start_date": ISODateTime,
"end_date": ISODateTime,
"warehouse_id": "abc123"
}
}
Response
{
"data": {
"bill_create": {
"request_id": "abc123",
"complexity": 987,
"bill": Bill
}
}
}