bill_add_ad_hoc_charge

Arguments

ArgumentTypeRequiredDefaultDescription
dataAddBillAdHocChargeInput!Yes

Return Type

AddBillAdHocChargeOutput

Mutation

mutation bill_add_ad_hoc_charge(
  $data: AddBillAdHocChargeInput!
) {
  bill_add_ad_hoc_charge(
    data: $data
  ) {
    request_id
    complexity
    charge {
      ...AdHocChargeFragment
    }
  }
}

Variables

{
  "data": {
    "customer_account_id": "abc123",
    "warehouse_id": "abc123",
    "name": "abc123",
    "description": "abc123",
    "occurred_at": ISODateTime,
    "labor_unit_id": "abc123",
    "unit_amount": Decimal,
    "rate": Decimal,
    "bill_id": "abc123"
  }
}

Response

{
  "data": {
    "bill_add_ad_hoc_charge": {
      "request_id": "abc123",
      "complexity": 987,
      "charge": AdHocCharge
    }
  }
}