# ZenSched account_set_payroll_period

> ZenSched account_set_payroll_period is a paid API for AI agents from mcp.zensched.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Sets the organization's payroll period definition, required before exporting timesheets in processed mode.

## Facts

- Endpoint: GET https://mcp.zensched.com/x402/tools/account_set_payroll_period?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zensched-account-set-payroll-period-d7bfcb3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x2Y-nHcwI_2Tn50SBuTlR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability zensched-account-set-payroll-period-d7bfcb3c
```

Example prompt: Set my ZenSched org's payroll period to weekly starting on Monday — use the key 'weekly_monday' — so I can start exporting processed timesheets.

## When to prefer this

Use this endpoint when you need to configure or change the payroll period for a ZenSched organization, specifically as a prerequisite step before exporting timesheets in processed mode. It is the only way to set the timesheet_period_definition vendor setting. Use account_get first to see the list of valid definition indices and keys, and the current active window.

## Known failure modes

- Invalid definition index (outside 0-11 range) returns an error
- Invalid key string that doesn't match a known period type
- Wallet does not own the org — org ownership is tied to the paying wallet on first call
- Duplicate call without idempotency key may cause unexpected state if mid-flight
- API returns error if org is not yet provisioned and wallet has no balance

## How this service works

ZenSched `account_set_payroll_period` — Set the org payroll period (vendor timesheet_period_definition). Required before mode=processed timesheet exports. Pass definition (0-11) or key (e.g. weekly_monday). Call account_get to see options and current window. Pay-per-call $0.01 USDC; the paying wallet owns the org (auto-provisioned on first call). Catalog: https://mcp.zensched.com/x402/tools

## Output

Returns the updated org account state reflecting the newly configured payroll period definition, including the current timesheet period window and any relevant billing confirmation for the $0.01 USDC pay-per-call charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "title": "account_set_payroll_periodArguments",
     "properties": {
      "key": {
       "type": "string",
       "title": "Key",
       "default": ""
      },
      "definition": {
       "type": "integer",
       "title": "Definition",
       "default": -1
      },
      "idempotency_key": {
       "type": "string",
       "title": "Idempotency Key",
       "default": ""
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zensched-account-set-payroll-period-d7bfcb3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp.zensched.com](https://www.zero.xyz/host/mcp.zensched.com/llms.txt)
