Twinkle HubTwinkle Hub

驗證統一編號

tw_validate_tax_id_number

公司​商業 · 同一族🇹🇼 台灣唯讀

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

參數

參數型別說明
tax_id *string—
rulestring—
原始 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
}

呼叫​方式

起手式——參數見上表
tw_validate_tax_id_number({ tax_id: "…" })