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": "c5e04386-3213-4d01-a61d-4d6a9a482a57", "vendorId": "sample string 2", "name": "sample string 3", "customer": { "id": "2c38bd11-b0c8-46fb-8eb6-ff6ebc87b3e1", "vendorId": "sample string 2", "name": "sample string 3", "taxNumber": "sample string 4", "location": { "country": { "id": "43231d43-f599-47ff-b89f-dcb2d6a2cc89", "isoCode": "sample string 2", "name": "sample string 3" }, "province": { "id": "88e05c5a-f4bc-4ef2-ba1e-34f7dc44bffd", "name": "sample string 2" }, "settlement": "sample string 1", "addressLine": "sample string 2", "geoCoordinate": { "latitude": 1.1, "longitude": 1.1 } }, "tradeNetwork": { "id": "0e9b1013-b0b1-4488-928d-5df2914d801e", "vendorId": "sample string 2", "name": "sample string 3", "properties": [ { "entityProperty": { "id": "93d59f00-baf2-418a-9148-0e55cd1fe508", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, "value": "sample string 1" }, { "entityProperty": { "id": "93d59f00-baf2-418a-9148-0e55cd1fe508", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, "value": "sample string 1" } ] }, "office": { "id": "d9899a52-4766-4e68-9c82-fa1491f62d35", "vendorId": "sample string 2", "name": "sample string 3", "responsible": { "id": "e804f1aa-365e-4ba7-9a6d-84bacf41bf09", "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-07-02T19:42:55.5453788Z", "lockoutEnabled": true, "roles": [ "sample string 1", "sample string 2" ] }, "location": { "country": { "id": "43231d43-f599-47ff-b89f-dcb2d6a2cc89", "isoCode": "sample string 2", "name": "sample string 3" }, "province": { "id": "88e05c5a-f4bc-4ef2-ba1e-34f7dc44bffd", "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": "93d59f00-baf2-418a-9148-0e55cd1fe508", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, "value": "sample string 1" }, { "entityProperty": { "id": "93d59f00-baf2-418a-9148-0e55cd1fe508", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, "value": "sample string 1" } ] }, "priceCategory": { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 }, "priceTiers": [ { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 }, { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } ], "currency": { "id": "a0e47f9b-fb7f-43fd-a35e-ea2f4648cdf1", "isoCode": "sample string 2", "isoNumber3": "sample string 3", "name": "sample string 4", "shortName": "sample string 5", "symbol": "sample string 6" }, "paymentTypes": [ { "id": "42876bc2-543d-4b7a-936e-202fc23fbbac", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 }, { "id": "42876bc2-543d-4b7a-936e-202fc23fbbac", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } ], "paymentForms": [ 1, 2 ], "deferment": 1, "limit": 1.0, "minOrder": 1.0, "debts": [ { "currency": { "id": "a0e47f9b-fb7f-43fd-a35e-ea2f4648cdf1", "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": "a0e47f9b-fb7f-43fd-a35e-ea2f4648cdf1", "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": "a0e47f9b-fb7f-43fd-a35e-ea2f4648cdf1", "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": "a0e47f9b-fb7f-43fd-a35e-ea2f4648cdf1", "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": "93d59f00-baf2-418a-9148-0e55cd1fe508", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, "value": "sample string 1" }, { "entityProperty": { "id": "93d59f00-baf2-418a-9148-0e55cd1fe508", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, "value": "sample string 1" } ], "discounts": [ { "id": "74be4457-2bad-4708-a194-68d386b37cbc", "group": { "id": "f080a818-3d76-45da-8cda-75da50ff8f1b", "vendorId": "sample string 2", "name": "sample string 3", "hierarchy": { "level": 1, "path": "sample string 2" } }, "brand": { "id": "5a83fbe6-7357-40dd-8f06-68b044063f02", "vendorId": "sample string 2", "name": "sample string 3" }, "percent": 2.1 }, { "id": "74be4457-2bad-4708-a194-68d386b37cbc", "group": { "id": "f080a818-3d76-45da-8cda-75da50ff8f1b", "vendorId": "sample string 2", "name": "sample string 3", "hierarchy": { "level": 1, "path": "sample string 2" } }, "brand": { "id": "5a83fbe6-7357-40dd-8f06-68b044063f02", "vendorId": "sample string 2", "name": "sample string 3" }, "percent": 2.1 } ], "active": true, "dateFrom": "2025-07-02T19:42:55.5453788Z", "dateTill": "2025-07-02T19:42:55.5453788Z", "orderIndex": 1, "isFixedPriceCategory": true, "deliveryTypes": [ { "id": "e0a55ee2-ec2c-431a-aba3-8e1f58b45abb", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 }, { "id": "e0a55ee2-ec2c-431a-aba3-8e1f58b45abb", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } ], "brandPriceCategories": [ { "brand": { "id": "5a83fbe6-7357-40dd-8f06-68b044063f02", "vendorId": "sample string 2", "name": "sample string 3" }, "priceCategory": { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } }, { "brand": { "id": "5a83fbe6-7357-40dd-8f06-68b044063f02", "vendorId": "sample string 2", "name": "sample string 3" }, "priceCategory": { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } } ], "groupPriceCategories": [ { "group": { "id": "f080a818-3d76-45da-8cda-75da50ff8f1b", "vendorId": "sample string 2", "name": "sample string 3", "hierarchy": { "level": 1, "path": "sample string 2" } }, "priceCategory": { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } }, { "group": { "id": "f080a818-3d76-45da-8cda-75da50ff8f1b", "vendorId": "sample string 2", "name": "sample string 3", "hierarchy": { "level": 1, "path": "sample string 2" } }, "priceCategory": { "id": "3f661767-b7cc-4cd9-be7a-329cf92f7c54", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 } } ] }
Sample not available.
Sample not available.