Reports and tax

company.shareholders.taxNumber

Save or remove a shareholder's tax number for Schedule 50 and T5 slips: { holderId, kind (sin, bn with an optional program account, itn, or foreign with country), value, country? } or value null to remove it. SINs are checked with their check digit. Enter the number only in the signed-in shareholder form; API keys, MCP and Ask AI cannot accept it. Safe personalTax tools request details and open secure capture/consent forms. The number is stored encrypted and returned masked; audit records contain metadata only.

POST/api/v1/accounting/company.shareholders.taxNumber

Permissions

accounting:readaccounting:writeaccounting:admin

Who can call it

admin

Retries

No idempotency key

MCP

Not offered over MCP: Entering a full taxpayer number through a model-visible tool would retain it in chat or tool history. The signed-in company form remains available; safe personal-tax tools manage capture handoff, requests and consent without accepting the number.

Fields

  • holderIdstringRequired

    Matches ^[a-z0-9][a-z0-9-]{7,39}$

  • expectedOrganizationIdstring

    1–200 characters

  • kindenum

    Which kind of record or job this is.

    sinbnitnforeign
  • valuestring or nullRequired
  • countrystring

    exactly 2 characters

Example

curl https://app.getoatmilk.com/api/v1/accounting/company.shareholders.taxNumber \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "holderId": "aaaaaaaa",
  "value": "example",
  "kind": "sin"
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/company.shareholders.taxNumber
curl https://app.getoatmilk.com/api/v1/accounting/company.shareholders.taxNumber \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "holderId": "aaaaaaaa",
  "value": "example",
  "kind": "sin"
}'

More in Reports and tax.