getInvoiceDetails

This Query fetches the invoice details for the given invoice ID

Sample Query

query {
  getInvoiceDetails(invoiceID:"73acefe9-d030-46ab-8a7d-efd4b63df1a1"){
    status
    items{
      invoiceItemID
      nftDetails {
        title
        description
        onChainId
        contractAddress
        balance
        metadataJSON
        networkId
        networkChainID
        tokenMetadata {
          name
          description
          image
        }
      }
      onChainPaymentInfo{
        marketplaceCollectionItemId
        onchainPaymentAddress
        ownerWalletAddress
        tokenContractAddress
        onChainID
        tokenType
        quantity
      }
      isOnchainPaymentAvailable
    }
  }
}

Sample Response 1

{
  "data": {
    "getInvoiceDetails": {
      "status": "Paid",
      "items": [
        {
          "invoiceItemID": "b481e0fd-cc6d-4f77-8d84-c31e83aea873",
          "nftDetails": [
            {
              "title": null,
              "description": null,
              "onChainId": "2",
              "contractAddress": "0x8008D0b55F23ceBcD23AE9cB45025647A25Dff3e",
              "balance": null,
              "metadataJSON": "{\"name\":\"\"}",
              "networkId": "b260424b-bb37-4a3e-86d0-0866175e5e68",
              "networkChainID": 11155111,
              "tokenMetadata": {
                "name": "",
                "description": "",
                "image": ""
              }
            }
          ],
          "onChainPaymentInfo": {
            "marketplaceCollectionItemId": "6c314470-d59d-4137-adf0-54b3afdae8af",
            "onchainPaymentAddress": "0x524ac0F6f9f40801B102C436343e05350cf20439",
            "ownerWalletAddress": "0x8d8581858c7899188d41032F642b2dAc12A1dA42",
            "tokenContractAddress": "0x8008D0b55F23ceBcD23AE9cB45025647A25Dff3e",
            "onChainID": "",
            "tokenType": "ERC721",
            "quantity": 1
          },
          "isOnchainPaymentAvailable": true
        }
      ]
    }
  }
}

Arguments

NameTypeDescriptionRequired
invoiceIDUUID1This invoice ID is the unique reference id generated when the earnable api is hitYes

Field

NameTypeDescription
InvoiceDetailsObjectContains the all information from InvoiceDetails