PUT api/customers/{id}

Метод для обновления "Клиента"

Полный URL-адрес запроса: https://sfa-api.ddapp.biz/api/customers/{id}

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

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

URL параметры

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

Уникальный идентификатор "Клиента"

string

Required

Тело запроса


"Клиент"

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

string

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

Соответствует регулярному выражению: ^[a-zA-Zа-яА-Я0-9_-]+$

Name

string

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

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

TaxNumber

string

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

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

Location

CreateLocationModel

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

TradeNetworkId

string

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

OfficeId

string

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

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

Properties

Collection of CreateEntityPropertyValueModel

Нет

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

{
  "vendorId": "sample string 1",
  "name": "sample string 2",
  "taxNumber": "sample string 3",
  "location": {
    "countryId": "sample string 1",
    "provinceId": "996f84f8-efa0-4837-af83-39aeb5e3ed5e",
    "addressLine": "sample string 3",
    "geoCoordinate": {
      "latitude": 1.1,
      "longitude": 1.1
    },
    "settlement": "sample string 4"
  },
  "tradeNetworkId": "sample string 4",
  "officeId": "sample string 5",
  "properties": [
    {
      "propertyId": "sample string 1",
      "value": "sample string 2"
    },
    {
      "propertyId": "sample string 1",
      "value": "sample string 2"
    }
  ]
}
<CreateCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Customers">
  <Location xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.Geo">
    <d2p1:AddressLine>sample string 3</d2p1:AddressLine>
    <d2p1:CountryId>sample string 1</d2p1:CountryId>
    <d2p1:GeoCoordinate>
      <d2p1:Latitude>1.1</d2p1:Latitude>
      <d2p1:Longitude>1.1</d2p1:Longitude>
    </d2p1:GeoCoordinate>
    <d2p1:ProvinceId>996f84f8-efa0-4837-af83-39aeb5e3ed5e</d2p1:ProvinceId>
    <d2p1:Settlement>sample string 4</d2p1:Settlement>
  </Location>
  <Name>sample string 2</Name>
  <OfficeId>sample string 5</OfficeId>
  <Properties xmlns:d2p1="http://schemas.datacontract.org/2004/07/DDApp.Shared.Api.Models.V1.EntityProperties.Values">
    <d2p1:CreateEntityPropertyValueModel>
      <d2p1:PropertyId>sample string 1</d2p1:PropertyId>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:CreateEntityPropertyValueModel>
    <d2p1:CreateEntityPropertyValueModel>
      <d2p1:PropertyId>sample string 1</d2p1:PropertyId>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:CreateEntityPropertyValueModel>
  </Properties>
  <TaxNumber>sample string 3</TaxNumber>
  <TradeNetworkId>sample string 4</TradeNetworkId>
  <VendorId>sample string 1</VendorId>
</CreateCustomerModel>

Sample not available.

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

Нет