GET api/relationships/{id}
Метод для получения информации о "Взаимоотношении" между Клиентом и Дистрибьютором (aka Договор)
Полный URL-адрес запроса: https://alt-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": "c7a6a3e1-ed9b-4444-95e6-e8944cb493d4",
"vendorId": "sample string 2",
"name": "sample string 3",
"customer": {
"id": "dc57bf8f-c8d9-44ed-8e8a-93e5e4957f08",
"vendorId": "sample string 2",
"name": "sample string 3",
"taxNumber": "sample string 4",
"location": {
"country": {
"id": "f6ddc59f-628f-4691-bb53-57cb75a2ea6f",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "ee4fe197-39f0-458b-844d-bd2d57788380",
"name": "sample string 2"
},
"settlement": "sample string 1",
"addressLine": "sample string 2",
"geoCoordinate": {
"latitude": 1.1,
"longitude": 1.1
}
},
"tradeNetwork": {
"id": "821b943b-9345-496b-9c93-a30fc768f4da",
"vendorId": "sample string 2",
"name": "sample string 3",
"properties": [
{
"entityProperty": {
"id": "c029c251-9c46-4081-9b0c-9959dbe1bdf1",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "c029c251-9c46-4081-9b0c-9959dbe1bdf1",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"office": {
"id": "0026ed60-ccd8-454a-852f-656a319b14d1",
"vendorId": "sample string 2",
"name": "sample string 3",
"responsible": {
"id": "71d4d36f-5608-4264-ad28-4d9611918661",
"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-10-08T19:02:44.87932Z",
"lockoutEnabled": true,
"roles": [
"sample string 1",
"sample string 2"
]
},
"location": {
"country": {
"id": "f6ddc59f-628f-4691-bb53-57cb75a2ea6f",
"isoCode": "sample string 2",
"name": "sample string 3"
},
"province": {
"id": "ee4fe197-39f0-458b-844d-bd2d57788380",
"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": "c029c251-9c46-4081-9b0c-9959dbe1bdf1",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "c029c251-9c46-4081-9b0c-9959dbe1bdf1",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
]
},
"priceCategory": {
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
"priceTiers": [
{
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"currency": {
"id": "7e08080d-db40-44f8-aa3d-46b08196d7fe",
"isoCode": "sample string 2",
"isoNumber3": "sample string 3",
"name": "sample string 4",
"shortName": "sample string 5",
"symbol": "sample string 6"
},
"paymentTypes": [
{
"id": "acb4ea70-f429-4df0-88f8-83609c608f57",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "acb4ea70-f429-4df0-88f8-83609c608f57",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"paymentForms": [
1,
2
],
"deferment": 1,
"limit": 1.0,
"minOrder": 1.0,
"debts": [
{
"currency": {
"id": "7e08080d-db40-44f8-aa3d-46b08196d7fe",
"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": "7e08080d-db40-44f8-aa3d-46b08196d7fe",
"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": "7e08080d-db40-44f8-aa3d-46b08196d7fe",
"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": "7e08080d-db40-44f8-aa3d-46b08196d7fe",
"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": "c029c251-9c46-4081-9b0c-9959dbe1bdf1",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
},
{
"entityProperty": {
"id": "c029c251-9c46-4081-9b0c-9959dbe1bdf1",
"vendorId": "sample string 2",
"name": "sample string 3",
"entityDataType": "string",
"valueLookup": "contacts",
"required": true
},
"value": "sample string 1"
}
],
"discounts": [
{
"id": "e0a74e4f-e1b3-4705-8f99-619779d04a38",
"group": {
"id": "d4d591c3-4b17-42db-aa0e-b6c642978b07",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "9a389c9a-6469-481c-b2a4-5671b0797952",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
},
{
"id": "e0a74e4f-e1b3-4705-8f99-619779d04a38",
"group": {
"id": "d4d591c3-4b17-42db-aa0e-b6c642978b07",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"brand": {
"id": "9a389c9a-6469-481c-b2a4-5671b0797952",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"percent": 2.1
}
],
"active": true,
"dateFrom": "2026-10-08T19:02:44.87932Z",
"dateTill": "2026-10-08T19:02:44.87932Z",
"orderIndex": 1,
"isFixedPriceCategory": true,
"deliveryTypes": [
{
"id": "cbfc1caf-1773-4c83-9a22-7100b5438272",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
},
{
"id": "cbfc1caf-1773-4c83-9a22-7100b5438272",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
],
"brandPriceCategories": [
{
"brand": {
"id": "9a389c9a-6469-481c-b2a4-5671b0797952",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"brand": {
"id": "9a389c9a-6469-481c-b2a4-5671b0797952",
"vendorId": "sample string 2",
"name": "sample string 3"
},
"priceCategory": {
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
],
"groupPriceCategories": [
{
"group": {
"id": "d4d591c3-4b17-42db-aa0e-b6c642978b07",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
},
{
"group": {
"id": "d4d591c3-4b17-42db-aa0e-b6c642978b07",
"vendorId": "sample string 2",
"name": "sample string 3",
"hierarchy": {
"level": 1,
"path": "sample string 2"
}
},
"priceCategory": {
"id": "4560c6fe-dd88-4d77-880a-93ca55fa4fc8",
"vendorId": "sample string 2",
"name": "sample string 3",
"orderIndex": 1
}
}
]
}
Sample not available.
Sample not available.