Get Contract
GEThttps://[AccountName].logeto.com/api/v2/Contracts/:key
Get Contract
Request
Path Parameters
key stringrequired
Guid or ExternalKey
Responses
- 200
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
Guid guid
Revision int64
PersonCreated guidnullable
PersonChanged guidnullable
TimestampCreated date-timenullable
Example:
2025-05-21T07:48:00Z
TimestampChanged date-timenullable
Example:
2025-05-21T07:48:00Z
Name stringnullable
Code stringnullable
Customer guidnullable
ResponsiblePerson guidnullable
Description stringnullable
StartDate datenullable
EndDate datenullable
Billable BillableFlags (string)
Possible values: [None
, Billable
, ChangeAllowed
, BillableChangeAllowed
]
Note stringnullable
CustomFields objectnullable
Example:
{"MyCustomField":"value","MyNestedObject":{"MyNestedProperty":"value"}}
ExternalKey stringnullable
States string[]nullable
ContactPerson stringnullable
Possible values: <= 50 characters
ContactPhone stringnullable
Possible values: <= 30 characters
ContactEmail stringnullable
Possible values: <= 65 characters
CompletionDate date-timenullable
Branch guidnullable
{
"Guid": "string",
"Revision": 0,
"PersonCreated": "string",
"PersonChanged": "string",
"TimestampCreated": "2025-05-21T07:48:00Z",
"TimestampChanged": "2025-05-21T07:48:00Z",
"Name": "string",
"Code": "string",
"Customer": "string",
"ResponsiblePerson": "string",
"Description": "string",
"StartDate": "2024-07-29",
"EndDate": "2024-07-29",
"Billable": "None",
"Note": "string",
"CustomFields": {
"MyCustomField": "value",
"MyNestedObject": {
"MyNestedProperty": "value"
}
},
"ExternalKey": "string",
"States": [
"string"
],
"ContactPerson": "string",
"ContactPhone": "string",
"ContactEmail": "string",
"CompletionDate": "2024-07-29T15:51:28.071Z",
"Branch": "string"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
Guid guid
Revision int64
PersonCreated guidnullable
PersonChanged guidnullable
TimestampCreated date-timenullable
Example:
2025-05-21T07:48:00Z
TimestampChanged date-timenullable
Example:
2025-05-21T07:48:00Z
Name stringnullable
Code stringnullable
Type
object
Default boolean
TimeEntry
object
Inactive boolean
Movement boolean
Icon stringnullable
ExternalKey stringnullable
{
"Guid": "string",
"Revision": 0,
"PersonCreated": "string",
"PersonChanged": "string",
"TimestampCreated": "2025-05-21T07:48:00Z",
"TimestampChanged": "2025-05-21T07:48:00Z",
"Name": "string",
"Code": "string",
"Type": "Work",
"Default": true,
"TimeEntry": "Optional",
"Inactive": true,
"Movement": true,
"Icon": "string",
"ExternalKey": "string"
}
Authorization: AccessKey
name: AccessKeytype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://[AccountName].logeto.com/api/v2/Contracts/:key");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("AccessKey", "<API_KEY_VALUE>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear