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": "cddfb2a9-ab1d-4df6-966b-d9dc1bfc855c",
  "id2": 2,
  "reference_back_office": "sample string 3",
  "name": "sample string 4",
  "company_id": "b930178c-4565-4f6c-8de7-994cd787235b",
  "contract_type_id": "16f73db9-90b9-460b-a502-67143af456ca",
  "contract_status_id": "4b183fed-18ae-422e-a757-2294437c0934",
  "internal_remark": "sample string 8",
  "date_start": "2026-11-12T14:27:45.7280369+00:00",
  "date_end": "2026-11-12T14:27:45.7280369+00:00",
  "hours_free_for_preventive_jobs": true,
  "feelist_id": "cfa7a57d-0f0d-4d2f-a6c1-71933d14d0f3",
  "article_price_label_id": "e6f91e43-8b2a-4429-916d-842b1e1713c2",
  "travel_fee_fix_discount": 14.0,
  "articles_free_for_preventive_jobs": true,
  "reference": "sample string 16",
  "discount": 17.0,
  "company_discount_family_id": "10c1b467-2ec8-4be1-873a-ef350d064571",
  "modified_dateutc": "2026-11-12T14:27:45.7280369+00:00"
}

application/xml, text/xml

Sample:
<contract xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <article_price_label_id>e6f91e43-8b2a-4429-916d-842b1e1713c2</article_price_label_id>
  <articles_free_for_preventive_jobs>true</articles_free_for_preventive_jobs>
  <company_discount_family_id>10c1b467-2ec8-4be1-873a-ef350d064571</company_discount_family_id>
  <company_id>b930178c-4565-4f6c-8de7-994cd787235b</company_id>
  <contract_status_id>4b183fed-18ae-422e-a757-2294437c0934</contract_status_id>
  <contract_type_id>16f73db9-90b9-460b-a502-67143af456ca</contract_type_id>
  <date_end>2026-11-12T14:27:45.728Z</date_end>
  <date_start>2026-11-12T14:27:45.728Z</date_start>
  <discount>17</discount>
  <feelist_id>cfa7a57d-0f0d-4d2f-a6c1-71933d14d0f3</feelist_id>
  <hours_free_for_preventive_jobs>true</hours_free_for_preventive_jobs>
  <id>cddfb2a9-ab1d-4df6-966b-d9dc1bfc855c</id>
  <id2>2</id2>
  <internal_remark>sample string 8</internal_remark>
  <modified_dateutc>2026-11-12T14:27:45.728Z</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>