# List time cards for a business-date window

Requires scope `labor:read`. Includes breaks and worked/overtime durations; the `pay` block additionally requires `labor:costs:read`. Supply exactly one of `businessDate`, `businessDates`, or `businessDateStart`+`businessDateEnd`; a window is required and may span at most 31 days (query day by day for longer spans).

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "NX Public API",
    "version": "1.0.0",
    "description": "Public marketplace API. Authenticate via POST /oauth/token (client-credentials + venueId) to obtain a short-lived bearer token, then call resource endpoints. Tokens are venue-pinned: each is scoped to a single venue and the scopes granted to that integration."
  },
  "servers": [
    {
      "url": "https://prod.api.nxapp.net/public/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Bearer token from /oauth/token."
      }
    },
    "schemas": {
      "Meta": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string"
          },
          "cursor": {
            "type": "string",
            "description": "Opaque pagination cursor; present when more results exist."
          }
        },
        "required": [
          "requestId"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable, machine-readable error code (e.g. RESOURCE_NOT_FOUND)."
              },
              "message": {
                "type": "string"
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "requestId": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "requestId"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "TimeCardBreak": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "venueBreakId": {
            "type": "string"
          },
          "breakName": {
            "type": "string"
          },
          "isPaid": {
            "type": "boolean"
          },
          "isRequired": {
            "type": "boolean"
          },
          "isSatisfied": {
            "type": "boolean"
          },
          "isViolated": {
            "type": "boolean"
          },
          "breakStartAt": {
            "type": "string"
          },
          "breakEndAt": {
            "type": "string"
          },
          "requiredAt": {
            "type": "string"
          },
          "violationAt": {
            "type": "string"
          },
          "requiredDurationMinutes": {
            "type": "number"
          },
          "paidDurationMinutes": {
            "type": "number"
          },
          "unpaidDurationMinutes": {
            "type": "number"
          }
        },
        "required": [
          "id"
        ]
      },
      "TimeCard": {
        "type": "object",
        "description": "`pay` (wages) is present only when the token also carries scope `labor:costs:read`.",
        "properties": {
          "id": {
            "type": "string"
          },
          "businessDate": {
            "type": "string"
          },
          "employeeId": {
            "type": "string"
          },
          "jobId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "isOpen": {
            "type": "boolean"
          },
          "isCompletedTimeCard": {
            "type": "boolean"
          },
          "isAutomaticClockOut": {
            "type": "boolean"
          },
          "clockInAt": {
            "type": "string"
          },
          "clockOutAt": {
            "type": "string"
          },
          "laborWeekStartAt": {
            "type": "string"
          },
          "laborWeekEndAt": {
            "type": "string"
          },
          "payrollPeriodId": {
            "type": "string"
          },
          "durations": {
            "type": "object",
            "description": "Worked/break/overtime minutes."
          },
          "breaks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeCardBreak"
            }
          },
          "pay": {
            "type": "object",
            "description": "Wage totals and rates. Requires scope labor:costs:read."
          }
        },
        "required": [
          "id",
          "businessDate",
          "employeeId"
        ]
      }
    }
  },
  "paths": {
    "/timecards": {
      "get": {
        "summary": "List time cards for a business-date window",
        "description": "Requires scope `labor:read`. Includes breaks and worked/overtime durations; the `pay` block additionally requires `labor:costs:read`. Supply exactly one of `businessDate`, `businessDates`, or `businessDateStart`+`businessDateEnd`; a window is required and may span at most 31 days (query day by day for longer spans).",
        "parameters": [
          {
            "name": "businessDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "A single business date, YYYY-MM-DD."
          },
          {
            "name": "businessDates",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated business dates, e.g. 2026-09-01,2026-09-03. Need not be contiguous."
          },
          {
            "name": "businessDateStart",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Inclusive start of a business-date range. Must be sent with businessDateEnd. Max 31 days."
          },
          {
            "name": "businessDateEnd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Inclusive end of a business-date range. Must be sent with businessDateStart. Max 31 days."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 500
            },
            "description": "Page size (default 100, max 500)."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Opaque pagination cursor from a prior response's meta.cursor."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TimeCard"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 150,
      "2": 23,
      "3": 41,
      "4": 164,
      "5": 38,
      "6": 175,
      "7": 92,
      "8": 201,
      "9": 202,
      "10": 43,
      "11": 17
    }
  }
}
```