구매/낙찰 결과

POST https://{market-domain}/v1.0/product/sale/purchase

Request Body

Name
Type
Description

product_id*

int64

상품ID

purchase_state*

int64

0:결제취소. 1:결제성공

tx_hash*

string

txhash(sui 는 Digest)

{
    "return": 0,
    "message": "success",
    "value" : {
        "au_id" : 1323232,
        "product_id" : 7
        "basecoin_id" : 1,
        "wallet_address" : 11.112,
        "coin_id" : 2,
        "price" : 4.112,
        "previous_quantity" : 11.0034
        "AdjQuantity" : 1,
        "quantity" : 10.0034,
        "tx_hash" : "0x4389h4jkn4kh432..."
        "nft_id" : 32,
        "transfer_id" : 21,
        "nft_pack_id" : 1
    }
}

curl --location --request POST 'https://{market-domain}/v1.0/product/sale/purchase' --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR....' --header 'Content-Type: application/json' --data-raw '{ "product_id": 7, "basecoin_id": 1, "coin_id": 1 }'

Last updated