{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/1099policy-com/json-schema/1099policy-com-get-api-v1-invoices-invoice-response-schema.json",
  "title": "GetApiV1InvoicesInvoiceResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/1099policy-com-openapi-generated.yml#/components/schemas/GetApiV1InvoicesInvoiceResponse",
  "type": "object",
  "properties": {
    "contractor": {
      "type": "string",
      "description": "ID of the contractor."
    },
    "created": {
      "type": "integer"
    },
    "gross_pay": {
      "type": "integer",
      "description": "The gross pay that the contractor earned in the last pay period. A positive integer representing the gross pay (e.g., 15000 cents to charge $150.00). The minimum amount is 100 cents US. The maximum amount is 100000000 cents US ($1,000,000)."
    },
    "id": {
      "type": "string"
    },
    "job": {
      "type": "string",
      "description": "ID of the job that the contractor was paid to do."
    },
    "paycycle_enddate": {
      "type": "integer",
      "description": "Pay period end date. Measured in seconds since the Unix epoch."
    },
    "paycycle_startdate": {
      "type": "integer",
      "description": "Pay period start date. Measured in seconds since the Unix epoch."
    },
    "premium_due": {
      "type": "integer",
      "description": "Premium due for pay cycle. Calculated as a percentage of gross pay for the period. A positive integer representing the premium due (e.g., 150 cents to charge $1.50). The minimum amount is 100 cents US."
    },
    "purchase_order_number": {
      "type": "string",
      "description": "The purchase order number for this invoice. Used for dashboard display and agency-pay billing. By default an invoice inherits this from the `purchase_order_number` set on the job's `custom_metadata` when it is created. It can be overridden per invoice on create or update by sending `purchase_order_number` (an explicit value wins over the job default), or cleared by sending an empty string (`\"\"`). Omitting the field on update leaves the current value unchanged. When a wage change re-prices an invoice, the replacement invoice keeps this value rather than re-inheriting it from the job. Precedence: explicit value on the invoice, then the value carried forward when an invoice is re-priced, then the job's `custom_metadata` default."
    }
  }
}