{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ireceipt-pro/json-schema/ireceipt-pro-basic-request-body-schema.json",
  "title": "BasicRequestBody",
  "description": "Settings",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ireceipt-pro-openapi.yml#/components/schemas/BasicRequestBody",
  "type": "object",
  "properties": {
    "variables": {
      "$ref": "#/$defs/BasicTemplateVars"
    },
    "format": {
      "$ref": "#/$defs/BasicTemplateFormat"
    },
    "size": {
      "$ref": "#/$defs/BasicTemplateSize"
    }
  },
  "$defs": {
    "BasicTemplateFormat": {
      "description": "Page format (default A4 Portrait)",
      "type": "string",
      "enum": [
        "a1-portrait",
        "a1-landscape",
        "a2-portrait",
        "a2-landscape",
        "a3-portrait",
        "a3-landscape",
        "a4-portrait",
        "a4-landscape",
        "a5-portrait",
        "a5-landscape",
        "a6-portrait",
        "a6-landscape",
        "a7-portrait",
        "a7-landscape"
      ]
    },
    "BasicTemplateSize": {
      "description": "Page size (default 796px*1126 px), less priority than \"format\" option",
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "number"
        },
        "height": {
          "type": "number"
        }
      }
    },
    "BasicTemplateVars": {
      "description": "Template Variables that need to be transferred to a public template or you have used in your own template.",
      "type": "object",
      "additionalProperties": true
    }
  }
}