POST Company/Invoice/Rule/Save

Request Information

URI Parameters

None.

Body Parameters

InvoiceRuleDto
NameDescriptionTypeAdditional information
InvoiceRuleId

integer

None.

CompanyId

integer

None.

RuleName

string

None.

IsEnabled

boolean

None.

TriggerType

InvoiceTriggerType

None.

FrequencyDayOfWeek

byte

None.

FrequencyDayOfMonth

byte

None.

CustomerId

integer

None.

TemplateId

integer

None.

LocationId

integer

None.

BillingModel

InvoiceBillingModel

None.

FixedFeePerAudit

decimal number

None.

HourlyRate

decimal number

None.

FlatMonthlyAmount

decimal number

None.

GroupingStrategy

InvoiceGroupingStrategy

None.

AutoSendEmail

boolean

None.

LastRunOn

date

None.

CreatedOn

date

None.

CreatedByUserId

integer

None.

ModifiedOn

date

None.

ModifiedByUserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceRuleId": 1,
  "CompanyId": 2,
  "RuleName": "sample string 3",
  "IsEnabled": true,
  "TriggerType": 1,
  "FrequencyDayOfWeek": 64,
  "FrequencyDayOfMonth": 64,
  "CustomerId": 1,
  "TemplateId": 1,
  "LocationId": 1,
  "BillingModel": 1,
  "FixedFeePerAudit": 1.0,
  "HourlyRate": 1.0,
  "FlatMonthlyAmount": 1.0,
  "GroupingStrategy": 1,
  "AutoSendEmail": true,
  "LastRunOn": "2026-06-01T14:44:30.7945317-04:00",
  "CreatedOn": "2026-06-01T14:44:30.7945317-04:00",
  "CreatedByUserId": 7,
  "ModifiedOn": "2026-06-01T14:44:30.7945317-04:00",
  "ModifiedByUserId": 1
}

application/xml, text/xml

Sample:
<InvoiceRuleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Li.CQATS.Audit.Library.Invoices">
  <AutoSendEmail>true</AutoSendEmail>
  <BillingModel>FixedFeePerAudit</BillingModel>
  <CompanyId>2</CompanyId>
  <CreatedByUserId>7</CreatedByUserId>
  <CreatedOn>2026-06-01T14:44:30.7945317-04:00</CreatedOn>
  <CustomerId>1</CustomerId>
  <FixedFeePerAudit>1</FixedFeePerAudit>
  <FlatMonthlyAmount>1</FlatMonthlyAmount>
  <FrequencyDayOfMonth>64</FrequencyDayOfMonth>
  <FrequencyDayOfWeek>64</FrequencyDayOfWeek>
  <GroupingStrategy>OneInvoicePerAudit</GroupingStrategy>
  <HourlyRate>1</HourlyRate>
  <InvoiceRuleId>1</InvoiceRuleId>
  <IsEnabled>true</IsEnabled>
  <LastRunOn>2026-06-01T14:44:30.7945317-04:00</LastRunOn>
  <LocationId>1</LocationId>
  <ModifiedByUserId>1</ModifiedByUserId>
  <ModifiedOn>2026-06-01T14:44:30.7945317-04:00</ModifiedOn>
  <RuleName>sample string 3</RuleName>
  <TemplateId>1</TemplateId>
  <TriggerType>OnAuditComplete</TriggerType>
</InvoiceRuleDto>

multipart/form-data

Sample:
<InvoiceRuleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Li.CQATS.Audit.Library.Invoices"><AutoSendEmail>true</AutoSendEmail><BillingModel>FixedFeePerAudit</BillingModel><CompanyId>2</CompanyId><CreatedByUserId>7</CreatedByUserId><CreatedOn>2026-06-01T14:44:30.7945317-04:00</CreatedOn><CustomerId>1</CustomerId><FixedFeePerAudit>1</FixedFeePerAudit><FlatMonthlyAmount>1</FlatMonthlyAmount><FrequencyDayOfMonth>64</FrequencyDayOfMonth><FrequencyDayOfWeek>64</FrequencyDayOfWeek><GroupingStrategy>OneInvoicePerAudit</GroupingStrategy><HourlyRate>1</HourlyRate><InvoiceRuleId>1</InvoiceRuleId><IsEnabled>true</IsEnabled><LastRunOn>2026-06-01T14:44:30.7945317-04:00</LastRunOn><LocationId>1</LocationId><ModifiedByUserId>1</ModifiedByUserId><ModifiedOn>2026-06-01T14:44:30.7945317-04:00</ModifiedOn><RuleName>sample string 3</RuleName><TemplateId>1</TemplateId><TriggerType>OnAuditComplete</TriggerType></InvoiceRuleDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.