getTaxQuote

This query loads the information of tax quote.

General Pattern

query{
  getTaxQuote(input: TaxQuoteInput){
    field_1{
      nested_field_1
    }
    ...
  }
}

Sample query

query{
  getTaxQuote(input:{
    address:{
      street1:"b1"
      city:"Krichev"
      state:""
      postalCode:"213510"
      country:"BJ"
    }
    taxablePrice:2500
    }){
    verifiedAddress{
      street1
      city
      state
      postalCode
      country
    }
    taxablePrice
    totalTaxAmount
    totalTaxedPrice
  }
}

Sample response

{
  "data": {
    "getTaxQuote": {
      "verifiedAddress": {
        "street1": "b1",
        "city": "Krichev",
        "state": "",
        "postalCode": "213510",
        "country": "BJ"
      },
      "taxablePrice": 2500,
      "totalTaxAmount": 0,
      "totalTaxedPrice": 2500
    }
  }
}

Arguments

Name

Type

Description

Required

input

Object

Contains information from TaxQuoteInput such as address and taxable price.

Yes

Fields

Name

Type

Description

TaxQuoteOutput

Object

Contains information from TaxQuoteOutput such as verified address, taxable price, etc.

Example

Load the tax information using TaxQuoteInput object: