Skip to main content

Contract Endpoints

Contracts


Contract

Supplier-side contracts. Use /SupplierContract to manage contracts with vendors and suppliers.


GET /SupplierContract

Summary: List of Contract

Description: Returns multiple Contract records. Requires authentication.

Query Parameters:

NameTypeDescription
countintegerNumber of contracts to return in the response.
includeinactivebooleanInclude inactive contracts in the response.
orderstringField name to order by (primary).
order2stringField name to order by (secondary).
order3stringField name to order by (tertiary).
order4stringField name to order by (quaternary).
order5stringField name to order by (fifth).
orderdescbooleanOrder descending on primary order field.
orderdesc2booleanOrder descending on secondary order field.
orderdesc3booleanOrder descending on tertiary order field.
orderdesc4booleanOrder descending on quaternary order field.
orderdesc5booleanOrder descending on fifth order field.
page_nointegerPage number when using pagination.
page_sizeintegerPage size when using pagination.
pageinatebooleanWhether to use pagination in the response.
searchstringFilter results based on a search string.
supplier_idintegerFilter by the specified supplier.

Response: 200 OK — Returns Contract_View schema.


POST /SupplierContract

Summary: Create Contract(s)

Request Body: Array of Contract objects.

Response: 201 Created — Returns Contract schema.


GET /SupplierContract/{id}

Summary: Get one Contract

Description: Returns a single Contract instance. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract ID.

Query Parameters:

NameTypeDescription
includedetailsbooleanInclude extra objects in the response.

Response: 200 OK — Returns Contract schema.


DELETE /SupplierContract/{id}

Summary: Delete Contract

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract ID.

Response: 200 OK


POST /SupplierContract/NextRef

Summary: Get Next Contract Reference

Request Body: Array of Contract objects.

Response: 200 OK


ContractHeader

Client-side contracts. Use /ClientContract to manage billing contracts assigned to clients.


GET /ClientContract

Summary: List of ContractHeader

Description: Returns multiple ContractHeader records. Requires authentication.

Query Parameters:

NameTypeDescription
client_idintegerFilter by client ID.
countintegerNumber of records to return.
device_idintegerFilter by device/asset ID.
excluderenewedbooleanExclude renewed contracts.
includeinactivebooleanInclude inactive contracts.
includelastrenewedbooleanInclude the last renewed contract.
isbillingplansetupbooleanFilter by whether billing plan is set up.
isoraclebooleanFilter Oracle-linked contracts.
orderstringPrimary order field.
order2stringSecondary order field.
order3stringTertiary order field.
order4stringQuaternary order field.
order5stringFifth order field.
orderdescbooleanDescending on primary order.
orderdesc2booleanDescending on secondary order.
orderdesc3booleanDescending on tertiary order.
orderdesc4booleanDescending on quaternary order.
orderdesc5booleanDescending on fifth order.
page_nointegerPage number for pagination.
page_sizeintegerPage size for pagination.
pageinatebooleanEnable pagination.
pending_recurring_invoicebooleanFilter contracts with pending recurring invoices.
searchstringFilter by search string.
site_idintegerFilter by site ID.
contract_typeintegerReturn only contracts of the specified Contract Type.
contract_sub_typeintegerReturn only contracts of the specified Contract Sub-Type.
labour_typeintegerFilter by labour type: 0 = Fixed, 1 = Pre-Pay.

Response: 200 OK — Returns ContractHeader_View schema.


POST /ClientContract

Summary: Create ContractHeader(s)

Request Body: Array of ContractHeader objects.

Response: 201 Created — Returns ContractHeader schema.


GET /ClientContract/{id}

Summary: Get one ContractHeader

Description: Returns a single ContractHeader instance. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract header ID.

Query Parameters:

NameTypeDescription
includedetailsbooleanInclude extra detail objects in the response.
includeperiodsbooleanInclude contract periods in the response.

Response: 200 OK — Returns ContractHeader schema.


DELETE /ClientContract/{id}

Summary: Delete ContractHeader

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract header ID.

Response: 200 OK


POST /ClientContract/NextRef

Summary: Get Next ContractHeader Reference

Request Body: Array of ContractHeader objects.

Response: 200 OK


POST /ClientContract/Approval

Summary: Submit Contract Approval

Request Body: Array of ContractApproval objects.

Response: 200 OK


ContractRule

Automated contract assignment rules.


GET /ContractRule

Summary: List Contract Rules

Response: 200 OK


POST /ContractRule

Summary: Create Contract Rule(s)

Request Body: Array of ContractRule objects.

Response: 200 OK


GET /ContractRule/{id}

Summary: Get one ContractRule

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract rule ID.

Response: 200 OK


DELETE /ContractRule/{id}

Summary: Delete ContractRule

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract rule ID.

Response: 200 OK


ContractSchedule

Scheduled payment/billing entries attached to a client contract.


GET /ContractSchedule

Summary: List Contract Schedules

Response: 200 OK


POST /ContractSchedule

Summary: Create Contract Schedule(s)

Request Body: Array of ContractSchedule objects.

Response: 200 OK


GET /ContractSchedule/{id}

Summary: Get one ContractSchedule

Description: Returns a single ContractSchedule instance. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract schedule ID.

Query Parameters:

NameTypeDescription
includedetailsbooleanInclude extra objects in the response.

Response: 200 OK


DELETE /ContractSchedule/{id}

Summary: Delete ContractSchedule

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract schedule ID.

Response: 200 OK


ContractSchedulePlan

Planned contract schedule entries (upcoming visits/appointments linked to contracts).


GET /ContractSchedulePlan

Summary: List Contract Schedule Plans

Response: 200 OK


POST /ContractSchedulePlan

Summary: Create Contract Schedule Plan(s)

Request Body: Array of ContractSchedulePlan objects.

Response: 200 OK


GET /ContractSchedulePlan/{id}

Summary: Get one ContractSchedulePlan

Description: Returns a single ContractSchedulePlan instance. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract schedule plan ID.

Query Parameters:

NameTypeDescription
includedetailsbooleanInclude extra objects in the response.

Response: 200 OK


DELETE /ContractSchedulePlan/{id}

Summary: Delete ContractSchedulePlan

Path Parameters:

NameTypeRequiredDescription
idintegerYesContract schedule plan ID.

Response: 200 OK


ContractTemplateHeader

Billing templates used as the basis for creating client contracts.


GET /BillingTemplate

Summary: List Billing Templates

Response: 200 OK


POST /BillingTemplate

Summary: Create Billing Template(s)

Request Body: Array of ContractTemplateHeader objects.

Response: 200 OK


GET /BillingTemplate/{id}

Summary: Get one ContractTemplateHeader

Description: Returns a single ContractTemplateHeader instance. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesBilling template ID.

Query Parameters:

NameTypeDescription
client_idintegerClient context for the template lookup.
includedetailsbooleanInclude extra objects in the response.

Response: 200 OK


DELETE /BillingTemplate/{id}

Summary: Delete Billing Template

Path Parameters:

NameTypeRequiredDescription
idintegerYesBilling template ID.

Response: 200 OK


PrepayHistory

Pre-pay balance history records for clients under pre-pay contracts.


GET /ClientPrepay

Summary: List of PrepayHistory

Description: Returns multiple PrepayHistory records. Requires authentication.

Query Parameters:

NameTypeDescription
advanced_searchstringAdvanced search expression.
billing_datestringFilter by billing date.
client_idintegerFilter by client ID.
client_idsstringComma-separated list of client IDs to filter by.
contract_idintegerFilter by contract ID.
countintegerNumber of records to return.
idonlybooleanReturn IDs only.
orderstringPrimary order field.
order2stringSecondary order field.
order3stringTertiary order field.
order4stringQuaternary order field.
order5stringFifth order field.
orderdescbooleanDescending on primary order.
orderdesc2booleanDescending on secondary order.
orderdesc3booleanDescending on tertiary order.
orderdesc4booleanDescending on quaternary order.
orderdesc5booleanDescending on fifth order.
page_nointegerPage number for pagination.
page_sizeintegerPage size for pagination.
pageinatebooleanEnable pagination.
ready_for_invoicingbooleanFilter records ready for invoicing.
searchstringFilter by search string.

Response: 200 OK


POST /ClientPrepay

Summary: Create PrepayHistory record(s)

Request Body: Array of PrepayHistory objects.

Response: 200 OK


GET /ClientPrepay/{id}

Summary: Get one PrepayHistory

Description: Returns a single PrepayHistory instance. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesPrepayHistory record ID.

Query Parameters:

NameTypeDescription
includedetailsbooleanInclude extra objects in the response.

Response: 200 OK


DELETE /ClientPrepay/{id}

Summary: Delete PrepayHistory record

Path Parameters:

NameTypeRequiredDescription
idintegerYesPrepayHistory record ID.

Response: 200 OK