GET api/account/settings
Метод для получения информации о "Настройках установленные Дистрибьютором"
Полный URL-адрес запроса: https://sfa-api.ddapp.biz/api/account/settings
Для этого метода требуется авторизация
Информация о запросе
URL параметры
Название | Описание | Тип данных | Дополнительная информация |
---|---|---|---|
fields |
Список дополнительных полей, которые необходимо вернуть |
string |
Нет |
Тело запроса
Нет параметров в теле запроса
Информация об ответе
SettingsModel
Название | Описание | Тип данных | Дополнительная информация |
---|---|---|---|
CheckInRadius | decimal number |
Нет |
|
StoreCheck | Collection of StoreCheckType |
Нет |
|
PaymentsEnabled | boolean |
Нет |
|
StoreCheckEnabled | boolean |
Нет |
|
OrderProperties | Collection of EntityPropertyModel |
Нет |
|
PaymentProperties | Collection of EntityPropertyModel |
Нет |
|
RefundProperties | Collection of EntityPropertyModel |
Нет |
|
OrderBlocks | Collection of OrderBlock |
Нет |
|
OrderWarnings | Collection of OrderBlock |
Нет |
|
ImageCache | boolean |
Нет |
|
InvoiceCancelingEnabled | boolean |
Нет |
|
OrderCancelingEnabled | boolean |
Нет |
|
OrderEditingEnabled | boolean |
Нет |
|
OnlineStocksEnabled | boolean |
Нет |
|
ReportServerUrl | string |
Нет |
|
ReportServerAuthKey | string |
Нет |
|
OrderTotals | Collection of EntityPropertyModel |
Нет |
|
FetchMethod | DataFetchMethod |
Нет |
|
SalesHistoryEnabled | boolean |
Нет |
|
InvoicePaymentsEnabled | boolean |
Нет |
|
RelationshipPaymentsEnabled | boolean |
Нет |
|
RequiredRefundPositionCommentEnabled | boolean |
Нет |
|
OrderExchangeEnabled | boolean |
Нет |
|
RefundExchangeEnabled | boolean |
Нет |
|
PaymentPhotoEnabled | boolean |
Нет |
|
RequiredPaymentPhotoEnabled | boolean |
Нет |
|
ExchangeRateDisplayEnabled | boolean |
Нет |
|
ExchangeRateDisplay | Collection of ExchangeRateDisplayModel |
Нет |
|
AltReportsEnabled | boolean |
Нет |
|
RecommendOrderEnabled | boolean |
Нет |
|
RecommendOrderStockMode | RecommendOrderStockMode |
Нет |
|
PaymentBlocks | Collection of PaymentBlock |
Нет |
|
StocksServerEnabled | boolean |
Нет |
|
StocksServerUrl | string |
Нет |
|
StocksServerAuthKey | string |
Нет |
|
VisitStartCheckInType | CheckInTypeModel |
Нет |
|
VisitFinishCheckInType | CheckInTypeModel |
Нет |
|
PaymentCurrencies | Collection of string |
Нет |
|
StoreCheckDeltaEnabled | boolean |
Нет |
|
TradeOutletCreateEnabled | boolean |
Нет |
|
CostPriceCategory | PriceCategoryModel |
Нет |
|
ManualPriceApprovingEnabled | boolean |
Нет |
Форматы ответа
{ "checkInRadius": 1.1, "storeCheck": [ "faces", "faces" ], "paymentsEnabled": true, "storeCheckEnabled": true, "orderProperties": [ { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true } ], "paymentProperties": [ { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true } ], "refundProperties": [ { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true } ], "orderBlocks": [ "gps", "gps" ], "orderWarnings": [ "gps", "gps" ], "imageCache": true, "invoiceCancelingEnabled": true, "orderCancelingEnabled": true, "orderEditingEnabled": true, "onlineStocksEnabled": true, "reportServerUrl": "sample string 8", "reportServerAuthKey": "sample string 9", "orderTotals": [ { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true }, { "id": "ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a", "vendorId": "sample string 2", "name": "sample string 3", "entityDataType": "string", "valueLookup": "contacts", "required": true } ], "fetchMethod": "byRelationships", "salesHistoryEnabled": true, "invoicePaymentsEnabled": true, "relationshipPaymentsEnabled": true, "requiredRefundPositionCommentEnabled": true, "orderExchangeEnabled": true, "refundExchangeEnabled": true, "paymentPhotoEnabled": true, "requiredPaymentPhotoEnabled": true, "exchangeRateDisplayEnabled": true, "exchangeRateDisplay": [ { "currencyFromId": "sample string 1", "currencyToId": "sample string 2" }, { "currencyFromId": "sample string 1", "currencyToId": "sample string 2" } ], "altReportsEnabled": true, "recommendOrderEnabled": true, "recommendOrderStockMode": 0, "paymentBlocks": [ "gps", "gps" ], "stocksServerEnabled": true, "stocksServerUrl": "sample string 22", "stocksServerAuthKey": "sample string 23", "visitStartCheckInType": { "id": "26190e18-b1bc-4fc5-a02c-231c21761ad2", "vendorId": "sample string 2", "name": "sample string 3", "destination": "TradeOutlet" }, "visitFinishCheckInType": { "id": "26190e18-b1bc-4fc5-a02c-231c21761ad2", "vendorId": "sample string 2", "name": "sample string 3", "destination": "TradeOutlet" }, "paymentCurrencies": [ "sample string 1", "sample string 2" ], "storeCheckDeltaEnabled": true, "tradeOutletCreateEnabled": true, "costPriceCategory": { "id": "154ada4e-2e88-4fe8-85f9-f28dfe050a77", "vendorId": "sample string 2", "name": "sample string 3", "orderIndex": 1 }, "manualPriceApprovingEnabled": true }
<SettingsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Accounts"> <AltReportsEnabled>true</AltReportsEnabled> <CheckInRadius>1.1</CheckInRadius> <CostPriceCategory xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.PriceCategories"> <d2p1:Id>154ada4e-2e88-4fe8-85f9-f28dfe050a77</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:OrderIndex>1</d2p1:OrderIndex> <d2p1:VendorId>sample string 2</d2p1:VendorId> </CostPriceCategory> <ExchangeRateDisplay xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Miscellaneous.ExchangeRates"> <d2p1:ExchangeRateDisplayModel> <d2p1:CurrencyFromId>sample string 1</d2p1:CurrencyFromId> <d2p1:CurrencyToId>sample string 2</d2p1:CurrencyToId> </d2p1:ExchangeRateDisplayModel> <d2p1:ExchangeRateDisplayModel> <d2p1:CurrencyFromId>sample string 1</d2p1:CurrencyFromId> <d2p1:CurrencyToId>sample string 2</d2p1:CurrencyToId> </d2p1:ExchangeRateDisplayModel> </ExchangeRateDisplay> <ExchangeRateDisplayEnabled>true</ExchangeRateDisplayEnabled> <FetchMethod>ByRelationships</FetchMethod> <ImageCache>true</ImageCache> <InvoiceCancelingEnabled>true</InvoiceCancelingEnabled> <InvoicePaymentsEnabled>true</InvoicePaymentsEnabled> <ManualPriceApprovingEnabled>true</ManualPriceApprovingEnabled> <OnlineStocksEnabled>true</OnlineStocksEnabled> <OrderBlocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Miscellaneous"> <d2p1:OrderBlock>Gps</d2p1:OrderBlock> <d2p1:OrderBlock>Gps</d2p1:OrderBlock> </OrderBlocks> <OrderCancelingEnabled>true</OrderCancelingEnabled> <OrderEditingEnabled>true</OrderEditingEnabled> <OrderExchangeEnabled>true</OrderExchangeEnabled> <OrderProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.EntityProperties"> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> </OrderProperties> <OrderTotals xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.EntityProperties"> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> </OrderTotals> <OrderWarnings xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Miscellaneous"> <d2p1:OrderBlock>Gps</d2p1:OrderBlock> <d2p1:OrderBlock>Gps</d2p1:OrderBlock> </OrderWarnings> <PaymentBlocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Miscellaneous"> <d2p1:PaymentBlock>Gps</d2p1:PaymentBlock> <d2p1:PaymentBlock>Gps</d2p1:PaymentBlock> </PaymentBlocks> <PaymentCurrencies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </PaymentCurrencies> <PaymentPhotoEnabled>true</PaymentPhotoEnabled> <PaymentProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.EntityProperties"> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> </PaymentProperties> <PaymentsEnabled>true</PaymentsEnabled> <RecommendOrderEnabled>true</RecommendOrderEnabled> <RecommendOrderStockMode>Soft</RecommendOrderStockMode> <RefundExchangeEnabled>true</RefundExchangeEnabled> <RefundProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.EntityProperties"> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> <d2p1:EntityPropertyModel> <d2p1:EntityDataType>String</d2p1:EntityDataType> <d2p1:Id>ffec7ed2-827c-4c3b-9f00-83a0c00d8b4a</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Required>true</d2p1:Required> <d2p1:ValueLookup>Contacts</d2p1:ValueLookup> <d2p1:VendorId>sample string 2</d2p1:VendorId> </d2p1:EntityPropertyModel> </RefundProperties> <RelationshipPaymentsEnabled>true</RelationshipPaymentsEnabled> <ReportServerAuthKey>sample string 9</ReportServerAuthKey> <ReportServerUrl>sample string 8</ReportServerUrl> <RequiredPaymentPhotoEnabled>true</RequiredPaymentPhotoEnabled> <RequiredRefundPositionCommentEnabled>true</RequiredRefundPositionCommentEnabled> <SalesHistoryEnabled>true</SalesHistoryEnabled> <StocksServerAuthKey>sample string 23</StocksServerAuthKey> <StocksServerEnabled>true</StocksServerEnabled> <StocksServerUrl>sample string 22</StocksServerUrl> <StoreCheck xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Miscellaneous"> <d2p1:StoreCheckType>Faces</d2p1:StoreCheckType> <d2p1:StoreCheckType>Faces</d2p1:StoreCheckType> </StoreCheck> <StoreCheckDeltaEnabled>true</StoreCheckDeltaEnabled> <StoreCheckEnabled>true</StoreCheckEnabled> <TradeOutletCreateEnabled>true</TradeOutletCreateEnabled> <VisitFinishCheckInType xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.CheckIns"> <d2p1:Destination>TradeOutlet</d2p1:Destination> <d2p1:Id>26190e18-b1bc-4fc5-a02c-231c21761ad2</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:VendorId>sample string 2</d2p1:VendorId> </VisitFinishCheckInType> <VisitStartCheckInType xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.CheckIns"> <d2p1:Destination>TradeOutlet</d2p1:Destination> <d2p1:Id>26190e18-b1bc-4fc5-a02c-231c21761ad2</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:VendorId>sample string 2</d2p1:VendorId> </VisitStartCheckInType> </SettingsModel>