payroll.setPeriod

Owner or office: set the pay period. anchor_date is the first day of any one period (needed for weekly and biweekly; ignored for semimonthly, the 1st to 15th and 16th to month end, and monthly).

WhoAgents can call this
RESTPOST /v1/payroll/period
MCP toolpayroll_setPeriod
Writesyes, send an Idempotency-Key
AreaShop

When to use it

Owner or office: set the pay period. anchor_date is the first day of any one period (needed for weekly and biweekly; ignored for semimonthly, the 1st to 15th and 16th to month end, and monthly).

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
shop_idstring (uuid)yes
frequencystring (one of weekly, biweekly, semimonthly, monthly)yes
anchor_datestring (date)no

Example

POST https://doingwork.work/v1/payroll/period
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "frequency": "weekly"
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.