❇️ API 설명
<aside>
📎 마이월렛 페이지에서 카드 및 혜택 조회
Page |
HTTP method |
URI |
마이월렛 |
GET |
/card |
</aside> |
|
|
⬆️ Request
Header
Name |
Type |
Value |
Authorization |
String |
access Token |
{
"Authorization" : "[사용자별 access Token]"
}
⬇️ Response
Body
Name |
Type |
Description |
code |
Int |
상태코드 |
inSuccess |
Boolean |
0은 실패, 1은 성공 |
message |
String |
상태 메시지 |
result |
Object |
|
- nickname |
String |
사용자 닉네임 |
- ownedCardList |
Array |
보유 카드 리스트 |
- ownedCardId |
Long |
보유 카드 PK |
- cardName |
String |
카드 이름 |
- cardType |
Int |
0 : 체크카드 / 1 : 신용카드 |
- cardImg |
String |
카드 이미지 url |
- cardCompany |
String |
카드사 이름 |
- isMaincard |
boolean |
주카드 여부 |
- performanceCondition |
Int |
실적 조건 |
- currentPerformance |
Int |
이번달 실적 |
- remainPerformance |
Int |
남은 실적 (performanceCondition-currentPerformance) |
- cardBenefitList |
Array |
카드 혜택 정보 리스트 |
- category |
String |
혜택 카테고리 |
- benefit |
String |
혜택 내용 |
{
"code" : 1000,
"inSuccess" : 1,
"message" : "요청에 성공하였습니다",
"result" : {
"nickname" : "루스",
"ownedCardList":[
{
"ownedCard_id": 1
"cardName": "현대카드M Edition3",
"cardType": 1,
"cardImg":"<https://www.shinhancard.com/pconts/images/contents/card/plate/cdCreaditBJCBLP.png>",
"isMaincard": true,
"performanceCondition": 500000,
"currentPerformance": 382100,
"remainPerformance": 117900,
"cardBenefitList": [
{
"category": "편의점",
"name": "편의점(GS25,CU)",
"benefit": "포인트 5%적립"
},
{
"category": "카페",
"name": "편의점(GS25,CU)",
"benefit": "스타벅스 1회 할인 쿠폰"
},
{
"category": "주유소",
"name": "편의점(GS25,CU)",
"benefit": "10% 적립"
},
]
},
{
"ownedCard_id": 2,
"cardName": "신한카드 Hey Young 카드",
"cardType": 1,
"cardImg":"<https://www.shinhancard.com/pconts/images/contents/card/plate/cdCreaditBJCBLP.png>",
"isMaincard": false,
"performanceCondition": 500000,
"currentPerformance": 0,
"remainPerformance": 0,
"cardBenefitList": [
{
"category": "편의점",
"benefit": "포인트 5%적립"
},
{
"category": "카페",
"benefit": "스타벅스 1회 할인 쿠폰"
},
{
"category": "주유소",
"benefit": "10% 적립"
},
]
},
]
}
}