> ## Documentation Index
> Fetch the complete documentation index at: https://yn-c9bb3266.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Report

> Generates a new report for the specified date range.

<Warning>
  The `date_range.from` and `date_range.to` fields require **datetime format** (`yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`), not date-only format (`YYYY-MM-DD`). Example: `"2026-01-01T00:00:00.000Z"`.
</Warning>


## OpenAPI

````yaml POST /v1/reports
openapi: 3.1.0
info:
  title: Yuno Payments API
  description: >-
    Yuno payment orchestration platform — unified REST API for payments,
    checkout sessions, customers, payment methods, subscriptions, payouts,
    marketplace transfers, and banking connectivity across Latin America.
  version: 1.0.0
  contact:
    name: Yuno Support
    email: support@y.uno
    url: https://docs.y.uno
  license:
    name: Proprietary
    url: https://y.uno
servers:
  - url: https://api-sandbox.y.uno
    description: Sandbox
  - url: https://api.y.uno
    description: Production
security:
  - publicApiKey: []
    privateSecretKey: []
paths:
  /v1/reports:
    post:
      tags:
        - Reports
      summary: Create report
      description: Generates a new report for the specified date range.
      operationId: createReport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportRequest'
            example:
              date_range:
                from: '2026-02-01T00:00:00.000Z'
                to: '2026-02-28T23:59:59.999Z'
              type: TRANSACTIONS
      responses:
        '201':
          description: Report generation initiated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
              example:
                id: a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
                status: PROCESSING
                date_range:
                  from: '2026-02-01T00:00:00.000Z'
                  to: '2026-02-28T23:59:59.999Z'
                download_url: null
                created_at: '2026-03-01T12:00:00.000Z'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ReportRequest:
      type: object
      required:
        - date_range
      properties:
        date_range:
          type: object
          required:
            - from
            - to
          properties:
            from:
              type: string
              format: date-time
              description: Start date in ISO 8601 datetime format
              example: '2026-01-01T00:00:00.000Z'
            to:
              type: string
              format: date-time
              description: End date in ISO 8601 datetime format
              example: '2026-01-31T23:59:59.999Z'
          description: >-
            Date range for the report. Must use datetime format
            (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'), not date-only format.
        type:
          type: string
          description: Type of report to generate
          example: TRANSACTIONS
      example:
        date_range:
          from: '2026-02-01T00:00:00.000Z'
          to: '2026-02-28T23:59:59.999Z'
        type: TRANSACTIONS
    Report:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        status:
          type: string
          enum:
            - PROCESSING
            - COMPLETED
            - FAILED
          description: Report generation status
          example: PROCESSING
        date_range:
          type: object
          properties:
            from:
              type: string
              format: date-time
              example: '2026-02-01T00:00:00.000Z'
            to:
              type: string
              format: date-time
              example: '2026-02-28T23:59:59.999Z'
        download_url:
          type: string
          format: uri
          description: URL to download the completed report
          example: https://reports.y.uno/download/a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        created_at:
          type: string
          format: date-time
          example: '2026-03-01T12:00:00.000Z'
      example:
        id: a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        status: COMPLETED
        date_range:
          from: '2026-02-01T00:00:00.000Z'
          to: '2026-02-28T23:59:59.999Z'
        download_url: https://reports.y.uno/download/a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        created_at: '2026-03-01T12:00:00.000Z'
    Error:
      type: object
      description: >-
        Standard error envelope returned by every Yuno service for any 4xx or
        5xx response. Top level. `code` is a stable SCREAMING_SNAKE_CASE
        identifier. `messages` is always an array of strings, even when there is
        only one entry. There is no `error` wrapper, no singular `message`, no
        `type`, no `details`. See the Error handling guide for the full code
        catalog.
      required:
        - code
        - messages
      properties:
        code:
          type: string
          description: >-
            Stable, machine readable identifier. Branch on this in your client.
            Common values include `BAD_REQUEST`, `VALIDATION_ERROR`,
            `INVALID_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`,
            `TOO_MANY_REQUESTS`, `INTERNAL_ERROR`, `BAD_GATEWAY`,
            `SERVICE_UNAVAILABLE`, plus business codes like
            `CUSTOMER_ID_DUPLICATED`, `RECIPIENT_NOT_FOUND`, `INVALID_STATE`,
            and the `PROVIDER_*` family for downstream provider errors.
          example: VALIDATION_ERROR
        messages:
          type: array
          description: >-
            Human readable details. Validation errors put one entry per failed
            field, formatted `"fieldName message"`.
          items:
            type: string
          example:
            - merchant_customer_id must not be blank
      example:
        code: VALIDATION_ERROR
        messages:
          - amount must be greater than 0
          - country must not be blank
  securitySchemes:
    publicApiKey:
      type: apiKey
      in: header
      name: public-api-key
      description: Your public API key from the Yuno Dashboard
    privateSecretKey:
      type: apiKey
      in: header
      name: private-secret-key
      description: Your private secret key (server-side only)

````