collectionItemById

This query loads the information of collection based on an ID.

General Pattern

{
  collectionItemById(id: UUID1!){
    id
    marketplaceTokenId
    collectionId
    saleType
    ...
  }
}

Sample Query

query{
  collectionItemById(id: "611c8e1f-0afa-4db8-b4f1-cf1b4f22bea3"){
    id
    marketplaceTokenId
    collectionId
    saleType
    name
    slug
    status
    deliveryMethod
    details{
      ... on MarketplaceBuyNowOutput{
        id
        marketplaceCollectionItem{
          id
        }
        unitPrice
        totalUnits
        totalAvailableUnits
        startDate
        endDate
        sortNumber
        invoice{
          invoiceID
          cryptoAmount
        }
        remainingCount
        purchaseTimeoutInMinutes
      }
    }
    onChainPaymentInfo{
      marketplaceCollectionItemID
      onchainPaymentAddress
      ownerWalletAddress
      tokenContractAddress
      onChainID
      isRandomDelivery
      onChainIDRange{
        from
        to
      }
       networkID
      tokenType
      quantity
      paymentSettlementAddress
      taxSettlementAddress
      commissionAddress
      platformSettlementAddress
      commissionFeePercentage
      platformFeePercentage
    }
    totalQuantity
    perWalletMaxClaim
    numberOfCodes
    prefix
  }
}

Sample Response

{
  "data": {
    "collectionItemById": {
      "id": "611c8e1f-0afa-4db8-b4f1-cf1b4f22bea3",
      "marketplaceTokenId": "c305ead1-7aa9-46c6-9361-88f2240f1447",
      "collectionId": "b53a4163-ffce-455b-a72e-1a2106c90fbc",
      "saleType": "BuyNow",
      "name": "pic",
      "slug": "pic",
      "status": "Active",
      "deliveryMethod": "",
      "details": {
        "id": "3b7023a8-181a-4522-b217-75d4a3eee92c",
        "marketplaceCollectionItem": {
          "id": "611c8e1f-0afa-4db8-b4f1-cf1b4f22bea3"
        },
        "unitPrice": 1,
        "totalUnits": 1,
        "totalAvailableUnits": 1,
        "startDate": "2022-02-14T06:08:00Z",
        "endDate": "2022-02-15T06:09:00Z",
        "sortNumber": 0,
        "invoice": null,
        "remainingCount": 0,
        "purchaseTimeoutInMinutes": null
      },
      "onChainPaymentInfo": null,
      "totalQuantity": 0,
      "perWalletMaxClaim": 0,
      "numberOfCodes": 0,
      "prefix": ""
    }
  }
}

Arguments

NameTypeDescriptionRequired
idUUIDThe ID of collection item.Yes

Fields

NameTypeDescription
MarketplaceCollectionItemObjectContains the information from MarketplaceCollectionItem including ID, marketplace token ID, collection ID, sale type, collection name, slug, collection status, and details.