POST 17.0/database/bills

Description

Create Bills

URI Parameters

None.

Name Description Type Additional information
ID

integer

None.

ContactID

integer

None.

PropertyID

integer

None.

WorkOrderID

integer

None.

AddedDate

date

None.

RaisedDate

date

None.

DueDate

date

None.

Status

byte

None.

StatusDate

date

None.

Reference

string

String length: inclusive between 0 and 20

Amount

decimal number

None.

CommissionEarnedContractor

decimal number

None.

CommissionEarnedPayer

decimal number

None.

UserID

integer

None.

SiteID

integer

None.

CompanyID

integer

None.

PaymentCleared

byte

None.

TransferFees

byte

None.

TransactionGroupID

integer

None.

application/json, text/json

Sample:
{
  "id": 1,
  "contactID": 1,
  "propertyID": 1,
  "workOrderID": 1,
  "addedDate": "2025-01-09T20:37",
  "raisedDate": "2025-01-09T20:37",
  "dueDate": "2025-01-09T20:37",
  "status": 64,
  "statusDate": "2025-01-09T20:37",
  "reference": "sample string 1",
  "amount": 1.0,
  "commissionEarnedContractor": 1.0,
  "commissionEarnedPayer": 1.0,
  "userID": 1,
  "siteID": 1,
  "companyID": 1,
  "paymentCleared": 64,
  "transferFees": 64,
  "transactionGroupID": 1
}

application/xml, text/xml

Sample:
<BillsUpdate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <ContactID>1</ContactID>
  <PropertyID>1</PropertyID>
  <WorkOrderID>1</WorkOrderID>
  <AddedDate>2025-01-09T20:37:08.0197798+00:00</AddedDate>
  <RaisedDate>2025-01-09T20:37:08.0197798+00:00</RaisedDate>
  <DueDate>2025-01-09T20:37:08.0197798+00:00</DueDate>
  <Status>64</Status>
  <StatusDate>2025-01-09T20:37:08.0197798+00:00</StatusDate>
  <Reference>sample string 1</Reference>
  <Amount>1</Amount>
  <CommissionEarnedContractor>1</CommissionEarnedContractor>
  <CommissionEarnedPayer>1</CommissionEarnedPayer>
  <UserID>1</UserID>
  <SiteID>1</SiteID>
  <CompanyID>1</CompanyID>
  <PaymentCleared>64</PaymentCleared>
  <TransferFees>64</TransferFees>
  <TransactionGroupID>1</TransactionGroupID>
</BillsUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Name Description Type Additional information
ID

integer

None.

ContactID

integer

None.

PropertyID

integer

None.

WorkOrderID

integer

None.

AddedDate

date

None.

RaisedDate

date

None.

DueDate

date

None.

Status

byte

None.

StatusDate

date

None.

Reference

string

String length: inclusive between 0 and 20

Amount

decimal number

None.

CommissionEarnedContractor

decimal number

None.

CommissionEarnedPayer

decimal number

None.

UserID

integer

None.

SiteID

integer

None.

CompanyID

integer

None.

PaymentCleared

byte

None.

TransferFees

byte

None.

TransactionGroupID

integer

None.

application/json, text/json

Sample:
{
  "id": 1,
  "contactID": 2,
  "propertyID": 3,
  "workOrderID": 4,
  "addedDate": "2025-01-09T20:37",
  "raisedDate": "2025-01-09T20:37",
  "dueDate": "2025-01-09T20:37",
  "status": 64,
  "statusDate": "2025-01-09T20:37",
  "reference": "sample string 10",
  "amount": 11.0,
  "commissionEarnedContractor": 12.0,
  "commissionEarnedPayer": 13.0,
  "userID": 14,
  "siteID": 15,
  "companyID": 16,
  "paymentCleared": 64,
  "transferFees": 64,
  "transactionGroupID": 19
}

application/xml, text/xml

Sample:
<Bills xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <ContactID>2</ContactID>
  <PropertyID>3</PropertyID>
  <WorkOrderID>4</WorkOrderID>
  <AddedDate>2025-01-09T20:37:08.0197798+00:00</AddedDate>
  <RaisedDate>2025-01-09T20:37:08.0197798+00:00</RaisedDate>
  <DueDate>2025-01-09T20:37:08.0197798+00:00</DueDate>
  <Status>64</Status>
  <StatusDate>2025-01-09T20:37:08.0197798+00:00</StatusDate>
  <Reference>sample string 10</Reference>
  <Amount>11</Amount>
  <CommissionEarnedContractor>12</CommissionEarnedContractor>
  <CommissionEarnedPayer>13</CommissionEarnedPayer>
  <UserID>14</UserID>
  <SiteID>15</SiteID>
  <CompanyID>16</CompanyID>
  <PaymentCleared>64</PaymentCleared>
  <TransferFees>64</TransferFees>
  <TransactionGroupID>19</TransactionGroupID>
</Bills>