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

# Resume collection case

> Resume a paused case; a step that came due during the pause runs on the next steps run.



## OpenAPI

````yaml post /v1/collections/cases/{id}/resume
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/cases/{id}/resume:
    post:
      tags:
        - Collections > Cases
      summary: Resume collection case
      description: >-
        Resume a paused case; a step that came due during the pause runs on the
        next steps run.
      operationId: resumeCollectionCase
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionCaseDetail'
        '403':
          description: Collections is not enabled on the account
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '404':
          description: Case not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    CollectionCaseDetail:
      allOf:
        - $ref: '#/components/schemas/CollectionCase'
        - type: object
          properties:
            invoices:
              type: array
              items:
                $ref: '#/components/schemas/CollectionCaseInvoice'
              description: Invoices of the case, removed ones included.
            steps:
              type: array
              items:
                $ref: '#/components/schemas/CollectionCasePlanStep'
              description: Recovery plan of the case, in order.
            activities:
              type: array
              items:
                $ref: '#/components/schemas/CollectionCaseActivity'
              description: Activity log of the case, newest first.
            next:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - step
                    - promise_check
                    - silence_checkpoint
                    - awaiting_review
                    - awaiting_customer
                    - none
                  description: Kind of the next event.
                at:
                  type:
                    - string
                    - 'null'
                  format: date-time
                  description: Date of the next event.
                  example: '2024-12-20T16:04:11Z'
                step_id:
                  type:
                    - string
                    - 'null'
                  description: Case step ID.
                actor:
                  type:
                    - string
                    - 'null'
                  enum:
                    - agent
                    - playbook
                    - user
                  description: Who acts next.
              required:
                - kind
                - at
                - step_id
                - actor
              description: What happens next on the case.
          required:
            - invoices
            - steps
            - activities
            - next
    CollectionCase:
      type: object
      properties:
        id:
          type: string
          description: Collection case ID.
          example: ccs_3GeHvsTaFsPgMf
        customer:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              description: Customer ID.
              example: cus_Typ0px2W0aiEtl
            name:
              type: string
              description: Name of the customer.
          required:
            - id
            - name
          description: Customer the case recovers.
        playbook_id:
          type: string
          description: ID of the playbook running the case.
          example: cpb_2bHxVsTaFsPgMf
        status:
          type: string
          enum:
            - agent_working
            - promised
            - disputed
            - paused
            - closed
          description: Status of the case.
        close_reason:
          type:
            - string
            - 'null'
          enum:
            - paid
            - settled
            - written_off
            - merged
          description: Why the case was closed. `null` while the case is open.
        owner_user_id:
          type:
            - string
            - 'null'
          description: ID of the user who owns the case.
          example: usr_8eKnRm5bWdVQk3
        needs_review:
          type: boolean
          description: Whether the case waits for a person.
        sender_id:
          type:
            - string
            - 'null'
          description: ID of the sender profile the case emails are sent as.
        agent_paused_reason:
          type:
            - string
            - 'null'
          description: Why the agent is paused on the case.
        agent_status:
          type: string
          enum:
            - idle
            - thinking
          description: >-
            `thinking` while an agent run is requested or running on the case,
            else `idle`.
        agent_run_reason:
          type:
            - string
            - 'null'
          enum:
            - case_opened
            - step_due
            - email_received
            - silence_checkpoint
            - partial_payment
            - payment_unmatched
            - promise_due
            - promise_broken
            - installment_missed
            - manual
            - user_instruction
            - proposal_rejected
            - proposals_decided
            - case_closed
          description: Why the agent is thinking. `null` when the agent is idle.
        escalation:
          type:
            - object
            - 'null'
          properties:
            reason:
              type: string
              description: Why the agent escalated.
            suggestion:
              type:
                - string
                - 'null'
              description: What the agent suggests doing.
            escalated_at:
              type: string
              format: date-time
              description: Escalation date.
              example: '2024-12-20T16:04:11Z'
          required:
            - reason
            - suggestion
            - escalated_at
          description: Set while the agent waits for a person to answer it on the case.
        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 case.
          example: EUR
        amount_at_open:
          type: string
          pattern: ^\d+(\.\d+)?$
          description: >-
            Late balance when the case opened, in major units, as a decimal
            string.
          example: '1250.00'
        outstanding_amount:
          type: string
          pattern: ^\d+(\.\d+)?$
          description: >-
            Amount the case invoices still owe in the case currency, in major
            units, as a decimal string.
          example: '1250.00'
        other_currency_invoice_count:
          type: integer
          description: >-
            Number of case invoices in another currency, left out of
            `outstanding_amount`.
        days_late:
          type: integer
          description: Days past the due date of the oldest case invoice.
          example: 21
        invoice_count:
          type: integer
          description: Number of invoices in the case.
          example: 2
        next_action_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Date of the next recovery step.
          example: '2024-12-20T16:04:11Z'
        next_step:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              description: Case step ID.
            kind:
              type: string
              enum:
                - email
                - task
                - call
                - escalate
                - pause_service
              description: Kind of the step.
          required:
            - id
            - kind
          description: Next recovery step of the case.
        opened_at:
          type: string
          format: date-time
          description: Opening date.
          example: '2024-12-20T16:04:11Z'
        closed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Closing 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
        - playbook_id
        - status
        - close_reason
        - owner_user_id
        - needs_review
        - sender_id
        - agent_paused_reason
        - agent_status
        - agent_run_reason
        - escalation
        - currency
        - amount_at_open
        - outstanding_amount
        - other_currency_invoice_count
        - days_late
        - invoice_count
        - next_action_at
        - next_step
        - opened_at
        - closed_at
        - updated_at
    CollectionCaseInvoice:
      type: object
      properties:
        id:
          type: string
          description: Invoice ID.
          example: inv_0dQ3W1hpbM1yXv
        invoice_number:
          type: string
          description: Invoice number.
        status:
          type: string
          description: Status of the invoice.
        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 case.
          example: EUR
        total_amount:
          type: string
          pattern: ^\d+(\.\d+)?$
          description: Total amount of the invoice, in major units.
          example: '1250.00'
        outstanding_amount:
          type: string
          pattern: ^\d+(\.\d+)?$
          description: Amount the invoice still owes, in major units.
          example: '1250.00'
        due_date:
          type: string
          format: date-time
          description: Due date of the invoice.
          example: '2024-12-20T16:04:11Z'
        is_late:
          type: boolean
          description: Whether the invoice is past its due date.
        days_late:
          type: integer
          description: Days past the due date of the oldest case invoice.
        added_at:
          type: string
          format: date-time
          description: Date the invoice was added to the case.
          example: '2024-12-20T16:04:11Z'
        removed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Date the invoice left the case, for instance when it was paid.
            `null` while it is in the case.
          example: '2024-12-20T16:04:11Z'
        dispute_status:
          type:
            - string
            - 'null'
          description: Status of the dispute on the invoice, if any.
      required:
        - id
        - invoice_number
        - status
        - currency
        - total_amount
        - outstanding_amount
        - due_date
        - is_late
        - days_late
        - added_at
        - removed_at
        - dispute_status
    CollectionCasePlanStep:
      type: object
      properties:
        id:
          type: string
          description: Case step ID.
        kind:
          type: string
          enum:
            - email
            - task
            - call
            - escalate
            - pause_service
          description: Kind of the step.
        title:
          type: string
          description: Title of the step.
        status:
          type: string
          enum:
            - planned
            - held
            - sent
            - skipped
            - not_needed
          description: Status of the step.
        scheduled_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Date the step runs.
          example: '2024-12-20T16:04:11Z'
        executed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Date the step ran.
          example: '2024-12-20T16:04:11Z'
      required:
        - id
        - kind
        - title
        - status
        - scheduled_at
        - executed_at
    CollectionCaseActivity:
      type: object
      properties:
        id:
          type: string
          description: Activity ID.
        type:
          type: string
          enum:
            - case_opened
            - invoice_added
            - invoice_removed
            - status_changed
            - step_executed
            - email_sent
            - email_received
            - note
            - promise_recorded
            - promise_kept
            - promise_broken
            - dispute_opened
            - dispute_resolved
            - payment_received
            - case_closed
            - agent_action
            - owner_changed
            - sender_changed
            - invoice_credited
            - promise_cancelled
            - payment_plan_proposed
            - payment_plan_approved
            - payment_plan_cancelled
            - payment_plan_installment_collection
            - payment_plan_installment_paid
            - payment_plan_installment_missed
            - payment_plan_completed
            - plan_step_changed
          description: Type of the activity.
        actor_type:
          type: string
          enum:
            - agent
            - user
            - customer
            - system
          description: Who made the change.
        actor_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the actor: the user ID for a user, the agent or sender ID for
            the agent, the email address for a customer.
        created_at:
          type: string
          format: date-time
          description: Last update date.
          example: '2024-12-20T16:04:11Z'
      required:
        - id
        - type
        - actor_type
        - actor_id
        - created_at
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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