AlmondTill/G3N API

taxJurisdiction

query · in the family Tax jurisdiction

What it does

One tax jurisdiction — a place whose tax rules can apply to your sales.

One TaxJurisdiction by id — shared reference data, readable by any signed-in principal; an unknown id reads as not found.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

TaxJurisdiction — A tax jurisdiction — ONE node of OUR canonical jurisdiction tree (roots = countries; full local depth for the US). Shared-canonical, ruled: AT builds and maintains this data centrally; merchants reference it (TaxRegistration nexus, ExemptionCertificate scopes, the calc) and never edit it — the wire is read-only (writes are kit-channel: the US+CA seed slice). The tree is the mutable treeParent pointer; regime/countryCode/currencyCode ride the country root only (descendants inherit by walk-up).

Example request

graphql
query ExampleTaxJurisdiction($id: ID!) {
  taxJurisdiction(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    level
    treeParent
    regime
    countryCode
    currencyCode
    code
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-33d0df4f0000"
}

Example response

json
{
  "data": {
    "taxJurisdiction": {
      "id": "01900000-0000-7000-8000-33d0df4f0000",
      "sysId": "TJ-EXMP-0000-000F",
      "type": "TaxJurisdiction",
      "caption": "Blue jeans",
      "status": "active",
      "parentId": "01900000-0000-7000-8000-33d0df4f0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "level": "country",
      "treeParent": "01900000-0000-7000-8000-e095a88d0000",
      "regime": "sales_tax",
      "countryCode": "CA",
      "currencyCode": "USD",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer