getClaimList

[Authenticated] This query retrieves all the claims completed by the authenticated user using the getMyInvoices{}

General Pattern

query{
	getMyInvoices{
  	field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  getMyInvoices{
    invoiceID
    invoiceNumber
    invoiceCreatedAt
    internalUserID
    status
    items{
      collectionItemTitle
      collectionItemID
      totalPrice
      units
      unitPrice
      transactionHash
      transactionStatus
      nftDetails{
        onChainId
        contractAddress
        tokenMetadata{
          name
          description
          animationURL
          image
          attributes{
            traitType
            value{
                  ... on AttributeValueString{
                    stringValue
                  }
                  ... on AttributeValueInt{
                    intValue
                  }
                  ... on AttributeValueFloat{
                    floatValue
                  }
                  ... on AttributeValueBool{
                    boolValue
              } 
            }
          }
        }
      }
    }
  }
}

Sample Response

{
  "data": {
    "getMyInvoices": [
      {
        "invoiceID": "7f737adb-dd14-4268-a701-c62900eb69a4",
        "invoiceNumber": 27773,
        "invoiceCreatedAt": "2023-10-25T20:27:27Z",
        "internalUserID": "3e722b13-0f3c-43cc-af24-16a51c53c4c2",
        "status": "Paid",
        "items": [
          {
            "collectionItemTitle": "NFT Art Collection",
            "collectionItemID": "f13ddbe9-424e-4a1d-80b7-7634f578fcfb",
            "totalPrice": 0,
            "units": 1,
            "unitPrice": 0,
            "transactionHash": "0x067d413e7cce77f23442b7252c720c17adb3b1ad1d2e2f92ff36ebf93edbb800",
            "transactionStatus": "Delivered",
            "nftDetails": [
              {
                "onChainId": "1",
                "contractAddress": "0x5ed037A538094Ff46D00374e46eaE48b9ffCc411",
                "tokenMetadata": {
                  "name": "NFT of Art",
                  "description": "Art with NFT is love to collaborate.",
                  "animationURL": "",
                  "image": "https://gateway.arweave.net/Jx1-H39fMkO2GrqzAdpTRINV6ptyuTjfgCTnh7p-PYc",
                  "attributes": [
                    {
                      "traitType": "Class",
                      "value": {
                        "stringValue": "ART"
                      }
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    ]
  }
}

Fields

NameTypeDescription
InvoiceDetailsObjectContains all the information from InvoiceDetails such as the ID, the invoice ID, the invoice created ID, the external user ID, the internal user ID, and etc.