GET api/relationships/{id}
Метод для получения информации о "Взаимоотношении" между Клиентом и Дистрибьютором (aka Договор)
Полный URL-адрес запроса: https://sfa-api.ddapp.biz/api/relationships/{id}?api-version=2.0
Для этого метода требуется авторизация
Информация о запросе
URL параметры
| Название | Описание | Тип данных | Дополнительная информация |
|---|---|---|---|
| id |
Уникальный идентфикатор "Взаимоотношения" |
string |
Required |
| fields |
Список дополнительных полей, которые необходимо вернуть |
string |
Нет |
Тело запроса
Нет параметров в теле запроса
Информация об ответе
RelationshipModel2
| Название | Описание | Тип данных | Дополнительная информация |
|---|---|---|---|
| Id | globally unique identifier |
Нет |
|
| VendorId | string |
Нет |
|
| Name | string |
Нет |
|
| Customer | CustomerModel |
Дополнительное поле |
|
| PriceCategory | PriceCategoryModel |
Дополнительное поле |
|
| PriceTiers | Collection of PriceCategoryModel |
Дополнительное поле |
|
| Currency | CurrencyModel |
Дополнительное поле |
|
| PaymentTypes | Collection of PaymentTypeModel |
Дополнительное поле |
|
| PaymentForms | Collection of integer |
Дополнительное поле |
|
| Deferment | integer |
Нет |
|
| Limit | decimal number |
Нет |
|
| MinOrder | decimal number |
Нет |
|
| Debts | Collection of MultiCurrencySumModel |
Дополнительное поле |
|
| OverdueDebts | Collection of MultiCurrencySumModel |
Дополнительное поле |
|
| Properties | Collection of EntityPropertyValueModel |
Дополнительное поле |
|
| Discounts | Collection of RelationshipDiscountModel |
Дополнительное поле |
|
| Active | boolean |
Нет |
|
| DateFrom | date |
Нет |
|
| DateTill | date |
Нет |
|
| OrderIndex | integer |
Нет |
|
| IsFixedPriceCategory | boolean |
Нет |
|
| DeliveryTypes | Collection of DeliveryTypeModel |
Дополнительное поле |
|
| BrandPriceCategories | Collection of RelationshipBrandPriceCategoryModel |
Дополнительное поле |
|
| GroupPriceCategories | Collection of RelationshipGroupPriceCategoryModel |
Дополнительное поле |
Форматы ответа
{
"id": "ba2a1fe4-e437-41a4-9993-b42681a750cf",
"vendorId": "sample string 2",
"name": "sample string 3",
"customer": {
"id": "550b16b9-f497-4222-8ba8-0962ee40d951",
"vendorId": "sample string 2",
"name": "sample string 3",
"taxNumber": "sample string 4",
"location": {
"country": {
"id": "93ea69ee-6b92-4707-a094-66a9969f7812",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "34d98740-25ad-47ac-9e90-0168d9214859",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"tradeNetwork": {
"id": "f6e0e4e4-479d-41d1-bb81-3ab78e076756",
"vendorId": "sample string 2",
"name": "sample string 3",
"properties": [
{
"entityProperty": {
"id": "81b9d32c-4473-45d3-b2f0-f67c31b97477",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "81b9d32c-4473-45d3-b2f0-f67c31b97477",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"office": {
"id": "e06c590f-2172-4325-a1b0-2cbf126894c5",
"vendorId": "sample string 2",
"name": "sample string 3",
"responsible": {
"id": "4639a655-4924-4eb8-a598-6d66d98b8837",
"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-09-19T08:16:40.2371066Z",
"lockoutEnabled": true,
"roles": [
"sample string 1",
"sample string 2"
]
},
"location": {
"country": {
"id": "93ea69ee-6b92-4707-a094-66a9969f7812",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "34d98740-25ad-47ac-9e90-0168d9214859",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"timeZoneId": "sample string 4"
},
"properties": [
{
"entityProperty": {
"id": "81b9d32c-4473-45d3-b2f0-f67c31b97477",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "81b9d32c-4473-45d3-b2f0-f67c31b97477",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"priceCategory": {
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
"priceTiers": [
{
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"currency": {
"id": "bbe96f3f-1d65-4406-8458-cfad26de56cd",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"paymentTypes": [
{
"id": "e4b1f0ba-b8da-4aae-8e87-0eeb28f2beba",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "e4b1f0ba-b8da-4aae-8e87-0eeb28f2beba",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"paymentForms": [
1,
2
],
"deferment": 1,
"limit": 1.0,
"minOrder": 1.0,
"debts": [
{
"currency": {
"id": "bbe96f3f-1d65-4406-8458-cfad26de56cd",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"sum": 1.0
},
{
"currency": {
"id": "bbe96f3f-1d65-4406-8458-cfad26de56cd",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"sum": 1.0
}
],
"overdueDebts": [
{
"currency": {
"id": "bbe96f3f-1d65-4406-8458-cfad26de56cd",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"sum": 1.0
},
{
"currency": {
"id": "bbe96f3f-1d65-4406-8458-cfad26de56cd",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"sum": 1.0
}
],
"properties": [
{
"entityProperty": {
"id": "81b9d32c-4473-45d3-b2f0-f67c31b97477",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "81b9d32c-4473-45d3-b2f0-f67c31b97477",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
],
"discounts": [
{
"id": "d41613bd-6dac-4f22-9f0f-c535d0fa723b",
"group": {
"id": "48ed9d93-2d84-410a-b1c4-ec6a34dc6b80",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "565448fe-2216-4c56-8eca-ac5ac12d5cce",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
},
{
"id": "d41613bd-6dac-4f22-9f0f-c535d0fa723b",
"group": {
"id": "48ed9d93-2d84-410a-b1c4-ec6a34dc6b80",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "565448fe-2216-4c56-8eca-ac5ac12d5cce",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
}
],
"active": true,
"dateFrom": "2026-09-19T08:16:40.2371066Z",
"dateTill": "2026-09-19T08:16:40.2371066Z",
"orderIndex": 1,
"isFixedPriceCategory": true,
"deliveryTypes": [
{
"id": "2a6a7574-5059-4da9-83fa-79e9b2b09e0b",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "2a6a7574-5059-4da9-83fa-79e9b2b09e0b",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"brandPriceCategories": [
{
"brand": {
"id": "565448fe-2216-4c56-8eca-ac5ac12d5cce",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"brand": {
"id": "565448fe-2216-4c56-8eca-ac5ac12d5cce",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
],
"groupPriceCategories": [
{
"group": {
"id": "48ed9d93-2d84-410a-b1c4-ec6a34dc6b80",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"group": {
"id": "48ed9d93-2d84-410a-b1c4-ec6a34dc6b80",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "e83821d4-2c4d-4c11-8527-d0026bab598e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
]
}
Sample not available.
Sample not available.