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": "32b4e5a7-4731-45f3-a15c-8511384e382f",
"vendorId": "sample string 2",
"name": "sample string 3",
"customer": {
"id": "9ce2bbbe-9cdf-4976-ae8b-3723c48c124f",
"vendorId": "sample string 2",
"name": "sample string 3",
"taxNumber": "sample string 4",
"location": {
"country": {
"id": "62d1fb07-02f5-4ebc-b455-3b76df779196",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "cf7682cd-edb4-41c0-8900-7bf9d9faa548",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"tradeNetwork": {
"id": "6557c871-37ed-4419-927d-6b0322e0551d",
"vendorId": "sample string 2",
"name": "sample string 3",
"properties": [
{
"entityProperty": {
"id": "93775ddb-7ac8-4b95-80f4-1afc08d1296e",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "93775ddb-7ac8-4b95-80f4-1afc08d1296e",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"office": {
"id": "d235fdd5-d538-47c6-8a0b-0508d09e52b4",
"vendorId": "sample string 2",
"name": "sample string 3",
"responsible": {
"id": "a9593382-d942-4afd-8900-bd56283f5522",
"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": "2025-11-03T21:55:22.5661271Z",
"lockoutEnabled": true,
"roles": [
"sample string 1",
"sample string 2"
]
},
"location": {
"country": {
"id": "62d1fb07-02f5-4ebc-b455-3b76df779196",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "cf7682cd-edb4-41c0-8900-7bf9d9faa548",
"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": "93775ddb-7ac8-4b95-80f4-1afc08d1296e",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "93775ddb-7ac8-4b95-80f4-1afc08d1296e",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"priceCategory": {
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
"priceTiers": [
{
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"currency": {
"id": "3fa31089-2d42-414a-9251-1a394e76e219",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"paymentTypes": [
{
"id": "dfaf37c1-56db-4efe-80a6-76e88e3d8291",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "dfaf37c1-56db-4efe-80a6-76e88e3d8291",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"paymentForms": [
1,
2
],
"deferment": 1,
"limit": 1.0,
"minOrder": 1.0,
"debts": [
{
"currency": {
"id": "3fa31089-2d42-414a-9251-1a394e76e219",
"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": "3fa31089-2d42-414a-9251-1a394e76e219",
"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": "3fa31089-2d42-414a-9251-1a394e76e219",
"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": "3fa31089-2d42-414a-9251-1a394e76e219",
"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": "93775ddb-7ac8-4b95-80f4-1afc08d1296e",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "93775ddb-7ac8-4b95-80f4-1afc08d1296e",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
],
"discounts": [
{
"id": "d50c1c79-64cb-4686-9dcc-960c9297f410",
"group": {
"id": "11ac8948-ab32-4c96-bab6-aad64e2cd49f",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "52538e4a-1ce3-406e-808a-56e2e833cc4e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
},
{
"id": "d50c1c79-64cb-4686-9dcc-960c9297f410",
"group": {
"id": "11ac8948-ab32-4c96-bab6-aad64e2cd49f",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "52538e4a-1ce3-406e-808a-56e2e833cc4e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
}
],
"active": true,
"dateFrom": "2025-11-03T21:55:22.5661271Z",
"dateTill": "2025-11-03T21:55:22.5661271Z",
"orderIndex": 1,
"isFixedPriceCategory": true,
"deliveryTypes": [
{
"id": "7b8f6662-c820-453d-bb63-58d70aa5b188",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "7b8f6662-c820-453d-bb63-58d70aa5b188",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"brandPriceCategories": [
{
"brand": {
"id": "52538e4a-1ce3-406e-808a-56e2e833cc4e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"brand": {
"id": "52538e4a-1ce3-406e-808a-56e2e833cc4e",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
],
"groupPriceCategories": [
{
"group": {
"id": "11ac8948-ab32-4c96-bab6-aad64e2cd49f",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"group": {
"id": "11ac8948-ab32-4c96-bab6-aad64e2cd49f",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "88f28c4d-42d1-48e6-a264-e9f9508325d6",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
]
}
Sample not available.
Sample not available.