| GET | /LoyaltyCards/{Number} | ||
|---|---|---|---|
| GET | /LoyaltyCards |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Number | path | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | LoyaltyCard | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CardId | form | string | No | |
| Number | form | string | No | |
| Password | form | string | No | |
| CreateDate | form | DateTime | No | |
| ActivationDate | form | DateTime? | No | |
| Points | form | decimal | No | |
| Discount | form | decimal | No | |
| Status | form | int | No | |
| CardType | form | int | No | |
| Suspended | form | bool | No | |
| Issuer | form | LoyaltyCardIssuer | No | |
| Owner | form | Person | No | |
| AvaliablePoints | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Code | form | string | No | |
| Name | form | string | No | |
| IssuerType | form | int | No | |
| Suspended | form | bool | No | |
| CityId | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Sn | form | string | No | |
| FirstName | form | string | No | |
| SecondName | form | string | No | |
| LastName | form | string | No | |
| FullName | form | string | No | |
| DateOfBirth | form | DateTime? | No | |
| Sex | form | int | No | |
| UnId | form | Guid | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /LoyaltyCards/{Number} HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Result:
{
CardId: String,
Number: String,
Password: String,
CreateDate: 0001-01-01,
ActivationDate: 0001-01-01,
Points: 0,
Discount: 0,
Status: 0,
CardType: 0,
Suspended: False,
Issuer:
{
Id: 0,
Code: String,
Name: String,
IssuerType: 0,
Suspended: False,
CityId: String
},
Owner:
{
Id: 0,
Sn: String,
FirstName: String,
SecondName: String,
LastName: String,
FullName: String,
DateOfBirth: 0001-01-01,
Sex: 0,
UnId: 00000000000000000000000000000000
},
AvaliablePoints: 0
}
}