> ## 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.

# Get collections board

> Use when you need every open invoice by where it stands: sent but not due, overdue (one card per invoice, split by reminder status), and paid in the last 7 days. Counts and per-currency totals cover whole columns and follow the q and currency filters; by default no cards are returned (limit 0): each column carries count and totals, and has_more is true when the column has cards to fetch with GET /collections/board/columns/{key}. With limit above 0 the first page of cards is returned too, and has_more says more cards follow. available_currencies lists the currencies of open invoices and of the invoices the Paid column can show, before q and currency apply.



## OpenAPI

````yaml https://swagger.flexprice.io get /collections/board
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/board:
    get:
      tags:
        - Collections
      summary: Get collections board
      description: >-
        Use when you need every open invoice by where it stands: sent but not
        due, overdue (one card per invoice, split by reminder status), and paid
        in the last 7 days. Counts and per-currency totals cover whole columns
        and follow the q and currency filters; by default no cards are returned
        (limit 0): each column carries count and totals, and has_more is true
        when the column has cards to fetch with GET
        /collections/board/columns/{key}. With limit above 0 the first page of
        cards is returned too, and has_more says more cards follow.
        available_currencies lists the currencies of open invoices and of the
        invoices the Paid column can show, before q and currency apply.
      operationId: getCollectionsBoard
      parameters:
        - name: limit
          in: query
          description: >-
            Cards per column in this response (0-200, default 0 = counts and
            totals only)
          schema:
            type: integer
        - name: from
          in: query
          description: >-
            Start of the date range, YYYY-MM-DD (UTC, inclusive): open columns
            by due date, Paid by paid date. Without from and to, open columns
            are unbounded and Paid is the last 7 days
          schema:
            type: string
        - name: to
          in: query
          description: >-
            End of the date range, YYYY-MM-DD (UTC, inclusive); at most 5 years
            after from
          schema:
            type: string
        - name: q
          in: query
          description: >-
            Keep receivables whose customer name, customer email or invoice
            number contains this text (case-insensitive, max 100 characters)
          schema:
            type: string
        - name: currency
          in: query
          description: Keep receivables in this currency (case-insensitive)
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionsBoardResponse'
        '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.GetCollectionsBoard(ctx, dtos.GetCollectionsBoardRequest{})\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.CollectionsBoardResponse != 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.get_collections_board()

                # 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.getCollectionsBoard();

              console.log(result);
            }

            run();
components:
  schemas:
    CollectionsBoardResponse:
      type: object
      properties:
        as_of:
          type: string
        available_currencies:
          type: array
          description: >-
            AvailableCurrencies lists the currencies of all open and recently
            paid receivables, before q and currency apply.
          items:
            type: string
        columns:
          type: array
          items:
            $ref: '#/components/schemas/CollectionsBoardColumn'
        range:
          $ref: '#/components/schemas/CollectionsRange'
    errors.ErrorResponse:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/errors.ErrorCode'
        http_status_code:
          type: integer
        message:
          type: string
      x-speakeasy-name-override: ErrorResponse
    CollectionsBoardColumn:
      type: object
      properties:
        cards:
          type: array
          items:
            $ref: '#/components/schemas/CollectionsItem'
        count:
          type: integer
          description: Count is the number of invoices in the whole column.
        has_more:
          type: boolean
          description: >-
            HasMore is true when the column has cards beyond the ones in this
            response.
        hint:
          type: string
        key:
          $ref: '#/components/schemas/types.CollectionsColumnKey'
        title:
          type: string
        totals:
          type: array
          items:
            $ref: '#/components/schemas/CollectionsCurrencyTotal'
    CollectionsRange:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
    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
    CollectionsItem:
      type: object
      properties:
        amount:
          type: string
          description: >-
            Amount is the remaining balance (not_due, overdue, chasing, held) or
            the invoice total (paid_this_week).
        currency:
          type: string
        customer_id:
          type: string
        customer_name:
          type: string
        days_overdue:
          type: integer
        due_date:
          type: string
          format: date-time
        due_in_days:
          type: integer
        invoice_id:
          type: string
        invoice_number:
          type: string
        paid_at:
          type: string
          format: date-time
        reminder_status:
          $ref: '#/components/schemas/types.ReminderStatus'
        reminder_status_reason:
          type: string
        reminder_tone:
          $ref: '#/components/schemas/types.ReminderTone'
    types.CollectionsColumnKey:
      type: string
      enum:
        - not_due
        - overdue
        - chasing
        - held
        - paid_this_week
      x-enum-varnames:
        - CollectionsColumnNotDue
        - CollectionsColumnOverdue
        - CollectionsColumnChasing
        - CollectionsColumnHeld
        - CollectionsColumnPaidThisWeek
      x-speakeasy-name-override: CollectionsColumnKey
    CollectionsCurrencyTotal:
      type: object
      properties:
        amount:
          type: string
        currency:
          type: string
    types.ReminderStatus:
      type: string
      enum:
        - pending
        - approved
        - held
        - skipped
      x-enum-varnames:
        - ReminderStatusPending
        - ReminderStatusApproved
        - ReminderStatusHeld
        - ReminderStatusSkipped
      x-speakeasy-name-override: ReminderStatus
    types.ReminderTone:
      type: string
      enum:
        - friendly
        - firm
        - final
      x-enum-varnames:
        - ReminderToneFriendly
        - ReminderToneFirm
        - ReminderToneFinal
      x-speakeasy-name-override: ReminderTone
  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.