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. The number is stored encrypted and only ever returned masked; it is never logged or audited.

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

Permissions

accounting:readaccounting:writeaccounting:admin

Who can call it

admin

Retries

No idempotency key

MCP

accounting_company_shareholders_tax_number

Fields

  • holderIdstringRequired

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

  • 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.