POST api/debtor
Creates debtor.
Request Information
URI Parameters
None.
Body Parameters
Debtor POST 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
{ "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
<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
Response Information
Resource Description
Debtor model.
PublicAPI.Models.DebtorName | Description | Type | Additional information |
---|---|---|---|
Id |
Unique debtor id. |
integer |
None. |
GroupId |
Group id. |
integer |
None. |
Created |
Creation timestamp. |
date |
None. |
Modified |
Modification timestamp. |
date |
None. |
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. |
Response Formats
application/json, text/json
{ "Id": 1, "GroupId": 2, "Created": "2025-05-04T05:16:37.7082233+02:00", "Modified": "2025-05-04T05:16:37.7082233+02:00", "CustomerNumber": 5, "Name": "sample string 6", "Attention": "sample string 7", "Address": "sample string 8", "Address2": "sample string 9", "ZipCode": 10, "City": "sample string 11", "CreditMax": 12, "Balance": 13.0, "DiscountPercentage": 14.0 }
application/xml, text/xml
<Debtor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Address>sample string 8</Address> <Address2>sample string 9</Address2> <Attention>sample string 7</Attention> <Balance>13</Balance> <City>sample string 11</City> <CreditMax>12</CreditMax> <CustomerNumber>5</CustomerNumber> <DiscountPercentage>14</DiscountPercentage> <Name>sample string 6</Name> <ZipCode>10</ZipCode> <Created>2025-05-04T05:16:37.7082233+02:00</Created> <GroupId>2</GroupId> <Id>1</Id> <Modified>2025-05-04T05:16:37.7082233+02:00</Modified> </Debtor>