{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-payout-batch-create-schema.json",
  "title": "PayoutBatchCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/affiliaterail-com-payout-batches-api-openapi.yml#/components/schemas/PayoutBatchCreate",
  "type": "object",
  "properties": {
    "program_id": {
      "type": "string",
      "pattern": "^(sample_)?prg_",
      "description": "Prefixed id (`prg_…`)"
    },
    "period_end": {
      "type": "string",
      "format": "date-time",
      "description": "Last instant of the earning period"
    },
    "period_start": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601, UTC"
    },
    "partner_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(sample_)?part_",
        "description": "Prefixed id (`part_…`)"
      }
    },
    "group_id": {
      "type": "string",
      "pattern": "^(sample_)?grp_",
      "description": "Prefixed id (`grp_…`)"
    },
    "ignore_threshold": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "program_id",
    "period_end"
  ]
}