organizationTaxConfig
Requires an authenticated session.
Returns the organization's tax configuration, including its default sales and purchase tax groups, or null when none has been set.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query OrganizationTaxConfig {
organizationTaxConfig {
id
gstNumber
createdAt
defaultPurchaseTaxGroupId
defaultSalesTaxGroupId
defaultTaxCalculation
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query OrganizationTaxConfig {\n organizationTaxConfig {\n id\n gstNumber\n createdAt\n defaultPurchaseTaxGroupId\n defaultSalesTaxGroupId\n defaultTaxCalculation\n }\n}"
}
EOF
Response:
{
"data": {
"organizationTaxConfig": {
"id": "id",
"gstNumber": "string",
"createdAt": "2025-01-15T00:00:00Z",
"defaultPurchaseTaxGroupId": "string",
"defaultSalesTaxGroupId": "string",
"defaultTaxCalculation": "ADDITIVE"
}
}
}
organizationTaxConfig: OrganizationTaxConfiguration
Type
OrganizationTaxConfiguration object
The organization's tax configuration.