AlmondTill/G3N API

resolveTaxJurisdictionByPostal

query · in the family Reading your records

What it does

Find the tax jurisdiction that applies at a postal code — type a ZIP, get the place.

Resolve a postal code to the tax jurisdiction(s) that apply there: ONE bounded read; the primary designation leads, straddling alternates follow. An unknown code — or a country without postal content — answers the honest empty resolution (primary null, alternates). Malformed input refuses VALIDATION/INVALID before any read. Shared canonical data — no tenant scoping. Requires authentication.

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:

What happens

Reads shared platform tax data. Most codes answer one jurisdiction; a code straddling city or district lines also lists the alternatives, with the usual designation first. An unknown code answers empty.

Arguments

NameTypeRequiredNotes
countryCodeString String!yes
postalString String!yes

Returns

TaxJurisdictionPostalResolution TaxJurisdictionPostalResolution! — One postal code's resolved tax jurisdictions: the usual designation first, the postal's other reachable jurisdictions after.

Example request

graphql
query ExampleResolveTaxJurisdictionByPostal($countryCode: String!, $postal: String!) {
  resolveTaxJurisdictionByPostal(countryCode: $countryCode, postal: $postal) {
    primary {
      id
      sysId
      type
      caption
      status
      parentId
      rootId
      createdAt
      updatedAt
      revisionNum
      revision
      level
      treeParent
      regime
      countryCode
      currencyCode
      code
    }
  }
}

Variables:

json
{
  "countryCode": "CA",
  "postal": "<postal>"
}

Example response

json
{
  "data": {
    "resolveTaxJurisdictionByPostal": {
      "primary": {
        "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

Used in