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

# List collection payment plans

> Retrieve the payment plans of a customer with their installments.



## OpenAPI

````yaml get /v1/collections/customers/{customerId}/payment-plans
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/customers/{customerId}/payment-plans:
    get:
      tags:
        - Collections > Payment plans
      summary: List collection payment plans
      description: Retrieve the payment plans of a customer with their installments.
      operationId: listCollectionPaymentPlans
      parameters:
        - schema:
            type: string
          required: true
          name: customerId
          in: path
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionPaymentPlanList'
        '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:
    CollectionPaymentPlanList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CollectionPaymentPlan'
          description: Payment plans of the customer.
      required:
        - data
    CollectionPaymentPlan:
      type: object
      properties:
        id:
          type: string
          description: Payment plan ID.
          example: cpln_5dQ3W1hpbM1yXv
        customer_id:
          type: string
          description: ID of the customer who pays the plan.
          example: cus_Typ0px2W0aiEtl
        case_id:
          type:
            - string
            - 'null'
          description: ID of the case the plan was proposed on.
          example: ccs_3GeHvsTaFsPgMf
        status:
          type: string
          enum:
            - proposed
            - active
            - completed
            - defaulted
            - cancelled
          description: Status of the plan.
        total_amount:
          type: string
          pattern: ^\d+(\.\d+)?$
          description: Total of the installments in major units, as a decimal string.
          example: '1250.00'
        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 of the plan.
          example: EUR
        payment_method_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the saved payment method the installments are debited from.
            `null` when the customer pays each installment.
        approved_by_user_id:
          type:
            - string
            - 'null'
          description: ID of the user who approved the plan.
          example: usr_8eKnRm5bWdVQk3
        accepted_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Date the customer accepted the plan.
          example: '2024-12-20T16:04:11Z'
        installments:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Installment ID.
              due_date:
                type: string
                format: date-time
                description: Due date of the installment.
                example: '2024-12-20T16:04:11Z'
              amount:
                type: string
                pattern: ^\d+(\.\d+)?$
                description: Amount of the installment in major units.
                example: '625.00'
              status:
                type: string
                enum:
                  - scheduled
                  - paid
                  - missed
                  - cancelled
                description: Status of the installment.
              transaction_id:
                type:
                  - string
                  - 'null'
                description: ID of the transaction that paid the installment.
              allocations:
                type: array
                items:
                  type: object
                  properties:
                    invoice_id:
                      type: string
                      description: ID of the invoice paid down.
                      example: inv_0dQ3W1hpbM1yXv
                    amount:
                      type: string
                      pattern: ^\d+(\.\d+)?$
                      description: Amount paid down on the invoice, in major units.
                      example: '625.00'
                  required:
                    - invoice_id
                    - amount
                description: Invoices the installment pays down, oldest first.
            required:
              - id
              - due_date
              - amount
              - status
              - transaction_id
              - allocations
          description: Installments of the plan, in date order.
        created_at:
          type: string
          format: date-time
          description: Creation date.
          example: '2024-12-20T16:04:11Z'
        updated_at:
          type: string
          format: date-time
          description: Last update date.
          example: '2024-12-20T16:04:11Z'
      required:
        - id
        - customer_id
        - case_id
        - status
        - total_amount
        - currency
        - payment_method_id
        - approved_by_user_id
        - accepted_at
        - installments
        - created_at
        - updated_at
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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