PUT api/account/settings

Метод для обновления "Настроек"

Полный URL-адрес запроса: https://sfa-api.ddapp.biz/api/account/settings

  Для этого метода требуется авторизация

Информация о запросе

URL параметры

Нет

Тело запроса


"Настройки"

CreateSettingsModel
НазваниеОписаниеТип данныхДополнительная информация
CheckInRadius

decimal number

Нет

StoreCheck

Collection of StoreCheckType

Нет

OrderPropertyIds

Collection of string

Нет

PaymentPropertyIds

Collection of string

Нет

RefundPropertyIds

Collection of string

Нет

OrderBlocks

Collection of OrderBlock

Нет

OrderWarnings

Collection of OrderBlock

Нет

PaymentsEnabled

boolean

Обязательное поле

StoreCheckEnabled

boolean

Обязательное поле

ImageCache

boolean

Обязательное поле

InvoiceCancelingEnabled

boolean

Обязательное поле

OrderCancelingEnabled

boolean

Обязательное поле

OrderEditingEnabled

boolean

Обязательное поле

OnlineStocksEnabled

boolean

Обязательное поле

ReportServerUrl

string

Длина: от 0 до 200

ReportServerAuthKey

string

Длина: от 0 до 100

OrderTotalIds

Collection of string

Нет

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

Нет

VisitStartCheckInTypeId

string

Нет

VisitFinishCheckInTypeId

string

Нет

PaymentCurrencies

Collection of string

Нет

StoreCheckDeltaEnabled

boolean

Нет

TradeOutletCreateEnabled

boolean

Нет

CostPriceCategoryId

string

Нет

ManualPriceApprovingEnabled

boolean

Нет

Форматы запросов

{
  "checkInRadius": 1.1,
  "storeCheck": [
    "faces",
    "faces"
  ],
  "orderPropertyIds": [
    "sample string 1",
    "sample string 2"
  ],
  "paymentPropertyIds": [
    "sample string 1",
    "sample string 2"
  ],
  "refundPropertyIds": [
    "sample string 1",
    "sample string 2"
  ],
  "orderBlocks": [
    "gps",
    "gps"
  ],
  "orderWarnings": [
    "gps",
    "gps"
  ],
  "paymentsEnabled": true,
  "storeCheckEnabled": true,
  "imageCache": true,
  "invoiceCancelingEnabled": true,
  "orderCancelingEnabled": true,
  "orderEditingEnabled": true,
  "onlineStocksEnabled": true,
  "reportServerUrl": "sample string 8",
  "reportServerAuthKey": "sample string 9",
  "orderTotalIds": [
    "sample string 1",
    "sample string 2"
  ],
  "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 21",
  "stocksServerAuthKey": "sample string 22",
  "visitStartCheckInTypeId": "sample string 23",
  "visitFinishCheckInTypeId": "sample string 24",
  "paymentCurrencies": [
    "sample string 1",
    "sample string 2"
  ],
  "storeCheckDeltaEnabled": true,
  "tradeOutletCreateEnabled": true,
  "costPriceCategoryId": "sample string 25",
  "manualPriceApprovingEnabled": true
}
<CreateSettingsModel 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>
  <CostPriceCategoryId>sample string 25</CostPriceCategoryId>
  <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>
  <OrderPropertyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </OrderPropertyIds>
  <OrderTotalIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </OrderTotalIds>
  <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>
  <PaymentPropertyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </PaymentPropertyIds>
  <PaymentsEnabled>true</PaymentsEnabled>
  <RecommendOrderEnabled>true</RecommendOrderEnabled>
  <RecommendOrderStockMode>Soft</RecommendOrderStockMode>
  <RefundExchangeEnabled>true</RefundExchangeEnabled>
  <RefundPropertyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </RefundPropertyIds>
  <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 22</StocksServerAuthKey>
  <StocksServerEnabled>true</StocksServerEnabled>
  <StocksServerUrl>sample string 21</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>
  <VisitFinishCheckInTypeId>sample string 24</VisitFinishCheckInTypeId>
  <VisitStartCheckInTypeId>sample string 23</VisitStartCheckInTypeId>
</CreateSettingsModel>

Sample not available.

Информация об ответе

Нет