{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helloasso/json-schema/helloasso-hello-asso-api-v5-common-models-statistics-item-detail-schema.json",
  "title": "HelloAsso.Api.V5.Common.Models.Statistics.ItemDetail",
  "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.Statistics.ItemDetail",
  "type": "object",
  "properties": {
    "order": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.OrderLight"
    },
    "payer": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.Payer"
    },
    "payments": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.ItemPayment"
      },
      "description": "Payments linked to this item"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "user": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.User"
    },
    "priceCategory": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PriceCategory"
    },
    "minAmount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Minimum amount that was specified on the tier (in cents)",
      "format": "int32"
    },
    "discount": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.ItemDiscount"
    },
    "customFields": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.ItemCustomField"
      },
      "description": "Custom fields related to this item"
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.ItemOption"
      },
      "description": "Extra options taken with this item"
    },
    "ticketUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Ticket Url"
    },
    "qrCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "The item QrCode (for ticket scanning only)"
    },
    "membershipCardUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Membership Card Url"
    },
    "dayOfLevy": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The day of levy for monthly donation only",
      "format": "int32"
    },
    "tierDescription": {
      "type": [
        "string",
        "null"
      ],
      "description": "Tier description"
    },
    "tierId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "comment": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "integer",
      "description": "ID of the Item",
      "format": "int32"
    },
    "amount": {
      "type": "integer",
      "description": "Total item Price in cents (after discount without extra options)",
      "format": "int32"
    },
    "type": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.TierType"
    },
    "initialAmount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The raw amount (without reduction)",
      "format": "int32"
    },
    "state": {
      "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.ItemState"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "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.Enums.FieldType": {
      "enum": [
        "Date",
        "TextInput",
        "FreeText",
        "ChoiceList",
        "File",
        "YesNo",
        "Phone",
        "Zipcode",
        "Number"
      ],
      "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.ItemState": {
      "enum": [
        "Waiting",
        "Processed",
        "Registered",
        "Deleted",
        "Unknown",
        "Canceled",
        "Refused",
        "Abandoned"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.OperationState": {
      "enum": [
        "Unknown",
        "Init",
        "Processing",
        "Processed",
        "Error",
        "InternalError",
        "Refused",
        "Aborted",
        "Canceled"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.OrganizationType": {
      "enum": [
        "Association1901Rig",
        "Association1901Rup",
        "Association1901",
        "FondationRup",
        "FondDotation",
        "FondationSousEgide",
        "FondationScientifique",
        "FondationPartenariale",
        "FondationUniversitaire",
        "FondationHospitaliere",
        "Association1905",
        "Association1905Rup",
        "Entreprise",
        "Cooperative",
        "Etablissement",
        "Association1908",
        "Association1908Rig",
        "Association1908Rup",
        "AssociationMilitaire",
        "AssociationProprietaire",
        "Collectivités",
        "ComiteEntreprise",
        "CSE",
        "FabriqueEglise",
        "FondsPerenite",
        "GIE",
        "GIP",
        "MenseCuriale",
        "SCIC",
        "SCOP",
        "Autres",
        "EPA"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentCashOutState": {
      "enum": [
        "MoneyIn",
        "CantTransferReceiverFull",
        "Transfered",
        "Refunded",
        "Refunding",
        "WaitingForCashOutConfirmation",
        "CashedOut",
        "Unknown",
        "Contested",
        "TransferInProgress"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentMeans": {
      "enum": [
        "None",
        "Card",
        "Sepa",
        "Check",
        "Cash",
        "BankTransfer",
        "Other"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentState": {
      "enum": [
        "Pending",
        "Authorized",
        "Refused",
        "Unknown",
        "Registered",
        "Error",
        "Refunded",
        "Refunding",
        "Waiting",
        "Canceled",
        "Contested",
        "WaitingBankValidation",
        "WaitingBankWithdraw",
        "Abandoned",
        "WaitingAuthentication",
        "AuthorizedPreprod",
        "Corrected",
        "Deleted",
        "Inconsistent",
        "NoDonation",
        "Init"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PaymentType": {
      "enum": [
        "Offline",
        "Credit",
        "Debit"
      ],
      "type": "string"
    },
    "HelloAsso.Api.V5.Common.Models.Enums.PriceCategory": {
      "enum": [
        "Fixed",
        "Pwyw",
        "Free"
      ],
      "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.Statistics.ItemCustomField": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.FieldType"
        },
        "answer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Participant or user answer"
        }
      },
      "additionalProperties": false,
      "description": "Custom field associated with the item or option"
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.ItemDiscount": {
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The discount code applied on the item"
        },
        "amount": {
          "type": "integer",
          "description": "The discount amount in cents",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.ItemOption": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the option"
        },
        "amount": {
          "type": "integer",
          "description": "Amount of the option in cents",
          "format": "int32"
        },
        "priceCategory": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PriceCategory"
        },
        "isRequired": {
          "type": "boolean",
          "description": "Option is required or optional"
        },
        "customFields": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.ItemCustomField"
          },
          "description": "Custom fields related to this option"
        },
        "optionId": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false,
      "description": "ItemOption class"
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.ItemPayment": {
      "type": "object",
      "properties": {
        "cashOutState": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentCashOutState"
        },
        "shareAmount": {
          "type": "integer",
          "description": "Amount of the item and extra options payed on this payment term (in cents)",
          "format": "int32"
        },
        "id": {
          "type": "integer",
          "description": "The ID of the payment",
          "format": "int32"
        },
        "amount": {
          "type": "integer",
          "description": "Total Amount of the payment (in cents)",
          "format": "int32"
        },
        "amountTip": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Tip Amount of the payment (in cents)",
          "format": "int32"
        },
        "date": {
          "type": "string",
          "description": "Date of the payment",
          "format": "date-time"
        },
        "paymentMeans": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentMeans"
        },
        "installmentNumber": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Indicates the payment number (useful in the case of an order comprising payments with installments)",
          "format": "int32"
        },
        "state": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentState"
        },
        "type": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentType"
        },
        "meta": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
        },
        "paymentOffLineMean": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.PaymentMeans"
        },
        "refundOperations": {
          "title": "List<RefundOperationLightModel>",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Statistics.RefundOperationLightModel"
          },
          "description": "The refund operations information for the specific payment."
        }
      },
      "additionalProperties": false,
      "description": "Payment linked to the item"
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.OrderLight": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The ID of the Order",
          "format": "int32"
        },
        "date": {
          "type": "string",
          "description": "Order creation date",
          "format": "date-time"
        },
        "formSlug": {
          "type": [
            "string",
            "null"
          ],
          "description": "FormSlug (lowercase name of the form without special characters)"
        },
        "formType": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.FormType"
        },
        "organizationName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The organization name."
        },
        "organizationSlug": {
          "type": [
            "string",
            "null"
          ],
          "description": "OrganizationSlug (lowercase name of the organization without special characters)"
        },
        "organizationType": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.OrganizationType"
        },
        "organizationIsUnderColucheLaw": {
          "type": "boolean",
          "description": "Whether or not the organization is subject to the coluche law"
        },
        "checkoutIntentId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Checkout intent Id if available",
          "format": "int32"
        },
        "meta": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.Payer": {
      "type": "object",
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets Address"
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets City"
        },
        "zipCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets ZipCode"
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets Country"
        },
        "company": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets Company"
        },
        "dateOfBirth": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or Sets date of birth",
          "format": "date-time"
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.RefundOperationLightModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The refund operation identifier.",
          "format": "int32"
        },
        "amount": {
          "type": "integer",
          "description": "The amount for this refund.",
          "format": "int32"
        },
        "amountTip": {
          "type": "integer",
          "description": "The amount tip for this refund.",
          "format": "int32"
        },
        "status": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Enums.OperationState"
        },
        "meta": {
          "$ref": "#/$defs/HelloAsso.Api.V5.Common.Models.Common.MetaModel"
        }
      },
      "additionalProperties": false,
      "description": "The refund operation with the Id, amount, amount tip and the status."
    },
    "HelloAsso.Api.V5.Common.Models.Statistics.User": {
      "type": "object",
      "properties": {
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}