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": "7b35c004-70cf-42d3-9b6d-5c1a4ff823c2",
"vendorId": "sample string 2",
"name": "sample string 3",
"customer": {
"id": "d8d8363c-7057-44da-922c-e4381b67d121",
"vendorId": "sample string 2",
"name": "sample string 3",
"taxNumber": "sample string 4",
"location": {
"country": {
"id": "92899f2a-7b3b-4a57-9e07-3a920cfc6c70",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "70213b16-d2c8-47b2-a4b8-a3d460b6ef92",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"tradeNetwork": {
"id": "47044591-70d2-4d73-8c62-f8840c3424aa",
"vendorId": "sample string 2",
"name": "sample string 3",
"properties": [
{
"entityProperty": {
"id": "dd31a8c7-db13-48ab-a030-f36563e42e7a",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "dd31a8c7-db13-48ab-a030-f36563e42e7a",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"office": {
"id": "9b09459a-d106-4e46-b569-52d138709cc7",
"vendorId": "sample string 2",
"name": "sample string 3",
"responsible": {
"id": "117eca7b-f761-445d-a721-5fb9a363ed4d",
"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-02-04T02:07:53.5680725Z",
"lockoutEnabled": true,
"roles": [
"sample string 1",
"sample string 2"
]
},
"location": {
"country": {
"id": "92899f2a-7b3b-4a57-9e07-3a920cfc6c70",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "70213b16-d2c8-47b2-a4b8-a3d460b6ef92",
"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": "dd31a8c7-db13-48ab-a030-f36563e42e7a",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "dd31a8c7-db13-48ab-a030-f36563e42e7a",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"priceCategory": {
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
"priceTiers": [
{
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"currency": {
"id": "cb4282dc-fb71-46d2-8853-30f441561cf0",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"paymentTypes": [
{
"id": "b4a22df5-e126-47df-a068-d9c3ed9e278b",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "b4a22df5-e126-47df-a068-d9c3ed9e278b",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"paymentForms": [
1,
2
],
"deferment": 1,
"limit": 1.0,
"minOrder": 1.0,
"debts": [
{
"currency": {
"id": "cb4282dc-fb71-46d2-8853-30f441561cf0",
"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": "cb4282dc-fb71-46d2-8853-30f441561cf0",
"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": "cb4282dc-fb71-46d2-8853-30f441561cf0",
"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": "cb4282dc-fb71-46d2-8853-30f441561cf0",
"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": "dd31a8c7-db13-48ab-a030-f36563e42e7a",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "dd31a8c7-db13-48ab-a030-f36563e42e7a",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
],
"discounts": [
{
"id": "a499fa26-eabe-4def-a0ef-7be8f40cb8f9",
"group": {
"id": "9ab84a0a-cda7-475e-9acf-cb1d21a492eb",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "ff8f52af-3608-4a66-ba6a-8bd7b822616e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
},
{
"id": "a499fa26-eabe-4def-a0ef-7be8f40cb8f9",
"group": {
"id": "9ab84a0a-cda7-475e-9acf-cb1d21a492eb",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "ff8f52af-3608-4a66-ba6a-8bd7b822616e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
}
],
"active": true,
"dateFrom": "2026-02-04T02:07:53.5680725Z",
"dateTill": "2026-02-04T02:07:53.5680725Z",
"orderIndex": 1,
"isFixedPriceCategory": true,
"deliveryTypes": [
{
"id": "12021b50-5a64-40b4-93d4-e32770727df6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "12021b50-5a64-40b4-93d4-e32770727df6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"brandPriceCategories": [
{
"brand": {
"id": "ff8f52af-3608-4a66-ba6a-8bd7b822616e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"brand": {
"id": "ff8f52af-3608-4a66-ba6a-8bd7b822616e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
],
"groupPriceCategories": [
{
"group": {
"id": "9ab84a0a-cda7-475e-9acf-cb1d21a492eb",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"group": {
"id": "9ab84a0a-cda7-475e-9acf-cb1d21a492eb",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "c1844b33-5c17-4a7e-806c-7a5f32eeaf3e",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
]
}
Sample not available.
Sample not available.