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:"6982ff38-1a54-41bd-b337-0f918d92f96c"
    collectionId:"aaf9526b-e701-425e-8637-087c76be25ce"
    collectionItemName:"metaverso"
    startDate:"2022-01-28T08:51:02Z"
    endDate:"2022-07-15T03:55:00Z"
    unitPrice:10
    totalUnits:12
    sortNumber:123
    delivery:{
      deliveryMethod:NoOp
      NoOp:{
        notes:"no op"
      }
      }
  }){
    id
    marketplaceCollectionItem{
      id
      marketplaceTokenId
      collectionId
      saleType
    }
    unitPrice
    totalUnits
    totalAvailableUnits
    invoice{
      invoiceID
      userName
      invoiceNumber
      invoiceCreatedAt
      paymentID
      billingAddress{
        street1
        city
        country
        postalCode
      }
    }
    remainingCount
    purchaseTimeoutInMinutes
  }
}

Sample Response

{
  "data": {
    "createMarketplaceBuyNowLot": {
      "id": "84d5800a-97bf-466b-87c4-2e1f308e9524",
      "marketplaceCollectionItem": {
        "id": "1eb8a088-fbdd-4d62-93e6-5136fc495475",
        "marketplaceTokenId": "6982ff38-1a54-41bd-b337-0f918d92f96c",
        "collectionId": "aaf9526b-e701-425e-8637-087c76be25ce",
        "saleType": "BuyNow"
      },
      "unitPrice": 10,
      "totalUnits": 12,
      "totalAvailableUnits": 12,
      "invoice": null,
      "remainingCount": 0,
      "purchaseTimeoutInMinutes": null
    }
  }
}

Arguments

Name

Type

Description

Required

Input

Object

Input for the buy now lot within a marketplace.

Yes

Fields

Name

Type

Description

CreateMarketplaceBuyNowLotInput

Object

An object that contains information about the CreateMarketplaceBuyNowLotInput object, such as marketplace token ID, collection ID, collection item name, etc.

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: