GET api/Card?SiteId={SiteId}&CardNumber={CardNumber}
Verify that the given CardNumber belongs to the given site
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| SiteId | globally unique identifier |
Required |
|
| CardNumber |
CardNumber to validate, minimum 10 digits |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
True or False
ValidCard| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid |
Returns bool:true or false |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsValid": true
}
text/html
Sample:
{"IsValid":true}
application/xml, text/xml
Sample:
<ValidCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models"> <IsValid>true</IsValid> </ValidCard>