Notification
알림 관련 API
UUID로 사용자의 알림 목록을 조회합니다
Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
uuidstringRequiredExample:
사용자 UUID
40115395-195e-4c14-b5f4-261f13da353eonlyUnreadbooleanOptionalDefault:
읽지 않은 알림만 조회
falsepageinteger · min: 1OptionalDefault:
페이지 번호
1pageSizeinteger · min: 1 · max: 100OptionalDefault:
페이지당 항목 수
20Responses
200
알림 목록 조회 성공
application/json
401
인증 실패
404
사용자를 찾을 수 없음
post
/tikkly-b2c/notificationsPOST /tikkly-b2c/notifications HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"uuid": "40115395-195e-4c14-b5f4-261f13da353e",
"onlyUnread": false,
"page": 1,
"pageSize": 20
}{
"statusCode": 200,
"message": "Success",
"data": {
"notifications": [
{
"id": 1,
"kind": "TRADE_COMPLETED",
"refType": "trade",
"refId": 123,
"createdAt": "2024-01-15T10:30:00Z",
"readAt": null
}
],
"totalCount": 50,
"page": 1,
"pageSize": 20
}
}UUID로 읽지 않은 알림의 개수를 조회합니다
Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
uuidstringRequiredDefault:
사용자 UUID
40115395-195e-4c14-b5f4-261f13da353eExample: 40115395-195e-4c14-b5f4-261f13da353eResponses
200
조회 성공
application/json
401
인증 실패
404
사용자를 찾을 수 없음
post
/tikkly-b2c/notifications/unread-countPOST /tikkly-b2c/notifications/unread-count HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"uuid": "40115395-195e-4c14-b5f4-261f13da353e"
}{
"statusCode": 200,
"message": "Success",
"data": {
"unreadCount": 5
}
}UUID로 특정 알림을 읽음으로 표시합니다
Path parameters
idintegerRequiredExample:
알림 ID
1Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
uuidstringRequiredDefault:
사용자 UUID
40115395-195e-4c14-b5f4-261f13da353eExample: 40115395-195e-4c14-b5f4-261f13da353eResponses
200
읽음 처리 성공
application/json
401
인증 실패
404
알림을 찾을 수 없음
post
/tikkly-b2c/notifications/{id}/readPOST /tikkly-b2c/notifications/{id}/read HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"uuid": "40115395-195e-4c14-b5f4-261f13da353e"
}{
"statusCode": 200,
"message": "Success"
}UUID로 사용자의 모든 알림을 읽음으로 표시합니다
Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
uuidstringRequiredDefault:
사용자 UUID
40115395-195e-4c14-b5f4-261f13da353eExample: 40115395-195e-4c14-b5f4-261f13da353eResponses
200
모두 읽음 처리 성공
application/json
401
인증 실패
404
사용자를 찾을 수 없음
post
/tikkly-b2c/notifications/read-allPOST /tikkly-b2c/notifications/read-all HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"uuid": "40115395-195e-4c14-b5f4-261f13da353e"
}{
"statusCode": 200,
"message": "Success",
"data": {
"updatedCount": 5
}
}