PUT api/debtor

Updates debtor.

Request Information

URI Parameters

None.

Body Parameters

Debtor PUT model.

PublicAPI.Models.DebtorDto
NameDescriptionTypeAdditional information
CustomerNumber

Debtor customer number.

integer

Required

Range: inclusive between 1 and 9999999999

Name

Name.

string

Required

String length: inclusive between 0 and 75

Attention

Mail attention.

string

String length: inclusive between 0 and 50

Address

Address.

string

Required

String length: inclusive between 0 and 50

Address2

Secondary address.

string

String length: inclusive between 0 and 50

ZipCode

Zip code.

integer

Required

Range: inclusive between 1 and 9999999999

City

City.

string

Required

String length: inclusive between 0 and 75

CreditMax

Credit maximum.

integer

Range: inclusive between 1 and 9999999999

Balance

Balance.

decimal number

None.

DiscountPercentage

Discount percentage.

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerNumber": 1,
  "Name": "sample string 2",
  "Attention": "sample string 3",
  "Address": "sample string 4",
  "Address2": "sample string 5",
  "ZipCode": 6,
  "City": "sample string 7",
  "CreditMax": 8,
  "Balance": 9.0,
  "DiscountPercentage": 10.0
}

application/xml, text/xml

Sample:
<DebtorDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <Address>sample string 4</Address>
  <Address2>sample string 5</Address2>
  <Attention>sample string 3</Attention>
  <Balance>9</Balance>
  <City>sample string 7</City>
  <CreditMax>8</CreditMax>
  <CustomerNumber>1</CustomerNumber>
  <DiscountPercentage>10</DiscountPercentage>
  <Name>sample string 2</Name>
  <ZipCode>6</ZipCode>
</DebtorDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DebtorDto'.

Response Information

Resource Description

True/false.

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>