Twinkle HubTwinkle Hub

Validate tax ID

tw_validate_tax_id_number

Companies · same family🇹🇼 Taiwanread-only

驗證 8 位統一編號 checksum。預設 rule='post-2023'(mod 5), 可改 'pre-2023' 走舊規則 (mod 10)。

Parameters

ParamTypeDescription
tax_id *string—
rulestring—
Raw JSON schema
{
  "properties": {
    "tax_id": {
      "title": "Tax Id",
      "type": "string"
    },
    "rule": {
      "default": "post-2023",
      "title": "Rule",
      "type": "string"
    }
  },
  "required": [
    "tax_id"
  ],
  "title": "validate_tax_id_numberArguments",
  "type": "object",
  "additionalProperties": false
}

How to call

Starter — params in the table above
tw_validate_tax_id_number({ tax_id: "…" })