GET api/Customer/GetByCustomerCode?customerCode={customerCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CustomerDbModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerCatCode | integer |
None. |
|
| CustomerCatDesc | string |
None. |
|
| CustomerCode | string |
None. |
|
| CustomerDesc | string |
None. |
|
| PriceListId | integer |
None. |
|
| PriceListDesc | string |
None. |
|
| Freight01 | string |
None. |
|
| Ship | string |
None. |
|
| PostAddress01 | string |
None. |
|
| PostAddress02 | string |
None. |
|
| PostAddress03 | string |
None. |
|
| PostAddress04 | string |
None. |
|
| PostAddress05 | string |
None. |
|
| Blocked | boolean |
None. |
|
| GUID | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"CustomerCatCode": 1,
"CustomerCatDesc": "sample string 2",
"CustomerCode": "sample string 3",
"CustomerDesc": "sample string 4",
"PriceListId": 5,
"PriceListDesc": "sample string 6",
"Freight01": "sample string 7",
"Ship": "sample string 8",
"PostAddress01": "sample string 9",
"PostAddress02": "sample string 10",
"PostAddress03": "sample string 11",
"PostAddress04": "sample string 12",
"PostAddress05": "sample string 13",
"Blocked": true,
"GUID": "sample string 15"
}
application/xml, text/xml
Sample:
<CustomerDbModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PASTEL.Api.Library.Models.PSql"> <Blocked>true</Blocked> <CustomerCatCode>1</CustomerCatCode> <CustomerCatDesc>sample string 2</CustomerCatDesc> <CustomerCode>sample string 3</CustomerCode> <CustomerDesc>sample string 4</CustomerDesc> <Freight01>sample string 7</Freight01> <GUID>sample string 15</GUID> <PostAddress01>sample string 9</PostAddress01> <PostAddress02>sample string 10</PostAddress02> <PostAddress03>sample string 11</PostAddress03> <PostAddress04>sample string 12</PostAddress04> <PostAddress05>sample string 13</PostAddress05> <PriceListDesc>sample string 6</PriceListDesc> <PriceListId>5</PriceListId> <Ship>sample string 8</Ship> </CustomerDbModel>