getRebateStatus

The query retrieves information about whether a specific auction is eligible for claiming and the time frame in which it can be claimed.

Sample query

query getRebateStatus(
$lotID: UUID1
$walletAddress: String
){
  getRebateStatus(lotID: $lotID, walletAddress: $walletAddress ){
    totalClaimAmount
    totalTaxAmount
    claimStatus
    auctionEndDate
    auctionLotId
    walletAddress
    details{
      invoiceID
      invoiceItemID
      bidID
      unitPrice
      totalPrice
      rebatePrice
      rebateTaxPrice
      quantity
      UsdConversionRate
    }
}
}

Sample variable

we have cases of response coming based on parameters.

  1. if we are pass lotID and walletAddress, it will return the specific auction rebate status of the wallet address.
  2. if we pass only walletAddress, it will return the rebate status of user by the wallet address raised bid against the all auction rebate status.
  3. if we are not passing any parameter, it will return all rebate status of user-raised bids in the Dutch auction.
{
  "lotID": "cd711230-f9cb-42dd-aa34-bc3b8532c51c",
  "walletAddress": "0x796bba22acdf7d3b7ea00c8c1729717cbdb99ad1"
}

Sample response

{
  "data": {
    "getRebateStatus": [
      {
        "totalClaimAmount": 0.017,
        "totalTaxAmount": 0,
        "claimStatus": "Available",
        "auctionEndDate": "2023-05-25T04:45:00Z",
        "auctionLotId":"cd711230-f9cb-42dd-aa34-bc3b8532c51c",
        "walletAddress": "0x796bba22acdf7d3b7ea00c8c1729717cbdb99ad1"
        "details": [
          {
            "invoiceID": "8a9574fc-1e24-4980-aa58-f2354f36e3fb",
            "invoiceItemID": "933b1bff-67a4-4730-9a81-ba88c068c582",
            "bidID": "783a8bc6-a1f4-4fdc-b8d5-8ec97b9ff401",
            "unitPrice": 0.01,
            "totalPrice": 0.01,
            "rebatePrice": 0.009,
            "rebateTaxPrice": 0,
            "quantity": 1,
            "UsdConversionRate": 1779.94
          },
          {
            "invoiceID": "747c79c4-25ed-4080-909a-2031a44b6a03",
            "invoiceItemID": "b5af69e3-9263-4b4e-b082-96838e5fc4df",
            "bidID": "dd40ccec-6bce-4101-97f0-ee08d5a43e26",
            "unitPrice": 0.009,
            "totalPrice": 0.009,
            "rebatePrice": 0.008,
            "rebateTaxPrice": 0,
            "quantity": 1,
            "UsdConversionRate": 1781.05
          }
        ]
      }
    ]
  }
}

Arguments

NameTypeDescriptionRequired
lotIDUUIDAuction lot id.Yes
walletAddressStringBidder wallet address.Yes

Feilds

NameTypeDescription
ClaimRebateEligibilityResponseObjectContains all information from ClaimRebateEligibilityResponse