GET api/Customer/GetCustomer/{lastRefreshDate}
Gets the customer details, including customer rep details
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lastRefreshDate |
Optional: last date that the data set was refreshed (null if date not required) |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns the Customer object
CustomerViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| customer | Customer |
None. |
|
| apiResponse | APIResponseMessage |
None. |
Response Formats
application/json, text/json
Sample:
{
"customer": {
"BusinessName": "sample string 1",
"AccountStatus": "sample string 2",
"CreditLimit": 3.0,
"Terms": "sample string 4",
"AmountDue": 5.0,
"Balance": 6.0,
"Current": 7.0,
"Days30": 8.0,
"Days60": 9.0,
"Target": 10.0,
"Actual": 11.0,
"Percentage": 12.0,
"RepCode": "sample string 13",
"RepName": "sample string 14",
"RepPhone": "sample string 15",
"KeystonePhone": "sample string 16",
"UserID": 17
},
"apiResponse": {
"HttpStatusCode": "sample string 1",
"ReasonPhrase": "sample string 2",
"ExceptionMessage": "sample string 3",
"GeneralMessage": "sample string 4"
}
}
application/xml, text/xml
Sample:
<CustomerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Customer">
<apiResponse xmlns:d2p1="http://schemas.datacontract.org/2004/07/API.Core.Models">
<d2p1:ExceptionMessage>sample string 3</d2p1:ExceptionMessage>
<d2p1:GeneralMessage>sample string 4</d2p1:GeneralMessage>
<d2p1:HttpStatusCode>sample string 1</d2p1:HttpStatusCode>
<d2p1:ReasonPhrase>sample string 2</d2p1:ReasonPhrase>
</apiResponse>
<customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/API.Core.Models.Customer">
<d2p1:AccountStatus>sample string 2</d2p1:AccountStatus>
<d2p1:Actual>11</d2p1:Actual>
<d2p1:AmountDue>5</d2p1:AmountDue>
<d2p1:Balance>6</d2p1:Balance>
<d2p1:BusinessName>sample string 1</d2p1:BusinessName>
<d2p1:CreditLimit>3</d2p1:CreditLimit>
<d2p1:Current>7</d2p1:Current>
<d2p1:Days30>8</d2p1:Days30>
<d2p1:Days60>9</d2p1:Days60>
<d2p1:KeystonePhone>sample string 16</d2p1:KeystonePhone>
<d2p1:Percentage>12</d2p1:Percentage>
<d2p1:RepCode>sample string 13</d2p1:RepCode>
<d2p1:RepName>sample string 14</d2p1:RepName>
<d2p1:RepPhone>sample string 15</d2p1:RepPhone>
<d2p1:Target>10</d2p1:Target>
<d2p1:Terms>sample string 4</d2p1:Terms>
<d2p1:UserID>17</d2p1:UserID>
</customer>
</CustomerViewModel>