MetaPath API
  • API Introduction
    • General Instruction
    • Major Blockchain Name Conventions
  • Cross-platform Aggregator Interface
    • Token Swap Flow
    • Get <The Token List> Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • <BlackList> Interface
  • Upload gas free orders
  • Aggregate NFTs Interface V1.0
    • Get <Basic Information> Interface
    • Get <NFT List> Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • Get <NFT List Held by User> Interface
  • Aggregate NFTs Interface V2.0
    • Get <Latest Collections> Interface
    • Get <Top NFT Collections> Interface
    • <List Page> Interface
    • Get <NFT Details> Interface
    • Get <NFT Details> Other Related Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • <Batch Purchase> Interface
  • List Related Interface
    • Get <User's NFT> Interface
    • Get <Listed NFT List (My List)> Interface
    • <Create/Update Listing> Interface
    • <Create/Update Listing in the Backend> Interface
    • <Cancel Listing> Interface
    • <Change Listing> Interface
  • Swap Information Related Interface
    • <Add Swap Information> Interface
    • <Get Swap Information List> Interface
    • <Get Detailed Transation Infromation > Interface
Powered by GitBook
On this page
  1. List Related Interface

<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"
    }
}

PreviousGet <Listed NFT List (My List)> InterfaceNext<Create/Update Listing in the Backend> Interface

Last updated 2 years ago