GET api/customer/customercode?code={code}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CustomerName | Description | Type | Additional information |
---|---|---|---|
CustomerCode | string |
None. |
|
CustomerName | string |
None. |
|
Address1 | string |
None. |
|
Address2 | string |
None. |
|
Address3 | string |
None. |
|
Address4 | string |
None. |
|
Address5 | string |
None. |
|
PostCode | string |
None. |
|
WebAddress | string |
None. |
|
EmailAddress | string |
None. |
|
PhoneNo | string |
None. |
|
PhoneNo2 | string |
None. |
|
Fax | string |
None. |
|
Inactive | boolean |
None. |
|
CustomerBranch | Branch |
None. |
|
Group | CustomerGroup |
None. |
|
Area | SalesArea |
None. |
|
SalesPerson | SalesPerson |
None. |
|
PrimaryContact | CustomerContact |
None. |
|
Contacts | Collection of CustomerContact |
None. |
|
PrimaryDeliveryAddress | DeliveryAddress |
None. |
|
DeliveryAddresses | Collection of DeliveryAddress |
None. |
Response Formats
application/json, text/json
Sample:
{ "CustomerCode": "sample string 1", "CustomerName": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "Address3": "sample string 5", "Address4": "sample string 6", "Address5": "sample string 7", "PostCode": "sample string 8", "WebAddress": "sample string 9", "EmailAddress": "sample string 10", "PhoneNo": "sample string 11", "PhoneNo2": "sample string 12", "Fax": "sample string 13", "Inactive": true, "CustomerBranch": { "BranchCode": "sample string 1", "BranchName": "sample string 2", "Inactive": true }, "Group": { "GroupCode": "sample string 1", "GroupName": "sample string 2", "Inactive": true }, "Area": { "Code": "sample string 1", "Name": "sample string 2", "Comment": "sample string 3", "Inactive": true }, "SalesPerson": { "Code": "sample string 1", "Name": "sample string 2", "Role": "sample string 3", "Phone": "sample string 4", "Mobile": "sample string 5", "Email": "sample string 6", "Comment": "sample string 7", "Inactive": true }, "PrimaryContact": { "ContactId": 1, "FullName": "sample string 2", "Title": "sample string 3", "FirstName": "sample string 4", "MiddleName": "sample string 5", "LastName": "sample string 6", "PhoneNo": "sample string 7", "MobileNo": "sample string 8", "Email": "sample string 9", "Comment": "sample string 10", "Role": "sample string 11", "Inactive": true }, "Contacts": [ { "ContactId": 1, "FullName": "sample string 2", "Title": "sample string 3", "FirstName": "sample string 4", "MiddleName": "sample string 5", "LastName": "sample string 6", "PhoneNo": "sample string 7", "MobileNo": "sample string 8", "Email": "sample string 9", "Comment": "sample string 10", "Role": "sample string 11", "Inactive": true }, { "ContactId": 1, "FullName": "sample string 2", "Title": "sample string 3", "FirstName": "sample string 4", "MiddleName": "sample string 5", "LastName": "sample string 6", "PhoneNo": "sample string 7", "MobileNo": "sample string 8", "Email": "sample string 9", "Comment": "sample string 10", "Role": "sample string 11", "Inactive": true } ], "PrimaryDeliveryAddress": { "DeliveryCode": "sample string 1", "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Address4": "sample string 5", "Address5": "sample string 6", "PostCode": "sample string 7" }, "DeliveryAddresses": [ { "DeliveryCode": "sample string 1", "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Address4": "sample string 5", "Address5": "sample string 6", "PostCode": "sample string 7" }, { "DeliveryCode": "sample string 1", "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Address4": "sample string 5", "Address5": "sample string 6", "PostCode": "sample string 7" } ] }
application/xml, text/xml
Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccredoWeb.Model.AR"> <Address1>sample string 3</Address1> <Address2>sample string 4</Address2> <Address3>sample string 5</Address3> <Address4>sample string 6</Address4> <Address5>sample string 7</Address5> <Area> <Code>sample string 1</Code> <Comment>sample string 3</Comment> <Inactive>true</Inactive> <Name>sample string 2</Name> </Area> <Contacts> <CustomerContact> <Comment>sample string 10</Comment> <ContactId>1</ContactId> <Email>sample string 9</Email> <FirstName>sample string 4</FirstName> <FullName>sample string 2</FullName> <Inactive>true</Inactive> <LastName>sample string 6</LastName> <MiddleName>sample string 5</MiddleName> <MobileNo>sample string 8</MobileNo> <PhoneNo>sample string 7</PhoneNo> <Role>sample string 11</Role> <Title>sample string 3</Title> </CustomerContact> <CustomerContact> <Comment>sample string 10</Comment> <ContactId>1</ContactId> <Email>sample string 9</Email> <FirstName>sample string 4</FirstName> <FullName>sample string 2</FullName> <Inactive>true</Inactive> <LastName>sample string 6</LastName> <MiddleName>sample string 5</MiddleName> <MobileNo>sample string 8</MobileNo> <PhoneNo>sample string 7</PhoneNo> <Role>sample string 11</Role> <Title>sample string 3</Title> </CustomerContact> </Contacts> <CustomerBranch xmlns:d2p1="http://schemas.datacontract.org/2004/07/AccredoWeb.Model.CO"> <d2p1:BranchCode>sample string 1</d2p1:BranchCode> <d2p1:BranchName>sample string 2</d2p1:BranchName> <d2p1:Inactive>true</d2p1:Inactive> </CustomerBranch> <CustomerCode>sample string 1</CustomerCode> <CustomerName>sample string 2</CustomerName> <DeliveryAddresses> <DeliveryAddress> <Address1>sample string 2</Address1> <Address2>sample string 3</Address2> <Address3>sample string 4</Address3> <Address4>sample string 5</Address4> <Address5>sample string 6</Address5> <DeliveryCode>sample string 1</DeliveryCode> <PostCode>sample string 7</PostCode> </DeliveryAddress> <DeliveryAddress> <Address1>sample string 2</Address1> <Address2>sample string 3</Address2> <Address3>sample string 4</Address3> <Address4>sample string 5</Address4> <Address5>sample string 6</Address5> <DeliveryCode>sample string 1</DeliveryCode> <PostCode>sample string 7</PostCode> </DeliveryAddress> </DeliveryAddresses> <EmailAddress>sample string 10</EmailAddress> <Fax>sample string 13</Fax> <Group> <GroupCode>sample string 1</GroupCode> <GroupName>sample string 2</GroupName> <Inactive>true</Inactive> </Group> <Inactive>true</Inactive> <PhoneNo>sample string 11</PhoneNo> <PhoneNo2>sample string 12</PhoneNo2> <PostCode>sample string 8</PostCode> <PrimaryContact> <Comment>sample string 10</Comment> <ContactId>1</ContactId> <Email>sample string 9</Email> <FirstName>sample string 4</FirstName> <FullName>sample string 2</FullName> <Inactive>true</Inactive> <LastName>sample string 6</LastName> <MiddleName>sample string 5</MiddleName> <MobileNo>sample string 8</MobileNo> <PhoneNo>sample string 7</PhoneNo> <Role>sample string 11</Role> <Title>sample string 3</Title> </PrimaryContact> <PrimaryDeliveryAddress> <Address1>sample string 2</Address1> <Address2>sample string 3</Address2> <Address3>sample string 4</Address3> <Address4>sample string 5</Address4> <Address5>sample string 6</Address5> <DeliveryCode>sample string 1</DeliveryCode> <PostCode>sample string 7</PostCode> </PrimaryDeliveryAddress> <SalesPerson> <Code>sample string 1</Code> <Comment>sample string 7</Comment> <Email>sample string 6</Email> <Inactive>true</Inactive> <Mobile>sample string 5</Mobile> <Name>sample string 2</Name> <Phone>sample string 4</Phone> <Role>sample string 3</Role> </SalesPerson> <WebAddress>sample string 9</WebAddress> </Customer>