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

# Get collections setup

> Preview what Collections would do now, without writing anything: per playbook, the cases the currently late invoices would open.



## OpenAPI

````yaml get /v1/collections/setup
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/collections/setup:
    get:
      tags:
        - Collections > Setup
      summary: Get collections setup
      description: >-
        Preview what Collections would do now, without writing anything: per
        playbook, the cases the currently late invoices would open.
      operationId: getCollectionsSetup
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionsSetupStatus'
        '403':
          description: Collections is not enabled on the account
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    CollectionsSetupStatus:
      type: object
      properties:
        cases_to_open_count:
          type: integer
          description: Number of cases that would open from the currently late invoices.
        outstanding:
          type: array
          items:
            type: object
            properties:
              currency:
                type: string
                enum:
                  - EUR
                  - AED
                  - AFN
                  - XCD
                  - ALL
                  - AMD
                  - AOA
                  - ARS
                  - USD
                  - AUD
                  - AWG
                  - AZN
                  - BAM
                  - BBD
                  - BDT
                  - BGN
                  - BHD
                  - BIF
                  - XOF
                  - BMD
                  - BND
                  - BOB
                  - BRL
                  - BSD
                  - BTN
                  - NOK
                  - BWP
                  - BYR
                  - BZD
                  - CAD
                  - CDF
                  - XAF
                  - CHF
                  - NZD
                  - CLP
                  - CNY
                  - COP
                  - CRC
                  - CUP
                  - CVE
                  - ANG
                  - CZK
                  - DJF
                  - DKK
                  - DOP
                  - DZD
                  - EGP
                  - MAD
                  - ERN
                  - ETB
                  - FJD
                  - FKP
                  - GBP
                  - GEL
                  - GHS
                  - GIP
                  - GMD
                  - GNF
                  - GTQ
                  - GYD
                  - HKD
                  - HNL
                  - HRK
                  - HTG
                  - HUF
                  - IDR
                  - ILS
                  - INR
                  - IQD
                  - IRR
                  - ISK
                  - JMD
                  - JOD
                  - JPY
                  - KES
                  - KGS
                  - KHR
                  - KMF
                  - KPW
                  - KRW
                  - KWD
                  - KYD
                  - KZT
                  - LAK
                  - LBP
                  - LKR
                  - LRD
                  - LSL
                  - LYD
                  - MDL
                  - MGA
                  - MKD
                  - MMK
                  - MNT
                  - MOP
                  - MRO
                  - MUR
                  - MVR
                  - MWK
                  - MXN
                  - MYR
                  - MZN
                  - NAD
                  - XPF
                  - NGN
                  - NIO
                  - NPR
                  - OMR
                  - PAB
                  - PEN
                  - PGK
                  - PHP
                  - PKR
                  - PLN
                  - PYG
                  - QAR
                  - RON
                  - RSD
                  - RUB
                  - RWF
                  - SAR
                  - SBD
                  - SCR
                  - SDG
                  - SEK
                  - SGD
                  - SHP
                  - SLL
                  - SOS
                  - SRD
                  - SSP
                  - STD
                  - SYP
                  - SZL
                  - THB
                  - TJS
                  - TMT
                  - TND
                  - TOP
                  - TRY
                  - TTD
                  - TWD
                  - TZS
                  - UAH
                  - UGX
                  - UYU
                  - UZS
                  - VEF
                  - VND
                  - VUV
                  - WST
                  - YER
                  - ZAR
                  - ZMW
                  - ZWL
                description: Currency code.
                example: EUR
              amount:
                type: string
                pattern: ^\d+(\.\d+)?$
                description: Amount in major units, as a decimal string.
                example: '1250.00'
            required:
              - currency
              - amount
          description: Outstanding amount of these cases per currency, in major units.
        playbooks:
          type: array
          items:
            type: object
            properties:
              playbook_id:
                type: string
                description: ID of the playbook.
                example: cpb_2bHxVsTaFsPgMf
              name:
                type: string
                description: Name of the playbook.
              late_customer_count:
                type: integer
                description: Number of customers with late invoices on the playbook.
              cases_to_open_count:
                type: integer
                description: >-
                  Number of cases that would open from the currently late
                  invoices.
              outstanding:
                type: array
                items:
                  type: object
                  properties:
                    currency:
                      type: string
                      enum:
                        - EUR
                        - AED
                        - AFN
                        - XCD
                        - ALL
                        - AMD
                        - AOA
                        - ARS
                        - USD
                        - AUD
                        - AWG
                        - AZN
                        - BAM
                        - BBD
                        - BDT
                        - BGN
                        - BHD
                        - BIF
                        - XOF
                        - BMD
                        - BND
                        - BOB
                        - BRL
                        - BSD
                        - BTN
                        - NOK
                        - BWP
                        - BYR
                        - BZD
                        - CAD
                        - CDF
                        - XAF
                        - CHF
                        - NZD
                        - CLP
                        - CNY
                        - COP
                        - CRC
                        - CUP
                        - CVE
                        - ANG
                        - CZK
                        - DJF
                        - DKK
                        - DOP
                        - DZD
                        - EGP
                        - MAD
                        - ERN
                        - ETB
                        - FJD
                        - FKP
                        - GBP
                        - GEL
                        - GHS
                        - GIP
                        - GMD
                        - GNF
                        - GTQ
                        - GYD
                        - HKD
                        - HNL
                        - HRK
                        - HTG
                        - HUF
                        - IDR
                        - ILS
                        - INR
                        - IQD
                        - IRR
                        - ISK
                        - JMD
                        - JOD
                        - JPY
                        - KES
                        - KGS
                        - KHR
                        - KMF
                        - KPW
                        - KRW
                        - KWD
                        - KYD
                        - KZT
                        - LAK
                        - LBP
                        - LKR
                        - LRD
                        - LSL
                        - LYD
                        - MDL
                        - MGA
                        - MKD
                        - MMK
                        - MNT
                        - MOP
                        - MRO
                        - MUR
                        - MVR
                        - MWK
                        - MXN
                        - MYR
                        - MZN
                        - NAD
                        - XPF
                        - NGN
                        - NIO
                        - NPR
                        - OMR
                        - PAB
                        - PEN
                        - PGK
                        - PHP
                        - PKR
                        - PLN
                        - PYG
                        - QAR
                        - RON
                        - RSD
                        - RUB
                        - RWF
                        - SAR
                        - SBD
                        - SCR
                        - SDG
                        - SEK
                        - SGD
                        - SHP
                        - SLL
                        - SOS
                        - SRD
                        - SSP
                        - STD
                        - SYP
                        - SZL
                        - THB
                        - TJS
                        - TMT
                        - TND
                        - TOP
                        - TRY
                        - TTD
                        - TWD
                        - TZS
                        - UAH
                        - UGX
                        - UYU
                        - UZS
                        - VEF
                        - VND
                        - VUV
                        - WST
                        - YER
                        - ZAR
                        - ZMW
                        - ZWL
                      description: Currency code.
                      example: EUR
                    amount:
                      type: string
                      pattern: ^\d+(\.\d+)?$
                      description: Amount in major units, as a decimal string.
                      example: '1250.00'
                  required:
                    - currency
                    - amount
                description: >-
                  Outstanding amount of these cases per currency, in major
                  units.
            required:
              - playbook_id
              - name
              - late_customer_count
              - cases_to_open_count
              - outstanding
          description: Breakdown per playbook.
        unmatched_customer_count:
          type: integer
          description: Number of customers with late invoices no playbook applies to.
        is_truncated:
          type: boolean
          description: >-
            Whether the late invoices were too many to count them all, so the
            figures are a lower bound.
      required:
        - cases_to_open_count
        - outstanding
        - playbooks
        - unmatched_customer_count
        - is_truncated
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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