❇️ API 설명
<aside>
📎 카드 추가를 위한 카드 검색
| Page |
HTTP method |
URI |
| 마이월렛 |
GET |
/user/card/search?code=0301,0302 |
| </aside> |
|
|
⬆️ Request
➡️ Query Parameter
| Name |
Type |
Description |
code |
String |
카드사 코드 네자리 |
| 하나카드/현대카드/국민카드/롯데카드/삼성카드/신한카드 |
|
|
| 여러개라면 “,”로 구분 |
|
|
| 0 |
신한카드 |
0306 |
| 1 |
현대카드 |
0302 |
| 2 |
국민카드 |
0301 |
| 3 |
삼성카드 |
0303 |
| 4 |
롯데카드 |
0311 |
| 5 |
하나카드 |
0313 |
⬇️ Response
Body
| Name |
Type |
Description |
| code |
Int |
상태코드 |
| inSuccess |
Boolean |
0은 실패, 1은 성공 |
| message |
String |
상태 메시지 |
| result |
Object |
|
| - companyName |
String |
카드사 이름 |
| 하나카드/현대카드/국민카드/롯데카드/삼성카드/신한카드 |
|
|
| - cardList |
Array |
보유 카드 리스트 |
| - cardId |
Long |
카드 번호 (PK) |
| - cardName |
String |
카드 이름 |
| - cardImg |
String |
카드 이미지 url |
{
"code" : 1000,
"inSuccess" : 1,
"message" : "카드 검색 성공",
"result" : [
{
"companyName": "신한카드",
"cardList":[
{
"cardId": 12,
"cardName": "현대카드M Edition3",
"cardImg":"<https://www.shinhancard.com/pconts/images/contents/card/plate/cdCreaditBJCBLP.png>",
"type": "신용카드"
},
{
"cardId": 12,
"cardName": "현대카드M Edition3",
"cardImg":"<https://www.shinhancard.com/pconts/images/contents/card/plate/cdCreaditBJCBLP.png>",
"type": "체크카드"
}
]
},
{
"companyName": "국민카드",
"cardList":[
{
"cardId": 12,
"cardName": "현대카드M Edition3",
"cardImg":"<https://www.shinhancard.com/pconts/images/contents/card/plate/cdCreaditBJCBLP.png>",
"type": "신용카드"
},
{
"cardId": 12,
"cardName": "현대카드M Edition3",
"cardImg":"<https://www.shinhancard.com/pconts/images/contents/card/plate/cdCreaditBJCBLP.png>",
"type": "신용카드"
}
]
}
]
}