createMarketplaceBuyNowLot

This mutation allows the creation of a buy now lot within a marketplace.

Sample Mutation

Create a buy now lot for a specific marketplace:

mutation{
  createMarketplaceBuyNowLot(input:{
    marketplaceTokenId:"d5699b63-f2d8-49c0-9a46-dce441f14dae"
    collectionId:"f2cd1160-1c99-4a27-b948-d48a60ba2e11"
    collectionItemName:"metaverso"
    startDate:"2022-01-28T08:51:02Z"
    endDate:"2022-02-15T03:55:00Z"
    unitPrice:11
    totalUnits:12
    sortNumber:123 
  }){
    id
    marketplaceCollectionItem{
      id
      marketplaceTokenId
      collectionId
      saleType
    }
    unitPrice
    totalUnits
    totalAvailableUnits
  }
}

Sample Response

{
  "data": {
    "createMarketplaceBuyNowLot": {
      "id": "a94fabe3-cba4-4c36-9bea-4f08a64ae098",
      "marketplaceCollectionItem": {
        "id": "5edd5618-6066-4fb5-a226-9fd04ea45d0e",
        "marketplaceTokenId": "d5699b63-f2d8-49c0-9a46-dce441f14dae",
        "collectionId": "f2cd1160-1c99-4a27-b948-d48a60ba2e11",
        "saleType": "BuyNow"
      },
      "unitPrice": 11,
      "totalUnits": 12,
      "totalAvailableUnits": 12
    }
  }
}

Arguments

Name

Type

Description

Required

Input

Object

Input for the buy now lot within a marketplace.

Yes

Return

Name

Type

Description

MarketplaceBuyNowOutput

Object

Contains all the information from MarketplaceBuyNowOutput including marketplace collection item, unit price, total units, etc.

Example

Create a buy now lot within a marketplace using CreateMarketplaceBuyNowLotInput object: