POST api/Customers/GetAll
Method for retreiving basic customer information. It is paginated with page size of 100 records.
Request Information
URI Parameters
None.
Body Parameters
CustomerRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Customer name |
string |
Min length: 3 |
| Address |
Customer address |
string |
Min length: 3 |
| OIB |
Customer OIB |
string |
Min length: 3 |
| PostalCode |
Customer postal code |
string |
Min length: 3 |
| Town |
Customer town |
string |
Min length: 3 |
|
Customer email |
string |
Min length: 3 |
|
| Modified |
Modified from datetime |
string |
Format date to yyyy-MM-dd HH:mm:ss |
| Page |
Page number. Page size is 100 records. |
integer |
Range: inclusive between 1 and 2147483647 |
Request Formats
application/json, text/json
{
"Name": "sample string 1",
"Address": "sample string 2",
"OIB": "sample string 3",
"PostalCode": "sample string 4",
"Town": "sample string 5",
"Email": "sample string 6",
"Modified": "sample string 7",
"Page": 8
}
application/xml, text/xml
<CustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.namjestaj_intermod.hr.Models"> <Page>8</Page> <Address>sample string 2</Address> <Email>sample string 6</Email> <Modified>sample string 7</Modified> <Name>sample string 1</Name> <OIB>sample string 3</OIB> <PostalCode>sample string 4</PostalCode> <Town>sample string 5</Town> </CustomerRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Collection of CustomerResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Customer ID |
integer |
Required |
| Code |
Customer code |
string |
Required |
| Name |
Customer name |
string |
Required |
| Legal |
Customer legal type (O - sole proprietorship, P - company/firm, G - citizens) |
string |
Required |
| Address |
Customer address |
string |
Required |
| PostalCode |
Customer postal code |
string |
Required |
| Town |
Customer town |
string |
Required |
| Phone |
Customer phone |
string |
Required |
| Mobile |
Customer mobile |
string |
Required |
|
Customer email |
string |
Required |
|
| OIB |
Customer OIB |
string |
Required |
| Modified |
Modified datetime |
string |
Required |
Response Formats
application/json, text/json
[
{
"ID": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Legal": "sample string 4",
"Address": "sample string 5",
"PostalCode": "sample string 6",
"Town": "sample string 7",
"Phone": "sample string 8",
"Mobile": "sample string 9",
"Email": "sample string 10",
"OIB": "sample string 11",
"Modified": "sample string 12"
},
{
"ID": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Legal": "sample string 4",
"Address": "sample string 5",
"PostalCode": "sample string 6",
"Town": "sample string 7",
"Phone": "sample string 8",
"Mobile": "sample string 9",
"Email": "sample string 10",
"OIB": "sample string 11",
"Modified": "sample string 12"
}
]
application/xml, text/xml
<ArrayOfCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.namjestaj_intermod.hr.Models">
<CustomerResponse>
<Address>sample string 5</Address>
<Code>sample string 2</Code>
<Email>sample string 10</Email>
<ID>1</ID>
<Legal>sample string 4</Legal>
<Mobile>sample string 9</Mobile>
<Modified>sample string 12</Modified>
<Name>sample string 3</Name>
<OIB>sample string 11</OIB>
<Phone>sample string 8</Phone>
<PostalCode>sample string 6</PostalCode>
<Town>sample string 7</Town>
</CustomerResponse>
<CustomerResponse>
<Address>sample string 5</Address>
<Code>sample string 2</Code>
<Email>sample string 10</Email>
<ID>1</ID>
<Legal>sample string 4</Legal>
<Mobile>sample string 9</Mobile>
<Modified>sample string 12</Modified>
<Name>sample string 3</Name>
<OIB>sample string 11</OIB>
<Phone>sample string 8</Phone>
<PostalCode>sample string 6</PostalCode>
<Town>sample string 7</Town>
</CustomerResponse>
</ArrayOfCustomerResponse>
