<Create/Update Listing> Interface

Used to inform the backend after the opensea/rarible front-end order is successful posted: notify the backend after the Opensea/Rarible front-end order is successful posted

Request Address: /api/v2/meta/createOrUpdateOrder

Request Method: POST

Request example:

{
    "id":2,
    "side":0, //1-buy,0-sale
    "nftId":"434616516961730560",
    "chainName":"ETH",
    "contractAddress":"111",
    "tokenId":"123",
    "imageUrl":"456",
    "platformId":"386405378620468200",
    "status":"added",
    "price":"900000000000000000",
    "userAddress":"0x76336d2903e8f6d62cc3f5d05283108e3d2785e1",
    "paymentContract":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
    "paymentDecimals":"18",
    "paymentUrl":"https://swap.swftcoin.com/swft-v3/images/coins/ETH.png",
    "orderInfos":null,
    "hash":””,
}

Output example:

{
    "resCode": "100",
    "resMsg": "Success",
    "data": {
        "id": "2",
        "nft_id": "434616516961730560",
        "platform_id": "386405378620468200",
        "user_address": "0x76336d2903e8f6d62cc3f5d05283108e3d2785e1",
        "chain": "ETH",
        "contract_address": "111",
        "token_id": "123",
        "image_url": "456",
        "side": 0,
        "status": "added",
        "price": "900000000000000000",
        "payment_contract": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "payment_decimals": "18",
        "payment_token_url": "https://swap.swftcoin.com/swft-v3/images/coins/ETH.png",
        "order_infos": null,
        "hash": null,
        "create_time": "2022-05-13T07:42:40.000Z",
        "update_time": "2022-05-17T05:52:07.000Z"
    }
}

Last updated