> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexprice.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List reminder drafts

> Use when you need the payment reminder of each overdue invoice with its tone, text and status. A reminder nobody acted on is rendered when read and stored nowhere; only edits and decisions are stored. The id of a reminder is its invoice id. The list is paged and nothing is sent. Order: status=approved lists the newest approval first (ties by invoice id); every other list puts the largest remaining balance first (ties by invoice id). Approvals made after as_of are left out of the list and the summary. from and to narrow the list and the summary by due date (invoices without a due date are left out when either is given); The summary (counts per status, totals per currency) follows from, to, currency and q like the board, and ignores status and customer_id so the status tabs count every status; available_currencies lists the currencies of open invoices and of invoices paid in the last 7 days, regardless of filters.



## OpenAPI

````yaml https://swagger.flexprice.io get /collections/reminders
openapi: 3.0.1
info:
  title: Flexprice API
  description: Flexprice API Service
  contact:
    name: API Support
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1.0'
servers:
  - url: https://us.api.flexprice.io/v1
    description: US Region
  - url: https://api.cloud.flexprice.io/v1
    description: India Region
  - url: https://canada.api.flexprice.io/v1
    description: Canada Region
  - url: https://eu.api.flexprice.io/v1
    description: EU Region
security: []
paths:
  /collections/reminders:
    get:
      tags:
        - Collections
      summary: List reminder drafts
      description: >-
        Use when you need the payment reminder of each overdue invoice with its
        tone, text and status. A reminder nobody acted on is rendered when read
        and stored nowhere; only edits and decisions are stored. The id of a
        reminder is its invoice id. The list is paged and nothing is sent.
        Order: status=approved lists the newest approval first (ties by invoice
        id); every other list puts the largest remaining balance first (ties by
        invoice id). Approvals made after as_of are left out of the list and the
        summary. from and to narrow the list and the summary by due date
        (invoices without a due date are left out when either is given); The
        summary (counts per status, totals per currency) follows from, to,
        currency and q like the board, and ignores status and customer_id so the
        status tabs count every status; available_currencies lists the
        currencies of open invoices and of invoices paid in the last 7 days,
        regardless of filters.
      operationId: listReminderDrafts
      parameters:
        - name: status
          in: query
          description: pending, approved, held or skipped
          schema:
            type: string
        - name: q
          in: query
          description: Match customer name, email or invoice number
          schema:
            type: string
        - name: customer_id
          in: query
          description: Customer ID
          schema:
            type: string
        - name: currency
          in: query
          description: Currency code
          schema:
            type: string
        - name: limit
          in: query
          description: Page size (1-100, default 15)
          schema:
            type: integer
        - name: page
          in: query
          description: >-
            Page number, from 1 (default 1); page times limit may not exceed
            5000
          schema:
            type: integer
        - name: from
          in: query
          description: >-
            Start of the due date range, YYYY-MM-DD (UTC, inclusive); applies to
            the list and the summary
          schema:
            type: string
        - name: to
          in: query
          description: >-
            End of the due date range, YYYY-MM-DD (UTC, inclusive); at most 5
            years after from
          schema:
            type: string
        - name: as_of
          in: query
          description: >-
            as_of (RFC3339) of an earlier response; within the last 24 hours and
            not in the future
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRemindersResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '403':
          description: Collections is not enabled for this environment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: go
          label: Go
          source: "package main\n\nimport(\n\t\"context\"\n\tflexprice \"github.com/flexprice/go-sdk/v2\"\n\t\"github.com/flexprice/go-sdk/v2/models/dtos\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := flexprice.New(\n        flexprice.WithSecurity(\"<YOUR_API_KEY_HERE>\"),\n    )\n\n    res, err := s.Collections.ListReminderDrafts(ctx, dtos.ListReminderDraftsRequest{})\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.ListRemindersResponse != nil {\n        // handle response\n    }\n}"
        - lang: python
          label: Python
          source: |-
            from flexprice import Flexprice


            with Flexprice(
                api_key_auth="<YOUR_API_KEY_HERE>",
            ) as f_client:

                res = f_client.collections.list_reminder_drafts()

                # Handle response
                print(res)
        - lang: typescript
          label: TypeScript
          source: |-
            import { Flexprice } from "@flexprice/sdk";

            const flexprice = new Flexprice({
              apiKeyAuth: "<YOUR_API_KEY_HERE>",
            });

            async function run() {
              const result = await flexprice.collections.listReminderDrafts();

              console.log(result);
            }

            run();
components:
  schemas:
    ListRemindersResponse:
      type: object
      properties:
        as_of:
          type: string
        available_currencies:
          type: array
          description: >-
            AvailableCurrencies lists the currencies of all open and recently
            paid invoices, before q, currency and range apply.
          items:
            type: string
        drafts:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceReminderResponse'
        has_more:
          type: boolean
        page:
          type: integer
        range:
          $ref: '#/components/schemas/CollectionsRange'
        summary:
          $ref: '#/components/schemas/ReminderSummary'
    errors.ErrorResponse:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/errors.ErrorCode'
        http_status_code:
          type: integer
        message:
          type: string
      x-speakeasy-name-override: ErrorResponse
    InvoiceReminderResponse:
      type: object
      properties:
        amount:
          type: string
        approved_at:
          type: string
          format: date-time
        body:
          type: string
        created_at:
          type: string
          description: >-
            CreatedAt and UpdatedAt are omitted until a person acts on the
            reminder.
          format: date-time
        currency:
          type: string
        customer_email:
          type: string
        customer_id:
          type: string
        customer_name:
          type: string
        days_overdue:
          type: integer
        due_date:
          type: string
          format: date-time
        edited:
          type: boolean
          description: >-
            Edited is true when the mail differs from what the system wrote; the
            Original fields then hold the system's version.
        email:
          $ref: '#/components/schemas/ReminderEmailStatus'
        id:
          type: string
        invoice_id:
          type: string
        invoice_number:
          type: string
        original_body:
          type: string
        original_subject:
          type: string
        original_tone:
          $ref: '#/components/schemas/types.ReminderTone'
        status:
          $ref: '#/components/schemas/types.ReminderStatus'
        status_reason:
          type: string
        subject:
          type: string
        tone:
          $ref: '#/components/schemas/types.ReminderTone'
        tone_reason:
          type: string
          description: >-
            ToneReason explains the tone shown: the invoice's age, "Tone set to
            firm by you", or "Approved with a firm tone, kept as approved". It
            says nothing about edits or status; use edited and status_reason.
        updated_at:
          type: string
          format: date-time
    CollectionsRange:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
    ReminderSummary:
      type: object
      properties:
        approved:
          type: integer
        customer_count:
          type: integer
        held:
          type: integer
        invoice_count:
          type: integer
        overdue_totals:
          type: array
          items:
            $ref: '#/components/schemas/CollectionsCurrencyTotal'
        skipped:
          type: integer
        to_review:
          type: integer
    errors.ErrorCode:
      type: string
      enum:
        - http_client_error
        - system_error
        - internal_error
        - not_found
        - already_exists
        - version_conflict
        - validation_error
        - invalid_operation
        - permission_denied
        - database_error
        - service_unavailable
        - too_many_requests
        - not_implemented
      x-enum-varnames:
        - ErrCodeHTTPClient
        - ErrCodeSystemError
        - ErrCodeInternalError
        - ErrCodeNotFound
        - ErrCodeAlreadyExists
        - ErrCodeVersionConflict
        - ErrCodeValidation
        - ErrCodeInvalidOperation
        - ErrCodePermissionDenied
        - ErrCodeDatabase
        - ErrCodeServiceUnavailable
        - ErrCodeTooManyRequests
        - ErrCodeNotImplemented
      x-speakeasy-name-override: ErrorCode
    ReminderEmailStatus:
      type: object
      properties:
        sent_at:
          type: string
          format: date-time
        status:
          $ref: '#/components/schemas/types.EmailDeliveryStatus'
        status_reason:
          type: string
        to:
          type: array
          items:
            type: string
    types.ReminderTone:
      type: string
      enum:
        - friendly
        - firm
        - final
      x-enum-varnames:
        - ReminderToneFriendly
        - ReminderToneFirm
        - ReminderToneFinal
      x-speakeasy-name-override: ReminderTone
    types.ReminderStatus:
      type: string
      enum:
        - pending
        - approved
        - held
        - skipped
      x-enum-varnames:
        - ReminderStatusPending
        - ReminderStatusApproved
        - ReminderStatusHeld
        - ReminderStatusSkipped
      x-speakeasy-name-override: ReminderStatus
    CollectionsCurrencyTotal:
      type: object
      properties:
        amount:
          type: string
        currency:
          type: string
    types.EmailDeliveryStatus:
      type: string
      enum:
        - queued
        - sent
        - delivery_delayed
        - delivered
        - bounced
        - complained
        - failed
        - suppressed
        - skipped
      x-enum-varnames:
        - EmailDeliveryStatusQueued
        - EmailDeliveryStatusSent
        - EmailDeliveryStatusDeliveryDelayed
        - EmailDeliveryStatusDelivered
        - EmailDeliveryStatusBounced
        - EmailDeliveryStatusComplained
        - EmailDeliveryStatusFailed
        - EmailDeliveryStatusSuppressed
        - EmailDeliveryStatusSkipped
      x-speakeasy-name-override: EmailDeliveryStatus
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Enter your API key in the format *x-api-key &lt;api-key&gt;**
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.