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": "1378e590-7ec0-40f6-9c74-501ca178c7b8",
"vendorId": "sample string 2",
"name": "sample string 3",
"customer": {
"id": "72d1acfc-1fe0-4417-af6a-ade4e29c9937",
"vendorId": "sample string 2",
"name": "sample string 3",
"taxNumber": "sample string 4",
"location": {
"country": {
"id": "9a5eff55-2b2a-45c2-aa47-b28ae4d81f52",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "0ca4d81c-723a-4094-8d27-262b36625766",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"tradeNetwork": {
"id": "47a99fa3-5b11-4a2c-9c98-c6c0631f1792",
"vendorId": "sample string 2",
"name": "sample string 3",
"properties": [
{
"entityProperty": {
"id": "1368c0b3-c551-410d-ae5d-94a2b205bd31",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "1368c0b3-c551-410d-ae5d-94a2b205bd31",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"office": {
"id": "f8d839ab-1e89-4252-95ec-e18bcfb94c76",
"vendorId": "sample string 2",
"name": "sample string 3",
"responsible": {
"id": "507ad43d-6caf-4192-96d1-ea50974dfdc5",
"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-05-05T10:11:13.657962Z",
"lockoutEnabled": true,
"roles": [
"sample string 1",
"sample string 2"
]
},
"location": {
"country": {
"id": "9a5eff55-2b2a-45c2-aa47-b28ae4d81f52",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "0ca4d81c-723a-4094-8d27-262b36625766",
"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": "1368c0b3-c551-410d-ae5d-94a2b205bd31",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "1368c0b3-c551-410d-ae5d-94a2b205bd31",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"priceCategory": {
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
"priceTiers": [
{
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"currency": {
"id": "3d7eabb3-39d3-4c2f-864b-794f0f484223",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"paymentTypes": [
{
"id": "220e988b-9876-4ef0-bdd3-46df673aa404",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "220e988b-9876-4ef0-bdd3-46df673aa404",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"paymentForms": [
1,
2
],
"deferment": 1,
"limit": 1.0,
"minOrder": 1.0,
"debts": [
{
"currency": {
"id": "3d7eabb3-39d3-4c2f-864b-794f0f484223",
"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": "3d7eabb3-39d3-4c2f-864b-794f0f484223",
"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": "3d7eabb3-39d3-4c2f-864b-794f0f484223",
"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": "3d7eabb3-39d3-4c2f-864b-794f0f484223",
"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": "1368c0b3-c551-410d-ae5d-94a2b205bd31",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "1368c0b3-c551-410d-ae5d-94a2b205bd31",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
],
"discounts": [
{
"id": "20e0b646-2054-4d99-b3bf-f7f1f6145e4b",
"group": {
"id": "77acfa9a-b210-4a38-8371-a220d2f3c534",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "90b7d5a0-0fea-464e-8be7-b2a238f34d29",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
},
{
"id": "20e0b646-2054-4d99-b3bf-f7f1f6145e4b",
"group": {
"id": "77acfa9a-b210-4a38-8371-a220d2f3c534",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "90b7d5a0-0fea-464e-8be7-b2a238f34d29",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
}
],
"active": true,
"dateFrom": "2026-05-05T10:11:13.657962Z",
"dateTill": "2026-05-05T10:11:13.657962Z",
"orderIndex": 1,
"isFixedPriceCategory": true,
"deliveryTypes": [
{
"id": "6b38fb91-1a93-429b-8f49-2f979845aad6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "6b38fb91-1a93-429b-8f49-2f979845aad6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"brandPriceCategories": [
{
"brand": {
"id": "90b7d5a0-0fea-464e-8be7-b2a238f34d29",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"brand": {
"id": "90b7d5a0-0fea-464e-8be7-b2a238f34d29",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
],
"groupPriceCategories": [
{
"group": {
"id": "77acfa9a-b210-4a38-8371-a220d2f3c534",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"group": {
"id": "77acfa9a-b210-4a38-8371-a220d2f3c534",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "607c5d6a-0421-41a6-b986-49c60c37eb5c",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
]
}
Sample not available.
Sample not available.