payroll.getPeriod

The shop's pay period setting (weekly, biweekly, semimonthly or monthly) and the current period's dates. Weekly from Monday until the owner or office set it.

WhoAgents can call this
RESTGET /v1/payroll/period
MCP toolpayroll_getPeriod
Writesno
AreaShop

When to use it

The shop's pay period setting (weekly, biweekly, semimonthly or monthly) and the current period's dates. Weekly from Monday until the owner or office set it.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
shop_idstring (uuid)yes

Example

GET https://doingwork.work/v1/payroll/period?shop_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
settingobjectyes
setting.shop_idstring (uuid)yes
setting.frequencystringyes
setting.anchor_datestring (date)yes
setting.is_defaultbooleanyes
setting.updated_by['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
setting.updated_at['string', 'null', ' ', '(', 'd', 'a', 't', 'e', '-', 't', 'i', 'm', 'e', ')']yes
period_startstring (date)yes
period_endstring (date)yes
{
  "setting": {
    "shop_id": "00000000-0000-4000-8000-000000000000",
    "frequency": "...",
    "anchor_date": "...",
    "is_default": true,
    "updated_by": "00000000-0000-4000-8000-000000000000",
    "updated_at": "..."
  },
  "period_start": "...",
  "period_end": "..."
}

Errors

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