GET api/offices/{id}
Метод для получения информации об "Офисе"
Полный URL-адрес запроса: https://sfa-api.ddapp.biz/api/offices/{id}
Для этого метода требуется авторизация
Информация о запросе
URL параметры
| Название | Описание | Тип данных | Дополнительная информация |
|---|---|---|---|
| id |
Уникальный идентификатор "Офиса" |
string |
Required |
| fields |
Список дополнительных полей, которые необходимо вернуть |
string |
Нет |
Тело запроса
Нет параметров в теле запроса
Информация об ответе
OfficeModel
| Название | Описание | Тип данных | Дополнительная информация |
|---|---|---|---|
| Id | globally unique identifier |
Нет |
|
| VendorId | string |
Нет |
|
| Name | string |
Поддерживает сортировку |
|
| Responsible | UserModel |
Дополнительное поле |
|
| Location | LocationModel |
Дополнительное поле |
|
| TimeZoneId | string |
Нет |
Форматы ответа
{
"id": "c3f5c014-aac1-493a-a078-11673b457931",
"vendorId": "sample string 2",
"name": "sample string 3",
"responsible": {
"id": "1e15f1bb-aa9c-4df3-a5ce-b595d5322735",
"vendorId": "sample string 2",
"firstName": "sample string 3",
"lastName": "sample string 4",
"middleName": "sample string 5",
"fullName": "sample string 6",
"imageUrl": "sample string 7",
"email": "sample string 8",
"emailConfirmed": true,
"phoneNumber": "sample string 10",
"phoneNumberConfirmed": true,
"twoFactorEnabled": true,
"lockoutEndDateUtc": "2026-08-04T21:56:48.3377251Z",
"lockoutEnabled": true,
"roles": [
"sample string 1",
"sample string 2"
]
},
"location": {
"country": {
"id": "8e700b56-d951-4330-957b-9bb94cfafb6e",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "564d1c3b-c672-4b0d-84a2-8f50fc2eb8c9",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"timeZoneId": "sample string 4"
}
<OfficeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Offices">
<Id>c3f5c014-aac1-493a-a078-11673b457931</Id>
<Location xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Geo">
<d2p1:AddressLine>sample string 2</d2p1:AddressLine>
<d2p1:Country>
<d2p1:Id>8e700b56-d951-4330-957b-9bb94cfafb6e</d2p1:Id>
<d2p1:IsoCode>sample string 2</d2p1:IsoCode>
<d2p1:Name>sample string 3</d2p1:Name>
</d2p1:Country>
<d2p1:GeoCoordinate>
<d2p1:Latitude>1.1</d2p1:Latitude>
<d2p1:Longitude>1.1</d2p1:Longitude>
</d2p1:GeoCoordinate>
<d2p1:Province>
<d2p1:Id>564d1c3b-c672-4b0d-84a2-8f50fc2eb8c9</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:Province>
<d2p1:Settlement>sample string 1</d2p1:Settlement>
</Location>
<Name>sample string 3</Name>
<Responsible xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Users">
<d2p1:Email>sample string 8</d2p1:Email>
<d2p1:EmailConfirmed>true</d2p1:EmailConfirmed>
<d2p1:FirstName>sample string 3</d2p1:FirstName>
<d2p1:FullName>sample string 6</d2p1:FullName>
<d2p1:Id>1e15f1bb-aa9c-4df3-a5ce-b595d5322735</d2p1:Id>
<d2p1:ImageUrl>sample string 7</d2p1:ImageUrl>
<d2p1:LastName>sample string 4</d2p1:LastName>
<d2p1:LockoutEnabled>true</d2p1:LockoutEnabled>
<d2p1:LockoutEndDateUtc>2026-08-04T21:56:48.3377251+00:00</d2p1:LockoutEndDateUtc>
<d2p1:MiddleName>sample string 5</d2p1:MiddleName>
<d2p1:PhoneNumber>sample string 10</d2p1:PhoneNumber>
<d2p1:PhoneNumberConfirmed>true</d2p1:PhoneNumberConfirmed>
<d2p1:Roles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</d2p1:Roles>
<d2p1:TwoFactorEnabled>true</d2p1:TwoFactorEnabled>
<d2p1:VendorId>sample string 2</d2p1:VendorId>
</Responsible>
<TimeZoneId>sample string 4</TimeZoneId>
<VendorId>sample string 2</VendorId>
</OfficeModel>