Retrieves all contracts, optionally filtered via OData query options.

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult containing the list of contracts.

contract
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

id2

id2

integer

Required

reference_back_office

Backoffice reference

string
name

Name of the contract

string
company_id

Foreign key of the company this contract belongs to.

globally unique identifier
contract_type_id

Foreign key of the contract's type (see ).

globally unique identifier
contract_status_id

Foreign key of the contract's current status.

globally unique identifier
internal_remark

Internal remark about the contract, not shown to the customer.

string
date_start

Date and time from which the contract is valid.

date
date_end

Date and time until which the contract remains valid.

date
hours_free_for_preventive_jobs

Hours free for preventive jobs

boolean
feelist_id

Feelist id

globally unique identifier
article_price_label_id

Article price label id

globally unique identifier
travel_fee_fix_discount

Fixed discount amount applied to travel fees billed under this contract.

decimal number
articles_free_for_preventive_jobs

Indicates that articles used on preventive jobs are free of charge under this contract.

boolean
reference

Free-text reference for this contract.

string
discount

Default discount percentage applied to billable lines under this contract.

decimal number
company_discount_family_id

Foreign key of the discount family this contract's pricing follows, when scoped by discount family.

globally unique identifier
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date

Response Formats

application/json, text/json

Sample:
{
  "id": "0a3c05d1-b63a-4132-a2cd-7c94cd74d7da",
  "id2": 2,
  "reference_back_office": "sample string 3",
  "name": "sample string 4",
  "company_id": "9aaf0885-d5d0-4a39-a460-895e3c992aa4",
  "contract_type_id": "412e953c-c973-4744-b03d-0bdbfc1763ae",
  "contract_status_id": "9aaf7354-fbec-41b7-81e5-8eae4cd7d8e8",
  "internal_remark": "sample string 8",
  "date_start": "2026-09-16T08:34:53.1283277+00:00",
  "date_end": "2026-09-16T08:34:53.1283277+00:00",
  "hours_free_for_preventive_jobs": true,
  "feelist_id": "e3125d01-13b3-4840-89f9-8ce0a15dc839",
  "article_price_label_id": "e3e5c71b-4797-41d5-b196-60ece13a5e5a",
  "travel_fee_fix_discount": 14.0,
  "articles_free_for_preventive_jobs": true,
  "reference": "sample string 16",
  "discount": 17.0,
  "company_discount_family_id": "438eefef-62bc-40d5-b52f-78cec0568188",
  "modified_dateutc": "2026-09-16T08:34:53.1283277+00:00"
}

application/xml, text/xml

Sample:
<contract xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <article_price_label_id>e3e5c71b-4797-41d5-b196-60ece13a5e5a</article_price_label_id>
  <articles_free_for_preventive_jobs>true</articles_free_for_preventive_jobs>
  <company_discount_family_id>438eefef-62bc-40d5-b52f-78cec0568188</company_discount_family_id>
  <company_id>9aaf0885-d5d0-4a39-a460-895e3c992aa4</company_id>
  <contract_status_id>9aaf7354-fbec-41b7-81e5-8eae4cd7d8e8</contract_status_id>
  <contract_type_id>412e953c-c973-4744-b03d-0bdbfc1763ae</contract_type_id>
  <date_end>2026-09-16T08:34:53.128Z</date_end>
  <date_start>2026-09-16T08:34:53.128Z</date_start>
  <discount>17</discount>
  <feelist_id>e3125d01-13b3-4840-89f9-8ce0a15dc839</feelist_id>
  <hours_free_for_preventive_jobs>true</hours_free_for_preventive_jobs>
  <id>0a3c05d1-b63a-4132-a2cd-7c94cd74d7da</id>
  <id2>2</id2>
  <internal_remark>sample string 8</internal_remark>
  <modified_dateutc>2026-09-16T08:34:53.128Z</modified_dateutc>
  <name>sample string 4</name>
  <reference>sample string 16</reference>
  <reference_back_office>sample string 3</reference_back_office>
  <travel_fee_fix_discount>14</travel_fee_fix_discount>
</contract>