❇️ API 설명
<aside>
📎 codef api를 이용해 보유카드목록 조회
Page |
HTTP method |
URI |
주카드 연결 |
GET |
/card/connect |
</aside> |
|
|
⬆️ Request
Header
Name |
Type |
Value |
Authorization |
String |
access Token |
{
"Authorization" : "[사용자별 access Token]",
}
⬇️ Response
Name |
Type |
Description |
code |
Int |
상태코드 |
inSuccess |
Boolean |
0은 실패, 1은 성공 |
message |
String |
상태 메시지 |
result |
Object |
|
- |
Array |
연결된 카드사 목록 |
- cardName |
String |
보유 카드 이름 |
- cardImg |
String |
보유 카드 이미지 (가로) |
|
|
|
|
|
|
|
|
|
{
"code": 1000,
"inSuccess": true,
"message": "요청에 성공하였습니다.",
"result": [
{
"cardCompanyName": "신한카드",
"connectedAt": "2024.04.05"
},
{
"cardCompanyName": "국민카드",
"connectedAt": "2024.03.20"
}
]
}
{
"code": 3109,
"inSuccess": false,
"message": "연결된 카드사가 없습니다",
"result": null
}