{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helloasso/json-schema/helloasso-hello-asso-api-v5-common-models-forms-form-public-model-schema.json",
  "title": "HelloAsso.Api.V5.Common.Models.Forms.FormPublicModel",
  "description": "FormPublicModel class",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/helloasso-helloasso-openapi.json#/components/schemas/HelloAsso.Api.V5.Common.Models.Forms.FormPublicModel",
  "type": "object",
  "properties": {
    "organizationLogo": {
      "type": [
        "string",
        "null"
      ],
      "description": "Organization Logo"
    },
    "organizationName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Organization Name"
    },
    "tiers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Forms.TierPublicModel"
      },
      "description": "Tiers"
    },
    "activityType": {
      "type": [
        "string",
        "null"
      ],
      "description": "Activity type of the event eg. \"Atelier(s) / Stage(s)\" matching one of the provided type values <a href=\"index#!/Values/Values_Get\"> provided here</a> or a custom value is allowed."
    },
    "activityTypeId": {
      "type": "integer",
      "description": "Activity type identifier",
      "format": "int32"
    },
    "place": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.PlaceModel"
    },
    "saleEndDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The datetime (Inclusive) at which the sales end.\r\nIf null the orders will be available until the end of the campaign.",
      "format": "date-time"
    },
    "saleStartDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The datetime (Inclusive) at which the users can start placing orders.\r\nIf null the orders will be available as soon as the campaign is published.",
      "format": "date-time"
    },
    "validityType": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.MembershipValidityType"
    },
    "personalizedMessage": {
      "type": [
        "string",
        "null"
      ],
      "description": "A message customized by the organization administrator."
    },
    "banner": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.DocumentModel"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "Currency"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Short description (one line)"
    },
    "startDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The datetime of the activity start",
      "format": "date-time"
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The datetime of the activity end",
      "format": "date-time"
    },
    "logo": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.DocumentModel"
    },
    "meta": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
    },
    "state": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.FormState"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Title"
    },
    "privateTitle": {
      "type": [
        "string",
        "null"
      ],
      "description": "Private Title"
    },
    "widgetButtonUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Url of the widget button"
    },
    "widgetFullUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Url of the form widget"
    },
    "widgetVignetteHorizontalUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Url of the horizontal vignette widget"
    },
    "widgetVignetteVerticalUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Url of the vertical vignette widget"
    },
    "widgetCounterUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Url of the counter widget"
    },
    "formSlug": {
      "type": [
        "string",
        "null"
      ],
      "description": "The form slug"
    },
    "formType": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.FormType"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The form url"
    },
    "organizationSlug": {
      "type": [
        "string",
        "null"
      ],
      "description": "The organization slug"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "HelloAsso.Api.V5.Common.Models.Common.DocumentModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "fileName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The file name of document"
        },
        "publicUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "The public url of document"
        },
        "state": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.ComplianceV2.Documents.DocumentState"
        }
      },
      "additionalProperties": false,
      "description": "DocumentModel class"
    },
    "HelloAsso.Api.V5.Common.Models.Common.MetaModel": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "authorEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Common.PlaceModel": {
      "type": "object",
      "properties": {
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Address"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the place"
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "City"
        },
        "zipCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "ZipCode"
        },
        "country": {
          "maxLength": 3,
          "minLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": "3 letter country code"
        },
        "geoLocation": {
          "$ref": "#/$defs/HelloAsso.Models.Shared.GeoLocation"
        }
      },
      "additionalProperties": false,
      "description": "PlaceModel class"
    },
    "HelloAsso.Api.V5.Common.Models.ComplianceV2.Documents.DocumentState": {
      "enum": [
        "Saved",
        "Pending",
        "Rejected",
        "Accepted"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.FieldType": {
      "enum": [
        "Date",
        "TextInput",
        "FreeText",
        "ChoiceList",
        "File",
        "YesNo",
        "Phone",
        "Zipcode",
        "Number"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.FormState": {
      "enum": [
        "Public",
        "Private",
        "Draft",
        "Deleted",
        "Disabled"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.FormType": {
      "enum": [
        "CrowdFunding",
        "Membership",
        "Event",
        "Donation",
        "PaymentForm",
        "Checkout",
        "Shop"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.MembershipValidityType": {
      "enum": [
        "MovingYear",
        "Custom",
        "Illimited"
      ],
      "type": "string",
      "description": "Enum which represents the membership validity type"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentFrequencyType": {
      "enum": [
        "Single",
        "Installment",
        "Monthly"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.TierType": {
      "enum": [
        "Donation",
        "Payment",
        "Registration",
        "Membership",
        "MonthlyDonation",
        "MonthlyPayment",
        "OfflineDonation",
        "Contribution",
        "Bonus",
        "Product"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Forms.CustomFieldPublicModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Id of the customField",
          "format": "int32",
          "readOnly": true
        },
        "values": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The list of possible values if type is a CHOICE_LIST",
          "readOnly": true
        },
        "isRequired": {
          "type": "boolean",
          "description": "True if the custom field must be filled by the user before validating a cart",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.FieldType"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "The label to be displayed to the user",
          "readOnly": true
        }
      },
      "additionalProperties": false,
      "description": "A custom field can be assigned to a Tier or an ExtraOption\r\nIt is used to give extra information during the reservation of a tier"
    },
    "HelloAsso.Api.V5.Common.Models.Forms.ExtraOptionPublicModel": {
      "type": "object",
      "properties": {
        "customFields": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Forms.CustomFieldPublicModel"
          },
          "description": "List of custom fields to be filled by the user"
        },
        "id": {
          "type": "integer",
          "description": "Id",
          "format": "int32"
        },
        "price": {
          "type": "integer",
          "description": "Price of the extraOption, can be free",
          "format": "int32"
        },
        "vatRate": {
          "type": "number",
          "description": "Vat rate if applicable\r\nAmount have to be 0.10 for 10%",
          "format": "double"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the option"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description of the option"
        },
        "isRequired": {
          "type": "boolean",
          "description": "Additional option is required/mandatory",
          "readOnly": true
        }
      },
      "additionalProperties": false,
      "description": "ExtraOptionFullModel"
    },
    "HelloAsso.Api.V5.Common.Models.Forms.TermModel": {
      "type": "object",
      "properties": {
        "date": {
          "type": [
            "string",
            "null"
          ],
          "description": "Term Date",
          "format": "date-time"
        },
        "amount": {
          "type": "integer",
          "description": "Term Amount",
          "format": "int32"
        }
      },
      "additionalProperties": false,
      "description": "TermsModel class"
    },
    "HelloAsso.Api.V5.Common.Models.Forms.TierPublicModel": {
      "type": "object",
      "properties": {
        "customFields": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Forms.CustomFieldPublicModel"
          },
          "description": "List of custom fields to be filled by the user"
        },
        "extraOptions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Forms.ExtraOptionPublicModel"
          },
          "description": "List of available extra options to buy along the tier"
        },
        "id": {
          "type": "integer",
          "description": "id",
          "format": "int32"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "label"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "description"
        },
        "tierType": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.TierType"
        },
        "price": {
          "type": [
            "integer",
            "null"
          ],
          "description": "the Price in cents\r\nif price equals 0 then it is free or there is a MinAmount",
          "format": "int32"
        },
        "vatRate": {
          "type": "number",
          "description": "Vat rate if applicable\r\nAmount have to be 0.10 for 10%",
          "format": "double"
        },
        "minAmount": {
          "type": [
            "integer",
            "null"
          ],
          "description": "If set, it means the payment is free to choose, according to the specified minAmount in cents",
          "format": "int32"
        },
        "paymentFrequency": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentFrequencyType"
        },
        "maxPerUser": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Max quantity buyable in this cart",
          "format": "int32"
        },
        "meta": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
        },
        "saleStartDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "The datetime (Inclusive) at which the users can start buying this tier.\r\nIf null the tier will be available at the start of the event.",
          "format": "date-time"
        },
        "saleEndDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "The datetime (Inclusive) at which the tier is no longer available.\r\nIf null the tier will be available until the end of the event.",
          "format": "date-time"
        },
        "isEligibleTaxReceipt": {
          "type": "boolean",
          "description": "Whether this is eligible to a deduction"
        },
        "terms": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Forms.TermModel"
          },
          "description": "Terms of tier"
        },
        "picture": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.DocumentModel"
        },
        "isExcludedFromFormPaymentTerms": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "True means this tier must be paid in the initial payment, false means it can be paid in payment with installments\r\nNull when the form payment terms are disabled or not compatible with the related form"
        },
        "isFavorite": {
          "type": "boolean",
          "description": "Indicates whether this tier is marked as a favorite.\r\nUsed only in Donation form type."
        }
      },
      "additionalProperties": false,
      "description": "TierPublicModel class"
    },
    "HelloAsso.Models.Shared.GeoLocation": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    }
  }
}