payroll.exportCsv

Approved hours for one pay period as CSV for a payroll provider: one row per person per day with work, drive, shop, break and paid hours (2 decimals). Waiting or running time is left out; check ready. Owner or office.

WhoAgents can call this
RESTGET /v1/payroll/export
MCP toolpayroll_exportCsv
Writesno
AreaShop

When to use it

Approved hours for one pay period as CSV for a payroll provider: one row per person per day with work, drive, shop, break and paid hours (2 decimals). Waiting or running time is left out; check ready.

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
datestring (date)no
offsetintegerno
fromstring (date)no
tostring (date)no

Example

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

Output

FieldTypeAlways there
filenamestringyes
content_typestringyes
csvstringyes
rowsintegeryes
readybooleanyes
pending_countintegeryes
running_countintegeryes
period_startstring (date)yes
period_endstring (date)yes
{
  "filename": "...",
  "content_type": "...",
  "csv": "...",
  "rows": 1,
  "ready": true,
  "pending_count": 1,
  "running_count": 1,
  "period_start": "...",
  "period_end": "..."
}

Errors

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