Swap 우대 조건 확인
지갑 정보를 조회합니다.
GET https://{dashboard-domain}/v1.0/db/swap/tier/check
Headers
Authorization*
string
Bearer {{web-access-token}}
Request Body
tx_type
int64
swap type
3: 포인트 -> 코인
from_id
int64
시작 재화 ID
to_id
int64
반환 재화 ID
Response
{
"return": 0,
"message": "success",
"value": {
"swap_tier_check": [
{
"tier_id": 1,
"condition_type": 2,
"condition_id": 10,
"quantity": "3000",
"is_achieved_condition": true
},
{
"tier_id": 1,
"condition_type": 2,
"condition_id": 12,
"quantity": "300",
"is_achieved_condition": true
},
{
"tier_id": 2,
"condition_type": 2,
"condition_id": 10,
"quantity": "100000",
"is_achieved_condition": true
},
{
"tier_id": 2,
"condition_type": 2,
"condition_id": 12,
"quantity": "10000",
"is_achieved_condition": false
},
{
"tier_id": 3,
"condition_type": 3,
"condition_id": 200583,
"quantity": "1",
"is_achieved_condition": true
}
],
"select_tier": {
"select_tier": 1,
"minimum_exchange_quantity": "10000",
"exchange_ratio": 0.015
}
}
}curl --location --request GET 'https://{dashboard-domain}/v1.0/db/tier/check?tx_type=3&from_id=6&to_id=10 \
--header 'Authorization: Bearer eyJhbGciOiJ...'
swap_tier_check
object array
우대 조건 체크 확인 리스트
tier_id
int64
우대 단계 index
condition_type
int64
조건 type 2 : coin 수량 보유 3 : nft 보유
condition_id
int64
condition_type에 따라 선택 type 2 : COIN ID type 3 : NFT PACK ID
is_achieved_condition
bool
조건 달성 여부
select_tier
object
tier 달성 종합 정보
select_tier
int64
결정된 달성 tier 정보
minimum_exchange_quantity
string
결정된 최소 from 전환 수량
exchange_ratio
float64
결정된 전환율
0
success
성공(진행중인 정보가 없음)
500
internal server error
내부 서버 에러
32304
No swap priority conditions
swap 우대 조건이 존재하지 않음, default swap 정보 이용
34007
db get account wallet list error.
지갑 정보 조회 실패
34008
db not exist wallet
보유한 지갑 없음
Last updated