> ## Documentation Index
> Fetch the complete documentation index at: https://yuno-3979e326-docs-agent-readable-descriptions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Report

> Generate a report in the sandbox environment to test your integration.



## OpenAPI

````yaml /openapi/yuno_sandbox_tested.json POST /v1/reports
openapi: 3.1.0
info:
  title: Yuno Payments API
  version: 1.0.0
  description: >
    The Yuno Payments API is built around REST principles, using standard HTTP
    methods and JSON payloads.


    ## Authentication

    All requests require two headers:

    ```

    public-api-key: YOUR_PUBLIC_KEY

    private-secret-key: YOUR_PRIVATE_KEY

    ```


    ## Idempotency

    Payment mutations (create, capture, cancel, refund, payout) require an
    `X-Idempotency-Key` header (UUID).

    The API stores the key and returns the same response for duplicate requests
    within 24 hours.


    ## Environments

    | Environment | Base URL |

    |-------------|----------|

    | Sandbox | `https://api-sandbox.y.uno/v1` |

    | Production | `https://api.y.uno/v1` |
  contact:
    name: Yuno Support
    url: https://docs.y.uno
  license:
    name: Proprietary
servers:
  - url: https://api-sandbox.y.uno
    description: Sandbox
  - url: https://api.y.uno
    description: Production
security:
  - PublicApiKey: []
    PrivateSecretKey: []
tags:
  - name: Customers
    description: Create and manage customer records.
  - name: Checkout Sessions
    description: Initialize the Yuno SDK on the front-end.
  - name: Payment Methods
    description: Enroll and manage vaulted payment methods.
  - name: Payments
    description: Create and manage payment transactions.
  - name: Payment Links
    description: Hosted payment pages requiring no SDK.
  - name: Subscriptions
    description: Recurring billing management.
  - name: Payouts
    description: Disburse funds to individuals or entities.
  - name: Reports
    description: Generate and download transaction reports.
  - name: Currency Conversion
    description: Dynamic currency conversion (DCC).
paths:
  /v1/reports:
    post:
      tags:
        - Reports
      summary: Create Report
      description: >
        Generates an asynchronous report. Poll **Get Report** until `status:
        COMPLETED`, then download.


        **Dates must be exactly 24 characters:** `2026-03-01T00:00:00.000Z`
      operationId: create-report
      parameters:
        - $ref: '#/components/parameters/OrgCode'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateReportRequest'
            example:
              type: TRANSACTIONS
              start_date: '2026-03-01T00:00:00.000Z'
              end_date: '2026-03-31T23:59:59.000Z'
              account_id: YOUR_ACCOUNT_ID
              transaction_type: PURCHASE,REFUND,CAPTURE
      responses:
        '201':
          description: Report created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
components:
  parameters:
    OrgCode:
      name: X-Organization-Code
      in: header
      required: true
      schema:
        type: string
      description: Required for all Reports API endpoints.
  schemas:
    CreateReportRequest:
      type: object
      required:
        - type
        - start_date
        - end_date
      properties:
        type:
          type: string
          enum:
            - PAYMENTS
            - TRANSACTIONS
            - PAYOUTS
            - SETTLEMENTS
            - TRANSACTION_RECONCILIATION
            - COMMUNICATIONS
        start_date:
          type: string
          minLength: 24
          maxLength: 24
          example: '2026-03-01T00:00:00.000Z'
          description: Must be exactly 24 characters
        end_date:
          type: string
          minLength: 24
          maxLength: 24
          example: '2026-03-31T23:59:59.000Z'
          description: Must be exactly 24 characters
        account_id:
          type: string
          description: Comma-separated UUIDs for multiple accounts
        payment_status:
          type: string
          description: 'Comma-separated: CREATED,SUCCEEDED,DECLINED,CANCELED,REFUNDED'
        transaction_type:
          type: string
          description: 'Comma-separated: PURCHASE,REFUND,CAPTURE,CANCEL,VERIFY'
        currency:
          type: string
          description: Comma-separated ISO 4217 codes
        country:
          type: string
          description: Comma-separated ISO 3166-1 codes
    Report:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        status:
          type: string
          enum:
            - IN_PROCESS
            - COMPLETED
            - FAILED
        start_date:
          type: string
        end_date:
          type: string
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time

````