GET api/Card/GetCards
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
GetCardBookingResponseName | Description | Type | Additional information |
---|---|---|---|
Result | Result |
None. |
|
CardList | Collection of UserCard |
None. |
Response Formats
application/json, text/json
Sample:
{ "result": { "resultCode": 1, "resultMessage": "sample string 2" }, "cardList": [ { "cardId": "sample string 1", "lastdigit": "sample string 2", "expDate": "sample string 3", "name": "sample string 4", "brand": "sample string 5", "isPrimary": 6 }, { "cardId": "sample string 1", "lastdigit": "sample string 2", "expDate": "sample string 3", "name": "sample string 4", "brand": "sample string 5", "isPrimary": 6 } ] }
text/html
Sample:
{"result":{"resultCode":1,"resultMessage":"sample string 2"},"cardList":[{"cardId":"sample string 1","lastdigit":"sample string 2","expDate":"sample string 3","name":"sample string 4","brand":"sample string 5","isPrimary":6},{"cardId":"sample string 1","lastdigit":"sample string 2","expDate":"sample string 3","name":"sample string 4","brand":"sample string 5","isPrimary":6}]}
application/xml, text/xml
Sample:
<CardController.GetCardBookingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers"> <CardList xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Contracts"> <d2p1:UserCard> <d2p1:Brand>sample string 5</d2p1:Brand> <d2p1:CardId>sample string 1</d2p1:CardId> <d2p1:ExpDate>sample string 3</d2p1:ExpDate> <d2p1:Lastdigit>sample string 2</d2p1:Lastdigit> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:isPrimary>6</d2p1:isPrimary> </d2p1:UserCard> <d2p1:UserCard> <d2p1:Brand>sample string 5</d2p1:Brand> <d2p1:CardId>sample string 1</d2p1:CardId> <d2p1:ExpDate>sample string 3</d2p1:ExpDate> <d2p1:Lastdigit>sample string 2</d2p1:Lastdigit> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:isPrimary>6</d2p1:isPrimary> </d2p1:UserCard> </CardList> <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Repositories"> <d2p1:ResultCode>1</d2p1:ResultCode> <d2p1:ResultMessage>sample string 2</d2p1:ResultMessage> </Result> </CardController.GetCardBookingResponse>