---
title: "Age-Calculation-Request"
url: "https://developers.zinnia.com/apis/illustration-3-0-8/versions/b96a49c1-73c5-46d3-8968-fe603081d524/schemas/Age-Calculation-Request"
---

> Full API specification: https://developers.zinnia.com/apis/illustration-3-0-8/versions/b96a49c1-73c5-46d3-8968-fe603081d524.md

# Age-Calculation-Request

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Illustration Generation
  version: 3.5.3
servers:
  - url: https://dev.api.zinnia.io
    description: Development
components:
  schemas:
    Age-Calculation-Method:
      type: string
      enum:
        - AGE_LAST
        - AGE_NEAREST
      description: Age calculation method - AGE_LAST for age at last birthday,
        AGE_NEAREST for age at nearest birthday
      example: AGE_LAST
    Age-Calculation-Request:
      type: object
      required:
        - dateOfBirth
        - asOfDate
        - calculationMethod
      properties:
        dateOfBirth:
          type: string
          format: date
          description: Date of birth in ISO-8601 format
          example: 1990-08-25
        asOfDate:
          type: string
          format: date
          description: As-of date in ISO-8601 format
          example: 2025-08-25
        calculationMethod:
          $ref: "#/components/schemas/Age-Calculation-Method"
```
