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

# Refresh seat products

> Triggers 'count' updates on connected seat products within the subscription. This action will use the dataloader query to retrieve and update the number of units for each seat product.



## OpenAPI

````yaml post /v2/subscriptions/{id}/refresh-seat-products
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:
  /v2/subscriptions/{id}/refresh-seat-products:
    post:
      tags:
        - Subscriptions > Billing
      summary: Refresh seat products
      description: >-
        Triggers 'count' updates on connected seat products within the
        subscription. This action will use the dataloader query to retrieve and
        update the number of units for each seat product.
      operationId: refreshSubscriptionSeatProducts
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: Subscription update ID.
                      example: supd_MkTDgpM6ej6f8l
                    application_schedule:
                      type: string
                      enum:
                        - immediately
                        - next_period
                        - custom
                        - scheduled
                      description: >

                        Indicates when the subscription should be updated.


                        - `immediately`: The subscription will be updated
                        immediately.

                        - `next_period`: The subscription will be updated at the
                        end of the current billing period.

                        - `custom`: The subscription will be updated at a custom
                        date.
                    apply_at:
                      type: string
                      format: date
                      description: >-
                        Date when the subscription should be updated. UTC date
                        time string in the [ISO
                        8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                      example: '2024-11-30T18:24:34.496Z'
                    payment_schedule:
                      type: string
                      enum:
                        - immediately
                        - next_invoice
                        - custom
                      description: >

                        Indicates when the subscription should be billed.


                        - `immediately`: The subscription will be billed
                        immediately.

                        - `next_invoice`: The subscription will be billed at the
                        next invoice.

                        - `custom`: The subscription will be billed at a custom
                        date.
                    calculation_method:
                      type: string
                      enum:
                        - pro_rata
                        - pay_in_full
                        - do_not_charge
                      description: >

                        Indicates how the products price should be calculated.


                        - `pro_rata`: The price will be calculated
                        proportionally to the time elapsed since the last
                        billing period.

                        - `pay_in_full`: The price will be calculated for the
                        entire billing period.

                        - `do_not_charge`: The price will not be calculated.
                    adjustment_amount:
                      type:
                        - number
                        - 'null'
                      description: Amount to adjust the subscription price.
                    subscription_id:
                      type: string
                      description: ID of the subscription the update applies to.
                      example: sub_7aWtG7Gb_fwGno
                    product_id:
                      type: string
                      description: ID of the product whose count is updated.
                      example: itm_G6nU9iSC7eoDsk
                    previous_count:
                      type: number
                      description: Previous count.
                      example: 2
                    new_count:
                      type: number
                      description: New count.
                      example: 7
                    next_refresh_date:
                      anyOf:
                        - type: string
                          format: date
                        - type: string
                        - type: 'null'
                      description: >-
                        The next refresh date. Exists if your seat item is
                        configured to be refreshed periodically.
                      example: null
                  required:
                    - id
                    - application_schedule
                    - apply_at
                    - payment_schedule
                    - calculation_method
                    - adjustment_amount
                    - subscription_id
                    - product_id
                    - previous_count
                    - new_count
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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