Query
query ListTaxClassesWithTaxRates($companyId: ID!, $departureCountryIso: String!) {
ListTaxClassesWithTaxRates(companyId: $companyId, departureCountryIso: $departureCountryIso) {
id
name
isStandard
rate
}
}Variables
{
"companyId": "id",
"departureCountryIso": "string"
}Response
{
"data": {
"ListTaxClassesWithTaxRates": [
{
"id": "id",
"name": "string",
"isStandard": true,
"rate": "value"
}
]
}
}Queries
ListTaxClassesWithTaxRates
Returns a list of all tax classes and their calculated tax rates for the given parameters.
QUERY
ListTaxClassesWithTaxRates(companyId: ID!, departureCountryIso: String!, taxReference: TaxDomainTaxReference, shipmentAddressVatId: String, shipmentAddressCountryIso: String, shipmentAddressState: String, billingAddressVatId: String, billingAddressCountryIso: String, billingAddressState: String, specialTaxTreatment: TaxDomainSpecialTaxTreatment, taxClasses: [ID]): [TaxClassWithTaxRate!]!Arguments
companyId
ID!
required
departureCountryIso
String!
required
taxReference
shipmentAddressVatId
String
shipmentAddressCountryIso
String
shipmentAddressState
String
billingAddressVatId
String
billingAddressCountryIso
String
billingAddressState
String
specialTaxTreatment
taxClasses
[ID]
Returns
id
ID!
The unique identifier of the tax class.
name
String!
The name of the tax class
isStandard
Boolean!
Indicates if this tax class is the standard tax class
rate
Decimal
The tax rate in percent calculated for this tax class with the given parameters.
Query
query ListTaxClassesWithTaxRates($companyId: ID!, $departureCountryIso: String!) {
ListTaxClassesWithTaxRates(companyId: $companyId, departureCountryIso: $departureCountryIso) {
id
name
isStandard
rate
}
}Variables
{
"companyId": "id",
"departureCountryIso": "string"
}Response
{
"data": {
"ListTaxClassesWithTaxRates": [
{
"id": "id",
"name": "string",
"isStandard": true,
"rate": "value"
}
]
}
}Was this page helpful?