This mutation is called to get the tax and royalty fees for the NFT.
Sample mutation
mutation estimateTaxAndRoyaltyFee(
$orderId: UUID1,
$orgId: UUID1!,
$nftTokenId: UUID1,
$price: Float,
$currencyID: UUID1,
$estimateType: TaxEstimateType!,
$country: String,
$postalCode: String,
$currency: CurrencyCodeFiat
) {
estimateTaxAndRoyaltyFee(
orgId: $orgId
orderId: $orderId
nftTokenId: $nftTokenId
price: $price
estimateType: $estimateType
country: $country
postalCode: $postalCode
currencyID: $currencyID
currency: $currency
) {
taxPercentage
royaltyFee
platformFee
taxResponse {
cryptoTaxPrice
cryptoTotalPrice
USDUnitprice
taxPercentage
}
}
}
Sample variable
{
"orgId": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
"nftTokenId": "97f7664d-92a6-4090-ae1d-cbd19a1342f0",
"price": 1,
"estimateType": "ListForSale"
}
Sample response
{
"data": {
"estimateTaxAndRoyaltyFee": {
"taxPercentage": 0,
"royaltyFee": 0,
"platformFee": 2.5,
"taxResponse": {
"cryptoTaxPrice": 0,
"cryptoTotalPrice": 1,
"USDUnitprice": 1566.18,
"taxPercentage": 0
}
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
orgId | UUID | The organztion id | Yes |
orderId | UUID | The NFT listed or offered order id. | No |
nftTokenId | UUID | Nft token id | No |
price | Float | The price for tax calculation | Yes |
estimateType | Enum | The estimate type such as ListForSale ,BuyNow ,MakeOffer ,AcceptOffer . | Yes |
country | String | The user country code . | No |
postalCode | String | Postal code of the user | No |
currencyId | UUID | if the currency id it will fetch the currency and initiate the transaction else it from the backend picks the default payment currency. | No |
currency | Enum | Fiat currency units like USD or EUR. | No |
Fields
Name | Type | Description |
---|---|---|
taxPercentage | Float | Tax percentage of fixed price. |
royaltyFee | Float | Royalty fee of previous owners. |
platformFee | Float | Platform fee of the marketplace. |
taxResponse | Object | An object that contains the TaxResponse such as fees. |
Example
Load the estimated tax and royalty fee of the NFT.