PUT api/{lang}/Client/Put/{id}

Actualiza el cliente de id 'clientId' con los datos recibidos en el modelo.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Identificador del cliente a actualizar

string

Required

lang

string

None.

Body Parameters

Datos del cliente a actualizar

ClientViewModel
NameDescriptionTypeAdditional information
Number

integer

None.

FinalConsumer

boolean

None.

ClientOfAGroup

boolean

None.

CurrentAccount

boolean

None.

CurrencyId

string

None.

CreditLimit

integer

Range: inclusive between 0 and 2147483647

PalletsPicking

integer

Range: inclusive between 0 and 2147483647

PriceListId

string

None.

SellerId

string

None.

CollectorId

string

None.

PaymentMethodId

string

None.

IsWarehouseClient

boolean

None.

DiscountPercentage

decimal number

Required

Range: inclusive between 0 and 100

ReturnPercentage

decimal number

None.

UserId

string

None.

ProductCodes

Collection of ClientProductCodeViewModel

None.

SalesChannel

SalesChannel

None.

IsCreditApprovalRequired

boolean

None.

ClientType

ClientType

None.

MainAddress

AddressViewModel

None.

DeliveryAddress

AddressViewModel

None.

ChargeCut

boolean

None.

IsShippingCostRequired

boolean

None.

Comments

Collection of ClientCommentViewModel

None.

Id

string

None.

Active

boolean

None.

CellphoneNumber

string

None.

ContactIds

Collection of string

None.

SecondaryAddresses

Collection of AddressViewModel

None.

IsWMSIntegrated

boolean

None.

WarehouseClientId

string

None.

BusinessName

string

Required

Matching regular expression pattern: ^[a-zA-ZáéíóúñÁÉÍÓÚÑ0-9 .]+$

FantasyName

string

None.

PhoneNumber

string

None.

DocumentNumber

string

Matching regular expression pattern: ^\d*$

DocumentTypeId

string

None.

MainAddress

BaseAddressViewModel

None.

DeliveryAddress

BaseAddressViewModel

None.

Email

string

None.

IsDownPaymentRequired

boolean

None.

DownPaymentPercentage

decimal number

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

De ser exitosa la actualización retorna 200. De lo contrario retorna 400

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.