# PaidPilot Timesheet-to-Invoice Converter

> PaidPilot Timesheet-to-Invoice Converter is a paid API for AI agents from api.paidpilot.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Converts timesheet entries (hours, rates, expenses) into a validated invoice JSON with computed totals, ready to render as a PDF.

## Facts

- Endpoint: POST https://api.paidpilot.io/v1/invoice-from-timesheet?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paidpilot-timesheet-to-invoice-converter-f2a6b6a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f6t6KenQzfrHjBIWEwm2k

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 paidpilot-timesheet-to-invoice-converter-f2a6b6a8 -d '<json body>'
```

Example prompt: Turn my timesheet into a validated invoice JSON: I'm Jane Doe Consulting (jane@janedoe.com), billing Acme Corp (acme@acmecorp.com) for 8 hours of 'Backend API development' at $150/hr on 2024-06-03, plus a $50 software expense — Net 30 terms, USD.

## When to prefer this

Choose this endpoint when you have raw timesheet data (hours, rates, descriptions) that needs to be aggregated, validated, and structured into a complete invoice JSON before PDF generation. It is the right choice when billing logic — totals, due dates from terms, expenses, discounts — needs to be computed automatically rather than manually. Prefer it over a generic invoice builder when input is time-based entries rather than fixed line items.

## Known failure modes

- Missing required 'entries' array or empty entries array returns validation error
- Hours value of 0 or negative rejected (exclusiveMinimum: 0)
- Invalid email format for buyer or seller returns schema validation error
- Invalid date format (non YYYY-MM-DD) in entries or due_date rejected
- Conflicting due_date and terms fields may produce unexpected due date
- Rate or amount exceeding maximum bounds returns validation error
- More than 500 time entries or 100 expenses triggers maxItems error
- Missing seller.name or buyer.name (required fields) returns error

## How this service works

PaidPilot Invoice API: Timesheet to invoice JSON. Time entries (hours x rate, optional per-entry rounding, grouping by description, expenses, tax, terms) become a validated invoice JSON with totals, ready to POST to /v1/invoice.pdf for the PDF.

## Output

Returns a validated invoice JSON object containing structured line items with per-entry totals, subtotal, expense breakdown, discount applied, tax amount, grand total, computed due date from terms, buyer/seller details, currency, and notes — formatted and ready to POST to /v1/invoice.pdf for PDF rendering.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "buyer": {
   "type": "object",
   "required": [
    "name"
   ],
   "properties": {
    "name": {
     "type": "string",
     "maxLength": 120,
     "minLength": 1
    },
    "email": {
     "type": "string",
     "format": "email",
     "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
     "maxLength": 254
    },
    "phone": {
     "type": "string",
     "maxLength": 40
    },
    "tax_id": {
     "type": "string",
     "maxLength": 60
    },
    "address": {
     "type": "string",
     "maxLength": 400
    }
   }
  },
  "notes": {
   "type": "string",
   "maxLength": 2000
  },
  "terms": {
   "type": "string",
   "maxLength": 40,
   "minLength": 1,
   "description": "e.g. \"Net 15\"; sets due_date from issue_date (early-pay discounts are not applied to the invoice)"
  },
  "seller": {
   "type": "object",
   "required": [
    "name"
   ],
   "properties": {
    "name": {
     "type": "string",
     "maxLength": 120,
     "minLength": 1
    },
    "email": {
     "type": "string",
     "format": "email",
     "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
     "maxLength": 254
    },
    "phone": {
     "type": "string",
     "maxLength": 40
    },
    "tax_id": {
     "type": "string",
     "maxLength": 60
    },
    "address": {
     "type": "string",
     "maxLength": 400
    }
   }
  },
  "entries": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "description",
     "hours"
    ],
    "properties": {
     "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "rate": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     },
     "hours": {
      "type": "number",
      "maximum": 1000,
      "exclusiveMinimum": 0
     },
     "description": {
      "type": "string",
      "maxLength": 250,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500,
   "minItems": 1
  },
  "currency": {
   "type": "string",
   "default": "USD"
  },
  "discount": {
   "type": "number",
   "maximum": 1000000000,
   "minimum": 0
  },
  "due_date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "YYYY-MM-DD; or give terms instead"
  },
  "expenses": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "des
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paidpilot-timesheet-to-invoice-converter-f2a6b6a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.paidpilot.io](https://www.zero.xyz/host/api.paidpilot.io/llms.txt)
