Swap 처리

POST https://{dashboard-domain}/v1.0/db/swap

Headers

Name
Type
Description

Authorization*

string

Bearer {{web-access-token}}

Content-Type*

string

application/json

Request Body

Name
Type
Description

event_id*

int

이벤트ID

3: 포인트 -> 코인

4 : 코인 -> 포인트

point*

object

포인트 정보

app_id*

string

앱 ID

point_id*

int

포인트 ID

adjust_point_quantity*

int64

포인트 조정량

coin*

object

코인 정보

coin_id*

int

코인ID

adjust_coin_quantity*

float64

코인 조정량

otp_code*

string

Authenticator 앱에서 발급 받은 6자리 OTP code

{
    "return": 0,
    "message": "success",
    "value": {
        "au_id": 19,
        "point": {
            "mu_id": 28,
            "app_id": 1,
            "database_id": 1,
            "point_id": 1,
            "previous_point_quantity": 2100,
            "adjust_point_quantity": -110,
            "point_quantity": 1990
        },
        "coin": {
            "coin_id": 2,
            "walletaddress": "0x0cE183FBE350BE042c9F456Da78CfADAA5Cf1225",
            "previous_coin_quantity": 0,
            "adjust_coin_quantity": 11,
            "coin_quantity": 11
        },
        "log_id": 2,
        "event_id": 3
    }
}
{
    "event_id" : 3,
    "otp_code" : "690455",
    
    "point" : {
        "app_id" : 1,    
        "point_id" : 1,
        "adjust_point_quantity" : -50
    },
    "coin" :{
        "coin_id" : 2,
        "adjust_coin_quantity" : 50
    }
}

Last updated