PUT api/debtor
Updates debtor.
Request Information
URI Parameters
None.
Body Parameters
Debtor PUT model.
PublicAPI.Models.DebtorDtoName | Description | Type | Additional 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:
Response Information
Resource Description
True/false.
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>