TaxClass
Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates.
Added in Saleor 3.9type TaxClass implements Node, ObjectWithMetadata {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(key: String!): String
privateMetafields(keys: [String!]): Metadata
metadata: [MetadataItem!]!
metafield(key: String!): String
metafields(keys: [String!]): Metadata
name: String!
countries: [TaxClassCountryRate!]!
}
Fields
TaxClass.id
● ID!
non-null scalar
The ID of the object.
TaxClass.privateMetadata
● [MetadataItem!]!
non-null object
List of private metadata items. Requires staff permissions to access.
TaxClass.privateMetafield
● String
scalar
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3This API is currently in Feature Preview and can be subject to changes at later point.
TaxClass.privateMetafield.key
●String!
non-null scalar
TaxClass.privateMetafields
● Metadata
scalar
Private metadata. Requires staff permissions to access. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.This API is currently in Feature Preview and can be subject to changes at later point.
TaxClass.privateMetafields.keys
●[String!]
list scalar
TaxClass.metadata
● [MetadataItem!]!
non-null object
List of public metadata items. Can be accessed without permissions.
TaxClass.metafield
● String
scalar
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3This API is currently in Feature Preview and can be subject to changes at later point.
TaxClass.metafield.key
●String!
non-null scalar
TaxClass.metafields
● Metadata
scalar
Public metadata. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.This API is currently in Feature Preview and can be subject to changes at later point.
TaxClass.metafields.keys
●[String!]
list scalar
TaxClass.name
● String!
non-null scalar
Name of the tax class.
TaxClass.countries
● [TaxClassCountryRate!]!
non-null object
Country-specific tax rates for this tax class.
Interfaces
Node
interface
An object with an ID
ObjectWithMetadata
interface
Returned by
taxClass
query
Member of
Order
object ● OrderLine
object ● Product
object ● ProductType
object ● ShippingMethodType
object ● TaxClassCountableEdge
object ● TaxClassCountryRate
object ● TaxClassCreate
object ● TaxClassDelete
object ● TaxClassUpdate
object