tax23 ops

API de Tax

Tax rates, jurisdictions, and invoice tax computation.

Consultas

CONSULTA

adminTenantTaxPolicies

#

List the tax policies of a specific tenant (PlatformAdmin only). Mirrors taxPolicies but takes the target tenant from the argument instead of the request context, so platform admins can inspect a tenant they're not impersonating. Used by the admin tenant detail page.

Argumentos

  • tenantId!
  • input!

    Por defecto

    {
      "vertical": null,
      "taxType": null,
      "activeOnly": false,
      "search": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Devuelve!
CONSULTA

taxExemptions

#

List tax exemptions for the current tenant.

Devuelve[!]!
CONSULTA

taxPolicies

#

List tax policies for the current tenant.

Argumentos

  • input!

    Por defecto

    {
      "vertical": null,
      "taxType": null,
      "activeOnly": false,
      "search": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Devuelve!
CONSULTA

taxPolicy

#

Get a single tax policy with its rates.

Argumentos

  • idString!
Devuelve!
CONSULTA

taxPolicyVersions

#

Get all versions of a tax policy by key.

Argumentos

  • policyKeyString!
Devuelve[!]!
CONSULTA

taxProviderConfigs

#

List all tax provider configs for the current tenant.

Argumentos

  • activeOnlyBoolean!

    Por defecto

    true
Devuelve[!]!
CONSULTA

taxZones

#

List tax zones for the current tenant.

Argumentos

  • input!

    Por defecto

    {
      "countryCode": null,
      "adminRegionId": null,
      "cityId": null,
      "activeOnly": false,
      "search": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Devuelve!

Mutaciones

MUTACIÓN

activateTaxPolicy

#

Activate a tax policy version (deactivates other versions with the same key).

Argumentos

  • idString!
Devuelve!
MUTACIÓN

createTaxExemption

#

Create a tax exemption rule.

Argumentos

  • input!
Devuelve!
MUTACIÓN

createTaxPolicy

#

Create a new tax policy with optional inline rates.

Argumentos

  • input!
Devuelve!
MUTACIÓN

createTaxProviderConfig

#

Create a tax engine provider configuration for the tenant.

Argumentos

  • input!
Devuelve!
MUTACIÓN

createTaxRate

#

Add a tax rate to a policy.

Argumentos

  • input!
Devuelve!
MUTACIÓN

createTaxZone

#

Create a new tax zone (jurisdiction). The (country, admin_region, city) chain is validated by a trigger on tax.zones — inconsistent FKs surface as a Postgres error here.

Argumentos

  • input!
Devuelve!
MUTACIÓN

deactivateTaxPolicy

#

Deactivate a tax policy version.

Argumentos

  • idString!
Devuelve!
MUTACIÓN

deleteTaxExemption

#

Delete a tax exemption.

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

deleteTaxProviderConfig

#

Delete (deactivate) a tax provider config.

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

deleteTaxRate

#

Delete a tax rate.

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

deleteTaxZone

#

Soft-delete a tax zone (sets active = false).

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

updateTaxExemption

#

Update a tax exemption.

Argumentos

  • idString!
  • input!
Devuelve!
MUTACIÓN

updateTaxPolicy

#

Update an existing tax policy.

Argumentos

  • idString!
  • input!
Devuelve!
MUTACIÓN

updateTaxProviderConfig

#

Update a tax engine provider configuration.

Argumentos

  • idString!
  • input!
Devuelve!
MUTACIÓN

updateTaxRate

#

Update a tax rate.

Argumentos

  • idString!
  • input!
Devuelve!
MUTACIÓN

updateTaxZone

#

Update an existing tax zone. Geographic consistency is enforced by the trg_tax_zones_validate_geography trigger.

Argumentos

  • idString!
  • input!
Devuelve!