{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rutter/json-schema/rutter-create-entity-with-custom-fields-page-response-schema.json",
  "title": "CreateEntityWithCustomFieldsPageResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rutter-accounting-api-openapi.yml#/components/schemas/CreateEntityWithCustomFieldsPageResponse",
  "type": "object",
  "properties": {
    "other_entity_fields": {
      "type": "string",
      "description": "Other fields for this entity."
    },
    "line_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "other_line_item_fields": {
            "type": "string",
            "description": "Other fields for this entity line items."
          }
        },
        "required": [
          "other_line_item_fields"
        ],
        "additionalProperties": false
      }
    },
    "platform_data": {
      "type": "object",
      "properties": {
        "custom_field_key": {
          "type": "string",
          "description": "The value for this entity top-level custom field that should match the type specified on the structured schema of this entity."
        },
        "other_platform_fields": {
          "type": "string",
          "description": "Platform fields for this entity."
        },
        "sublist_key": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "line_item_custom_field_key": {
                "type": "string",
                "description": "The value for this entity line item custom field that should match the type specified on the structured schema of this entity."
              },
              "other_sublist_fields": {
                "type": "string",
                "description": "Sublist fields for this entity."
              }
            },
            "required": [
              "line_item_custom_field_key",
              "other_sublist_fields"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "custom_field_key",
        "other_platform_fields",
        "sublist_key"
      ],
      "additionalProperties": false,
      "description": "Platform data for this entity. You can get this on any endpoint by using the `expand=platform_data` query parameter."
    }
  },
  "required": [
    "other_entity_fields",
    "line_items",
    "platform_data"
  ]
}