Reports and tax

personalTax.share.prepare

Prepare an exact review of sharing your saved number for one organization, shareholder, purpose and fiscal period, optionally with named accountantUserIds. Include expectedRevision from personalTax.get, expectedRegisterRevision from company.list, expiry and idempotencyKey. Returns a metadata-only review and secure browser handoff. Only you confirm the consent in your signed-in account; this tool never shares the number.

POST/api/v1/accounting/personalTax.share.prepare

Permissions

accounting:readaccounting:write

Who can call it

admin, finance, contributor, accountant

Retries

Idempotency key required, with expectedRevision

MCP

accounting_personal_tax_share_prepare

Fields

  • organizationIdstringRequired

    The company to work in, for people who belong to more than one. API keys belong to one company.

    1–200 characters

  • holderIdstringRequired

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

  • purposeenumRequired
    t2_schedule_50t5_slip
  • periodobjectRequired

    The period to cover.

    No other fields

  • accountantUserIdsarray of stringsRequired

    A list of record IDs.

    at most 20 items · each 1–200 characters

  • expiresAtstring (date-time) or nullRequired

    When this stops working, as an ISO 8601 date and time.

  • expectedRevisionintegerRequired

    The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again.

    0 to 9007199254740991

  • expectedRegisterRevisionintegerRequired

    The related record's current revision, from the last time you read it.

    0 to 9007199254740991

  • idempotencyKeystringRequired

    Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match.

    8–200 characters

Example

curl https://app.getoatmilk.com/api/v1/accounting/personalTax.share.prepare \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "organizationId": "example",
  "holderId": "aaaaaaaa",
  "purpose": "t2_schedule_50",
  "period": {
    "from": "2026-09-01",
    "to": "2026-09-30",
    "kind": "corporate"
  },
  "accountantUserIds": [
    "example"
  ],
  "expiresAt": "2026-09-30T14:00:00Z",
  "expectedRevision": 3,
  "expectedRegisterRevision": 3
}'
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/personalTax.share.prepare
curl https://app.getoatmilk.com/api/v1/accounting/personalTax.share.prepare \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "organizationId": "example",
  "holderId": "aaaaaaaa",
  "purpose": "t2_schedule_50",
  "period": {
    "from": "2026-09-01",
    "to": "2026-09-30",
    "kind": "corporate"
  },
  "accountantUserIds": [
    "example"
  ],
  "expiresAt": "2026-09-30T14:00:00Z",
  "expectedRevision": 3,
  "expectedRegisterRevision": 3
}'

More in Reports and tax.