Retrieves all the contracts

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult

contract
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

id2

id2

integer

Required

company_id

The company owner of this contract

globally unique identifier

Optionally required : company_id, company_code or company must be provided

company_code

Embedded entity "company" using ERP PK when adding/updating contract

string

Optionally required : company_id, company_code or company must be provided

company

Embedded entity "company" when adding/updating contract

company

Optionally required : company_id, company_code or company must be provided

reference

Reference

string
reference_back_office

Backoffice reference

string
reference_customer

Customer Reference

string
date_start

Start Date of the contract

date
date_end

Contract End date

date
date_cancel

Readonly , date +time when the contract goes in status Cancelled

date
date_last_invoiced

Readonly contains the last date an invoice has been generated for this contract

date
name

Name of the contract

string
description

Description of Contract

string
feelist_id

Feelist ID

globally unique identifier
article_price_label_id

Article Price Llabel Id

globally unique identifier
account_manager_user_id

FK of Account manager user

globally unique identifier
account_manager_user

Embedded entity "account_manager_user" using ERP PK when adding/updating account_manager_user

user
account_manager_user_code

Embedded entity "account_manager_user" using ERP PK when adding/updating account_manager_user

string
modified_dateutc

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

date
renewal_term_months

Renewal Term Months

integer

Range: inclusive between 0 and 1000000

feelist_warranty_discount

Feelist Warranty Discount

decimal number

Range: inclusive between 0 and 100

price_label_warranty_discount

Price Label Warranty Discount

decimal number

Range: inclusive between 0 and 100

driving_distance

Distance in km that are used to invoice the travel

decimal number
travel_fee_fix_discount

Discount applied when computing the fee for travel

decimal number

Response Formats

application/json, text/json

Sample:
{
  "id": "2c295b70-d989-49ab-827c-72a7035db8e0",
  "id2": 2,
  "company_id": "e129b64f-4e01-4123-b0b1-a615c4af90e4",
  "company_code": "sample string 4",
  "reference": "sample string 5",
  "reference_back_office": "sample string 6",
  "reference_customer": "sample string 7",
  "date_start": "2025-04-02T08:45:44.4388236+00:00",
  "date_end": "2025-04-02T08:45:44.4388236+00:00",
  "date_cancel": "2025-04-02T08:45:44.4388236+00:00",
  "date_last_invoiced": "2025-04-02T08:45:44.4388236+00:00",
  "name": "sample string 12",
  "description": "sample string 13",
  "feelist_id": "973956d0-9faa-425e-a141-93e24d8b225f",
  "article_price_label_id": "69ed9aaf-824d-4494-a577-296933a1713d",
  "account_manager_user_id": "d18785fe-920c-427b-b28d-595eae6e6129",
  "account_manager_user": {
    "id": "b01fc651-130f-4387-bddd-91e8c30fbcfe",
    "db_language_id": "cb2c4ff3-d875-4713-940b-6944478f0a52",
    "username": "sample string 3",
    "firstname": "sample string 4",
    "lastname": "sample string 5",
    "code": "sample string 6",
    "archived": true,
    "disabled": true,
    "emergency_contact": "sample string 9",
    "bankaccount": "sample string 10",
    "social_security": "sample string 11",
    "place_of_birth": "sample string 12",
    "nationality": "sample string 13",
    "functions": "sample string 14",
    "birthdate": "2025-04-02T08:45:44.4388236+00:00",
    "skype": "sample string 16",
    "notes": "sample string 17",
    "sales_organization_id": "7a1e03a7-19f6-4ab4-83ec-bb9d5ea37ffa",
    "sales_organization": {
      "id": "8165e552-d0d9-4364-9b4d-6967fce68eff",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "803476ce-2b41-4bf2-aade-7224e994b0c5",
      "db_currency_id": "54cd10a1-573b-4a5f-b68f-263e7e2c1742",
      "db_language_id": "25680c08-313a-43d0-8a4c-8bc81f6fa172",
      "accountancy_code": "sample string 8",
      "archived": true,
      "default_unit_of_measure_system_type": "sample string 10",
      "street": "sample string 11",
      "street2": "sample string 12",
      "street_number": "sample string 13",
      "zip": "sample string 14",
      "city": "sample string 15",
      "email": "sample string 16",
      "phone": "sample string 17",
      "fax": "sample string 18",
      "url": "sample string 19",
      "vat_reg_code": "sample string 20",
      "modified_dateutc": "2025-04-02T08:45:44.4388236+00:00"
    },
    "sales_organization_code": "sample string 19",
    "is_team_leader": true,
    "team_leader_user_id": "3ec21cbd-564a-4308-aea5-f5bd776b08d1",
    "email": "sample string 22",
    "phone": "sample string 23",
    "fax": "sample string 24",
    "mobile": "sample string 25",
    "private_email": "sample string 26",
    "private_phone": "sample string 27",
    "private_fax": "sample string 28",
    "private_mobile": "sample string 29",
    "private_street": "sample string 30",
    "private_street_number": "sample string 31",
    "private_city": "sample string 32",
    "private_zip": "sample string 33",
    "private_db_country_id": "a783ece4-d580-4a19-b11b-12b9e3115a35",
    "private_db_country_code": "sample string 35",
    "modified_dateutc": "2025-04-02T08:45:44.4388236+00:00",
    "allow_hero_app": true,
    "allow_sales_app": true,
    "allow_service_app": true,
    "user_group_id": "6e00c469-9bfa-48cd-9e4e-92134c0b73b0"
  },
  "account_manager_user_code": "sample string 17",
  "modified_dateutc": "2025-04-02T08:45:44.4388236+00:00",
  "renewal_term_months": 19,
  "feelist_warranty_discount": 20.0,
  "price_label_warranty_discount": 21.0,
  "driving_distance": 22.0,
  "travel_fee_fix_discount": 23.0
}