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

# Create product

> Create a new product.



## OpenAPI

````yaml post /v1/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:
  /v1/products:
    post:
      tags:
        - Catalog > Products
      summary: Create product
      description: Create a new product.
      operationId: createProduct
      requestBody:
        description: Create product payload
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProduct'
      responses:
        '201':
          description: The newly created product
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
      security:
        - bearer: []
components:
  schemas:
    CreateProduct:
      oneOf:
        - $ref: '#/components/schemas/CreateProductFlatFee'
        - $ref: '#/components/schemas/CreateProductSeat'
        - $ref: '#/components/schemas/CreateProductDynamic'
        - $ref: '#/components/schemas/CreateProductCredit'
        - $ref: '#/components/schemas/CreateProductBundle'
      discriminator:
        propertyName: type
        mapping:
          flat_fee: '#/components/schemas/CreateProductFlatFee'
          seat: '#/components/schemas/CreateProductSeat'
          dynamic: '#/components/schemas/CreateProductDynamic'
          credit: '#/components/schemas/CreateProductCredit'
          bundle: '#/components/schemas/CreateProductBundle'
    Product:
      oneOf:
        - $ref: '#/components/schemas/ProductFee'
        - $ref: '#/components/schemas/ProductSeat'
        - $ref: '#/components/schemas/ProductDynamic'
        - $ref: '#/components/schemas/ProductCredit'
        - $ref: '#/components/schemas/ProductBundle'
      discriminator:
        propertyName: type
        mapping:
          flat_fee: '#/components/schemas/ProductFee'
          seat: '#/components/schemas/ProductSeat'
          dynamic: '#/components/schemas/ProductDynamic'
          credit: '#/components/schemas/ProductCredit'
          bundle: '#/components/schemas/ProductBundle'
    CreateProductFlatFee:
      type: object
      properties:
        name:
          type: string
          description: Product name.
          example: Product name
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          default: true
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          maxLength: 5000
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
                maxLength: 5000
          description: Product name and description translations.
        is_available_on_demand:
          type: boolean
          default: true
        is_available_on_subscription:
          type: boolean
          default: true
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        type:
          type: string
          enum:
            - flat_fee
          description: Product type for fixed fee products.
        price_configurations:
          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. See [ISO
                  4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                example: EUR
              country:
                type:
                  - string
                  - 'null'
                enum:
                  - AD
                  - AE
                  - AF
                  - AG
                  - AI
                  - AL
                  - AM
                  - AO
                  - AQ
                  - AR
                  - AS
                  - AT
                  - AU
                  - AW
                  - AX
                  - AZ
                  - BA
                  - BB
                  - BD
                  - BE
                  - BG
                  - BH
                  - BI
                  - BJ
                  - BL
                  - BM
                  - BN
                  - BO
                  - BQ
                  - BR
                  - BS
                  - BT
                  - BF
                  - BV
                  - BW
                  - BY
                  - BZ
                  - CA
                  - CC
                  - CD
                  - CF
                  - CG
                  - CH
                  - CI
                  - CK
                  - CL
                  - CM
                  - CN
                  - CO
                  - CR
                  - CU
                  - CV
                  - CW
                  - CX
                  - CY
                  - CZ
                  - DE
                  - DJ
                  - DK
                  - DM
                  - DO
                  - DZ
                  - EC
                  - EE
                  - EG
                  - EH
                  - ER
                  - ES
                  - ES-CE
                  - ES-ML
                  - ET
                  - FI
                  - FJ
                  - FK
                  - FM
                  - FO
                  - FR
                  - GA
                  - GB
                  - GD
                  - GE
                  - GF
                  - GG
                  - GH
                  - GI
                  - GL
                  - GM
                  - GN
                  - GP
                  - GQ
                  - GR
                  - GS
                  - GT
                  - GU
                  - GW
                  - GY
                  - HK
                  - HM
                  - HN
                  - HR
                  - HT
                  - HU
                  - IC
                  - ID
                  - IE
                  - IL
                  - IM
                  - IN
                  - IO
                  - IQ
                  - IR
                  - IS
                  - IT
                  - JE
                  - JM
                  - JO
                  - JP
                  - KE
                  - KG
                  - KH
                  - KI
                  - KM
                  - KN
                  - KP
                  - KR
                  - KW
                  - KY
                  - KZ
                  - LA
                  - LB
                  - LC
                  - LI
                  - LK
                  - LR
                  - LS
                  - LT
                  - LU
                  - LV
                  - LY
                  - MA
                  - MC
                  - MD
                  - ME
                  - MF
                  - MG
                  - MH
                  - MK
                  - ML
                  - MM
                  - MN
                  - MO
                  - MP
                  - MQ
                  - MR
                  - MS
                  - MT
                  - MU
                  - MV
                  - MW
                  - MX
                  - MY
                  - MZ
                  - NA
                  - NC
                  - NE
                  - NF
                  - NG
                  - NI
                  - NL
                  - 'NO'
                  - NP
                  - NR
                  - NU
                  - NZ
                  - OM
                  - PA
                  - PE
                  - PF
                  - PG
                  - PH
                  - PK
                  - PL
                  - PM
                  - PN
                  - PR
                  - PS
                  - PT
                  - PT-20
                  - PT-30
                  - PW
                  - PY
                  - QA
                  - RE
                  - RO
                  - RS
                  - RU
                  - RW
                  - SA
                  - SB
                  - SC
                  - SD
                  - SE
                  - SG
                  - SH
                  - SI
                  - SJ
                  - SK
                  - SL
                  - SM
                  - SN
                  - SO
                  - SR
                  - SS
                  - ST
                  - SV
                  - SX
                  - SY
                  - SZ
                  - TC
                  - TD
                  - TF
                  - TG
                  - TH
                  - TJ
                  - TK
                  - TL
                  - TM
                  - TN
                  - TO
                  - TR
                  - TT
                  - TV
                  - TW
                  - TZ
                  - UA
                  - UG
                  - UM
                  - US
                  - UY
                  - UZ
                  - VA
                  - VC
                  - VE
                  - VG
                  - VI
                  - VN
                  - VU
                  - WF
                  - WS
                  - XK
                  - YE
                  - YT
                  - ZA
                  - ZM
                  - ZW
                description: >-
                  Deprecated, use `countries`. The single country this price
                  configuration is eligible in, or `null` when it applies to
                  every country — or to several, which this field cannot
                  express.
                example: FR
                deprecated: true
              countries:
                type:
                  - array
                  - 'null'
                items:
                  type: string
                  enum:
                    - AD
                    - AE
                    - AF
                    - AG
                    - AI
                    - AL
                    - AM
                    - AO
                    - AQ
                    - AR
                    - AS
                    - AT
                    - AU
                    - AW
                    - AX
                    - AZ
                    - BA
                    - BB
                    - BD
                    - BE
                    - BG
                    - BH
                    - BI
                    - BJ
                    - BL
                    - BM
                    - BN
                    - BO
                    - BQ
                    - BR
                    - BS
                    - BT
                    - BF
                    - BV
                    - BW
                    - BY
                    - BZ
                    - CA
                    - CC
                    - CD
                    - CF
                    - CG
                    - CH
                    - CI
                    - CK
                    - CL
                    - CM
                    - CN
                    - CO
                    - CR
                    - CU
                    - CV
                    - CW
                    - CX
                    - CY
                    - CZ
                    - DE
                    - DJ
                    - DK
                    - DM
                    - DO
                    - DZ
                    - EC
                    - EE
                    - EG
                    - EH
                    - ER
                    - ES
                    - ES-CE
                    - ES-ML
                    - ET
                    - FI
                    - FJ
                    - FK
                    - FM
                    - FO
                    - FR
                    - GA
                    - GB
                    - GD
                    - GE
                    - GF
                    - GG
                    - GH
                    - GI
                    - GL
                    - GM
                    - GN
                    - GP
                    - GQ
                    - GR
                    - GS
                    - GT
                    - GU
                    - GW
                    - GY
                    - HK
                    - HM
                    - HN
                    - HR
                    - HT
                    - HU
                    - IC
                    - ID
                    - IE
                    - IL
                    - IM
                    - IN
                    - IO
                    - IQ
                    - IR
                    - IS
                    - IT
                    - JE
                    - JM
                    - JO
                    - JP
                    - KE
                    - KG
                    - KH
                    - KI
                    - KM
                    - KN
                    - KP
                    - KR
                    - KW
                    - KY
                    - KZ
                    - LA
                    - LB
                    - LC
                    - LI
                    - LK
                    - LR
                    - LS
                    - LT
                    - LU
                    - LV
                    - LY
                    - MA
                    - MC
                    - MD
                    - ME
                    - MF
                    - MG
                    - MH
                    - MK
                    - ML
                    - MM
                    - MN
                    - MO
                    - MP
                    - MQ
                    - MR
                    - MS
                    - MT
                    - MU
                    - MV
                    - MW
                    - MX
                    - MY
                    - MZ
                    - NA
                    - NC
                    - NE
                    - NF
                    - NG
                    - NI
                    - NL
                    - 'NO'
                    - NP
                    - NR
                    - NU
                    - NZ
                    - OM
                    - PA
                    - PE
                    - PF
                    - PG
                    - PH
                    - PK
                    - PL
                    - PM
                    - PN
                    - PR
                    - PS
                    - PT
                    - PT-20
                    - PT-30
                    - PW
                    - PY
                    - QA
                    - RE
                    - RO
                    - RS
                    - RU
                    - RW
                    - SA
                    - SB
                    - SC
                    - SD
                    - SE
                    - SG
                    - SH
                    - SI
                    - SJ
                    - SK
                    - SL
                    - SM
                    - SN
                    - SO
                    - SR
                    - SS
                    - ST
                    - SV
                    - SX
                    - SY
                    - SZ
                    - TC
                    - TD
                    - TF
                    - TG
                    - TH
                    - TJ
                    - TK
                    - TL
                    - TM
                    - TN
                    - TO
                    - TR
                    - TT
                    - TV
                    - TW
                    - TZ
                    - UA
                    - UG
                    - UM
                    - US
                    - UY
                    - UZ
                    - VA
                    - VC
                    - VE
                    - VG
                    - VI
                    - VN
                    - VU
                    - WF
                    - WS
                    - XK
                    - YE
                    - YT
                    - ZA
                    - ZM
                    - ZW
                  description: >-
                    Two-letter country code in ISO format. See [ISO 3166-1
                    alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                  example: FR
                description: >-
                  Countries this price configuration is eligible in. Omit or
                  send `null` to make it eligible in every country. An empty
                  array restricts it to customers that have no country set.
              plan_id:
                type:
                  - string
                  - 'null'
                description: ID of the plan on which this price configuration is eligible.
                deprecated: true
              price_book_id:
                type:
                  - string
                  - 'null'
                description: >-
                  ID of the price book the price configuration belongs to. If
                  null, the price configuration belongs to the default price
                  book.
              billing_interval:
                anyOf:
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - once
                    required:
                      - period
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - days
                          - weeks
                          - months
                          - years
                      count:
                        type: number
                    required:
                      - period
                      - count
                description: Billing interval on which the price configuration is eligible.
              commitment_interval:
                anyOf:
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - all
                    required:
                      - period
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - weeks
                          - months
                          - years
                      count:
                        type: number
                    required:
                      - period
                      - count
                  - type: 'null'
                description: >-
                  Commitment interval on which the price configuration is
                  eligible.
              type:
                type: string
                enum:
                  - fee
              prices:
                type: array
                items:
                  $ref: '#/components/schemas/PriceFee'
                maxItems: 1
                description: >-
                  Price tiers of the price configuration. If fixed amount, only
                  one price is available.
            required:
              - currency
              - billing_interval
              - type
              - prices
          description: Price configurations for the product.
      required:
        - name
        - type
        - price_configurations
    CreateProductSeat:
      type: object
      properties:
        name:
          type: string
          description: Product name.
          example: Product name
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          default: true
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          maxLength: 5000
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
                maxLength: 5000
          description: Product name and description translations.
        is_available_on_demand:
          type: boolean
          default: true
        is_available_on_subscription:
          type: boolean
          default: true
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        type:
          type: string
          enum:
            - seat
          description: Product type for seat-based products.
        aggregator:
          allOf:
            - $ref: '#/components/schemas/CreateCountAggregator'
            - properties:
                entity:
                  type: string
                  description: The billable event entity to aggregate.
                  example: api_calls
                operation:
                  type: string
                  enum:
                    - count
                  description: The aggregation operation to perform.
                type:
                  type: string
                  enum:
                    - metered
                    - licensed
                  default: metered
                  description: The type of aggregator.
                where:
                  type:
                    - object
                    - 'null'
                  properties:
                    conditional:
                      type: string
                      enum:
                        - and
                        - or
                    fields:
                      type: array
                      items:
                        allOf:
                          - type: object
                            properties:
                              property:
                                type: string
                            required:
                              - property
                          - oneOf:
                              - type: object
                                properties:
                                  operator:
                                    type: string
                                    enum:
                                      - isNull
                                      - isNotNull
                                required:
                                  - operator
                              - type: object
                                properties:
                                  operator:
                                    type: string
                                    enum:
                                      - in
                                      - notIn
                                  value:
                                    type: string
                                required:
                                  - operator
                                  - value
                              - type: object
                                properties:
                                  operator:
                                    type: string
                                    enum:
                                      - gte
                                      - gt
                                      - lt
                                      - lte
                                  value:
                                    type: number
                                required:
                                  - operator
                                  - value
                              - type: object
                                properties:
                                  operator:
                                    type: string
                                    enum:
                                      - equals
                                      - notEqual
                                  value:
                                    anyOf:
                                      - type: string
                                      - type: number
                                      - type: boolean
                                required:
                                  - operator
                                  - value
                  required:
                    - conditional
                    - fields
                  description: Filter conditions for the aggregation.
                formula_sql:
                  type: string
                  description: Read-only formula expression; not accepted on public writes.
                  deprecated: true
              description: >-
                Aggregator configuration to automatically count seats from
                billable events. Only count aggregators are supported for seat
                products.
        aggregator_id:
          type: string
          description: ID of an existing aggregator to link to this product.
        unit_name:
          type: string
          description: Name of the unit (e.g., 'user', 'seat').
          example: user
        is_connected_seat_item:
          type: boolean
          default: false
          description: >-
            When true, the seat count is automatically synced from an external
            source (e.g., CRM users).
        price_configurations:
          type: array
          items:
            oneOf:
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - volume
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - volume
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Volume
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bulk
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bulk
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type:
                            - string
                            - 'null'
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bulk
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - packaged
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - packaged
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Packaged
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bundle
                  allow_on_portal:
                    type: boolean
                    default: true
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bundle
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        unit_count:
                          type: number
                      required:
                        - type
                        - amount
                        - unit_count
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bundle
          description: Price configurations for the product.
      required:
        - name
        - type
        - price_configurations
    CreateProductDynamic:
      type: object
      properties:
        name:
          type: string
          description: Product name.
          example: Product name
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          default: true
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          maxLength: 5000
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
                maxLength: 5000
          description: Product name and description translations.
        is_available_on_demand:
          type: boolean
          default: true
        is_available_on_subscription:
          type: boolean
          default: true
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        type:
          type: string
          enum:
            - dynamic
          description: Product type for usage-based dynamic products.
        aggregator:
          allOf:
            - $ref: '#/components/schemas/CreateAggregator'
            - oneOf:
                - allOf:
                    - $ref: '#/components/schemas/CreateCountAggregator'
                    - properties:
                        entity:
                          type: string
                          description: The billable event entity to aggregate.
                          example: api_calls
                        operation:
                          type: string
                          enum:
                            - count
                          description: The aggregation operation to perform.
                        type:
                          type: string
                          enum:
                            - metered
                            - licensed
                          default: metered
                          description: The type of aggregator.
                        where:
                          type:
                            - object
                            - 'null'
                          properties:
                            conditional:
                              type: string
                              enum:
                                - and
                                - or
                            fields:
                              type: array
                              items:
                                allOf:
                                  - type: object
                                    properties:
                                      property:
                                        type: string
                                    required:
                                      - property
                                  - oneOf:
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - isNull
                                              - isNotNull
                                        required:
                                          - operator
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - in
                                              - notIn
                                          value:
                                            type: string
                                        required:
                                          - operator
                                          - value
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - gte
                                              - gt
                                              - lt
                                              - lte
                                          value:
                                            type: number
                                        required:
                                          - operator
                                          - value
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - equals
                                              - notEqual
                                          value:
                                            anyOf:
                                              - type: string
                                              - type: number
                                              - type: boolean
                                        required:
                                          - operator
                                          - value
                          required:
                            - conditional
                            - fields
                          description: Filter conditions for the aggregation.
                        formula_sql:
                          type: string
                          description: >-
                            Read-only formula expression; not accepted on public
                            writes.
                          deprecated: true
                - type: object
                  properties:
                    entity:
                      type: string
                      description: The billable event entity to aggregate.
                      example: api_calls
                    operation:
                      type: string
                      enum:
                        - sum
                      description: The aggregation operation to perform.
                    property:
                      type: string
                      description: The property to sum.
                      example: amount
                    type:
                      type: string
                      enum:
                        - metered
                        - licensed
                      default: metered
                      description: The type of aggregator.
                    where:
                      type:
                        - object
                        - 'null'
                      properties:
                        conditional:
                          type: string
                          enum:
                            - and
                            - or
                        fields:
                          type: array
                          items:
                            allOf:
                              - type: object
                                properties:
                                  property:
                                    type: string
                                required:
                                  - property
                              - oneOf:
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - isNull
                                          - isNotNull
                                    required:
                                      - operator
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - in
                                          - notIn
                                      value:
                                        type: string
                                    required:
                                      - operator
                                      - value
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - gte
                                          - gt
                                          - lt
                                          - lte
                                      value:
                                        type: number
                                    required:
                                      - operator
                                      - value
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - equals
                                          - notEqual
                                      value:
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                    required:
                                      - operator
                                      - value
                      required:
                        - conditional
                        - fields
                      description: Filter conditions for the aggregation.
                    formula_sql:
                      type: string
                      description: >-
                        Read-only formula expression; not accepted on public
                        writes.
                      deprecated: true
                  required:
                    - entity
                    - operation
                    - property
              description: >-
                Aggregator configuration to compute usage from billable events.
                Either aggregator or aggregator_id is required.
        aggregator_id:
          type: string
          description: >-
            ID of an existing aggregator to link to this product. Either
            aggregator or aggregator_id is required.
        unit_name:
          type: string
          description: Name of the unit (e.g., 'API call', 'GB').
          example: API call
        price_configurations:
          type: array
          items:
            oneOf:
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - volume
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - volume
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                  metering_filter:
                    type:
                      - object
                      - 'null'
                    properties:
                      name:
                        type: string
                        description: Name of the metering filter.
                        example: VISA credit cards
                      configuration:
                        $ref: '#/components/schemas/MeteringFilterConfiguration'
                    required:
                      - name
                      - configuration
                    description: >-
                      Filter to scope which billable events are eligible for
                      this price configuration.
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of an existing metering filter of the product's
                      aggregator to attach to this price configuration, instead
                      of creating a new one with `metering_filter`.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Volume
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bulk
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bulk
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type:
                            - string
                            - 'null'
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                  metering_filter:
                    type:
                      - object
                      - 'null'
                    properties:
                      name:
                        type: string
                        description: Name of the metering filter.
                        example: VISA credit cards
                      configuration:
                        $ref: '#/components/schemas/MeteringFilterConfiguration'
                    required:
                      - name
                      - configuration
                    description: >-
                      Filter to scope which billable events are eligible for
                      this price configuration.
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of an existing metering filter of the product's
                      aggregator to attach to this price configuration, instead
                      of creating a new one with `metering_filter`.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bulk
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - packaged
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - packaged
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                  metering_filter:
                    type:
                      - object
                      - 'null'
                    properties:
                      name:
                        type: string
                        description: Name of the metering filter.
                        example: VISA credit cards
                      configuration:
                        $ref: '#/components/schemas/MeteringFilterConfiguration'
                    required:
                      - name
                      - configuration
                    description: >-
                      Filter to scope which billable events are eligible for
                      this price configuration.
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of an existing metering filter of the product's
                      aggregator to attach to this price configuration, instead
                      of creating a new one with `metering_filter`.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Packaged
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bps
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bps
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        percentage:
                          type: number
                        per_unit_cap:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        per_unit_floor:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        per_unit_fee:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                      required:
                        - type
                        - from
                        - to
                        - percentage
                        - per_unit_cap
                        - per_unit_floor
                        - per_unit_fee
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                  metering_filter:
                    type:
                      - object
                      - 'null'
                    properties:
                      name:
                        type: string
                        description: Name of the metering filter.
                        example: VISA credit cards
                      configuration:
                        $ref: '#/components/schemas/MeteringFilterConfiguration'
                    required:
                      - name
                      - configuration
                    description: >-
                      Filter to scope which billable events are eligible for
                      this price configuration.
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of an existing metering filter of the product's
                      aggregator to attach to this price configuration, instead
                      of creating a new one with `metering_filter`.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: BPS
          description: Price configurations for the product.
      required:
        - name
        - type
        - price_configurations
    CreateProductCredit:
      type: object
      properties:
        name:
          type: string
          description: Product name.
          example: Product name
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          default: true
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          maxLength: 5000
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
                maxLength: 5000
          description: Product name and description translations.
        is_available_on_demand:
          type: boolean
          default: true
        is_available_on_subscription:
          type: boolean
          default: true
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        type:
          type: string
          enum:
            - credit
          description: Product type for credit-based products.
        aggregator:
          allOf:
            - $ref: '#/components/schemas/CreateAggregator'
            - oneOf:
                - allOf:
                    - $ref: '#/components/schemas/CreateCountAggregator'
                    - properties:
                        entity:
                          type: string
                          description: The billable event entity to aggregate.
                          example: api_calls
                        operation:
                          type: string
                          enum:
                            - count
                          description: The aggregation operation to perform.
                        type:
                          type: string
                          enum:
                            - metered
                            - licensed
                          default: metered
                          description: The type of aggregator.
                        where:
                          type:
                            - object
                            - 'null'
                          properties:
                            conditional:
                              type: string
                              enum:
                                - and
                                - or
                            fields:
                              type: array
                              items:
                                allOf:
                                  - type: object
                                    properties:
                                      property:
                                        type: string
                                    required:
                                      - property
                                  - oneOf:
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - isNull
                                              - isNotNull
                                        required:
                                          - operator
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - in
                                              - notIn
                                          value:
                                            type: string
                                        required:
                                          - operator
                                          - value
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - gte
                                              - gt
                                              - lt
                                              - lte
                                          value:
                                            type: number
                                        required:
                                          - operator
                                          - value
                                      - type: object
                                        properties:
                                          operator:
                                            type: string
                                            enum:
                                              - equals
                                              - notEqual
                                          value:
                                            anyOf:
                                              - type: string
                                              - type: number
                                              - type: boolean
                                        required:
                                          - operator
                                          - value
                          required:
                            - conditional
                            - fields
                          description: Filter conditions for the aggregation.
                        formula_sql:
                          type: string
                          description: >-
                            Read-only formula expression; not accepted on public
                            writes.
                          deprecated: true
                - type: object
                  properties:
                    entity:
                      type: string
                      description: The billable event entity to aggregate.
                      example: api_calls
                    operation:
                      type: string
                      enum:
                        - sum
                      description: The aggregation operation to perform.
                    property:
                      type: string
                      description: The property to sum.
                      example: amount
                    type:
                      type: string
                      enum:
                        - metered
                        - licensed
                      default: metered
                      description: The type of aggregator.
                    where:
                      type:
                        - object
                        - 'null'
                      properties:
                        conditional:
                          type: string
                          enum:
                            - and
                            - or
                        fields:
                          type: array
                          items:
                            allOf:
                              - type: object
                                properties:
                                  property:
                                    type: string
                                required:
                                  - property
                              - oneOf:
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - isNull
                                          - isNotNull
                                    required:
                                      - operator
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - in
                                          - notIn
                                      value:
                                        type: string
                                    required:
                                      - operator
                                      - value
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - gte
                                          - gt
                                          - lt
                                          - lte
                                      value:
                                        type: number
                                    required:
                                      - operator
                                      - value
                                  - type: object
                                    properties:
                                      operator:
                                        type: string
                                        enum:
                                          - equals
                                          - notEqual
                                      value:
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                    required:
                                      - operator
                                      - value
                      required:
                        - conditional
                        - fields
                      description: Filter conditions for the aggregation.
                    formula_sql:
                      type: string
                      description: >-
                        Read-only formula expression; not accepted on public
                        writes.
                      deprecated: true
                  required:
                    - entity
                    - operation
                    - property
              description: >-
                Aggregator configuration to compute credit consumption from
                billable events. Omit aggregator, aggregator_id and
                credit_aggregators for credits drawn down only manually or by an
                AI billing policy.
        aggregator_id:
          type: string
          description: >-
            ID of an existing aggregator to link to this product. Omit
            aggregator, aggregator_id and credit_aggregators for credits drawn
            down only manually or by an AI billing policy.
        credit_aggregators:
          type: array
          items:
            $ref: '#/components/schemas/CreditAggregatorEntry'
          description: >-
            Multiple aggregators with weights for multi-aggregator credit
            consumption. Cannot be used together with aggregator or
            aggregator_id.
        unit_name:
          type: string
          description: Name of the credit unit.
          example: credit
        low_credits_threshold:
          type: number
          description: Threshold indicating a low level of credits.
          example: 10
        credits_grant_mode:
          type: string
          enum:
            - prorated
            - full_allowance
          description: >

            How the periodic credit allowance is granted for partial billing
            periods.


            - `prorated` (default): the granted credits are prorated to the
            elapsed period.

            - `full_allowance`: the full allowance is always granted (the
            invoice remains prorated).
          example: full_allowance
        credits_balance_auto_creation_enabled:
          anyOf:
            - type: boolean
            - type: string
              enum:
                - 'true'
                - 'false'
          description: >-
            Default for the `credits_balance_auto_creation_enabled` setting of
            subscription products using this credit product: whether the
            customer credit balance is created as soon as the product is added
            to a subscription. `true` when unset. A subscription product can
            override it.
          example: false
        price_configurations:
          type: array
          items:
            oneOf:
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - volume
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - volume
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Volume
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bulk
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bulk
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type:
                            - string
                            - 'null'
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bulk
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bundle
                  allow_on_portal:
                    type: boolean
                    default: true
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bundle
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        unit_count:
                          type: number
                      required:
                        - type
                        - amount
                        - unit_count
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bundle
          description: Bundle, volume, or bulk price configurations for credit packages.
      required:
        - name
        - type
        - price_configurations
    CreateProductBundle:
      type: object
      properties:
        name:
          type: string
          description: Product name.
          example: Product name
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          default: true
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          maxLength: 5000
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
                maxLength: 5000
          description: Product name and description translations.
        is_available_on_demand:
          type: boolean
          default: true
        is_available_on_subscription:
          type: boolean
          default: true
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        type:
          type: string
          enum:
            - bundle
          description: Product type for bundle products.
        display_mode:
          type: string
          enum:
            - single_line
            - ventilated
          description: How bundle items are displayed on invoices.
        exclusive_items_enabled:
          type: boolean
          default: false
          description: When true, only one item in the bundle can be active at a time.
        bundle_items:
          type: array
          items:
            $ref: '#/components/schemas/CreateBundleProductItem'
          minItems: 1
          description: Products included in this bundle. Percentages must sum to 100.
        price_configurations:
          type: array
          items:
            oneOf:
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - volume
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - volume
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Volume
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bulk
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bulk
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type:
                            - string
                            - 'null'
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bulk
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - packaged
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - packaged
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        from:
                          type: number
                        to:
                          type:
                            - number
                            - 'null'
                        on_bucket_incomplete:
                          type: string
                          enum:
                            - pro_rata
                            - pay_in_full
                            - do_not_charge
                            - flat_per_tier
                          default: pro_rata
                        unit_count:
                          type: number
                          default: 1
                      required:
                        - type
                        - amount
                        - from
                        - to
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Packaged
              - 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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. Omit or
                      send `null` to make it eligible in every country. An empty
                      array restricts it to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  type:
                    type: string
                    enum:
                      - bundle
                  allow_on_portal:
                    type: boolean
                    default: true
                  prices:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - bundle
                        amount:
                          type: number
                          description: >-
                            Monetary amount. Expressed in currency's smallest
                            unit.
                        unit_count:
                          type: number
                      required:
                        - type
                        - amount
                        - unit_count
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - currency
                  - billing_interval
                  - type
                  - prices
                title: Bundle
          default: []
          description: Price configurations for the product.
      required:
        - name
        - type
        - display_mode
        - bundle_items
    ProductFee:
      type: object
      properties:
        id:
          type: string
          description: Product ID.
          example: itm_3kXODDF42QXtnL
        name:
          type: string
          description: Product name.
          example: Product name
        status:
          type: string
          enum:
            - active
            - archived
          description: >

            Product status.


            - `active`: The product is active and can be used in new
            quotes/subscriptions/invoices.

            - `archived`: The product is archived and can't be used anymore.
          example: active
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
          description: Product name and description translations.
        properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: 'null'
              - type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                    - type: 'null'
                    - type: 'null'
              - type: 'null'
          description: Key/value pairs to store any metadata useful in your context.
          example: null
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        integrations:
          type: array
          items:
            type: object
            properties:
              entity_id:
                type: string
                description: ID of the entity in the provider.
              provider_name:
                type: string
                enum:
                  - adyen
                  - stripe
                  - mollie
                  - gocardless
                  - airwallex
                  - paypal
                  - salesforce
                  - hubspot
                  - attio
                  - xero
                  - pennylane
                  - zoho-books
                  - exact-online
                  - quickbooks
                  - netsuite
                  - rillet
                  - campfire
                  - dualentry
                  - datev
                  - anrok
                  - sphere
                  - chargebee
                  - slack
                  - plain
                  - zendesk
                  - pylon
                  - intercom
                  - front
                  - helpscout
                  - claap
                  - grain
                  - gong
                  - jiminny
                  - modjo
                  - posthog
                description: Provider name.
              provider_account_id:
                type: string
                description: ID of the connected provider account.
              created_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Creation date of the entity in the provider, when it was
                  imported from there. Exposed on products, coupons and
                  subscriptions; `null` when the provider does not report one.
                example: '2024-12-20T16:04:11Z'
              activated_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Activation date of the entity in the provider, when it was
                  imported from there. Exposed on subscriptions; `null` when the
                  provider does not report one.
                example: '2024-12-20T16:04:11Z'
            required:
              - entity_id
              - provider_name
              - provider_account_id
            description: Reference to the entity in an external provider.
            example:
              entity_id: '123456789'
              provider_name: stripe
              provider_account_id: acc_1234567890
          description: >-
            References to this product in external providers (billing,
            accounting, etc).
        type:
          type: string
          enum:
            - flat_fee
          description: Product type.
        is_available_on_demand:
          type: boolean
          description: Enable the product to be billed at any time as a one-time payment.
          example: true
          deprecated: true
        is_available_on_subscription:
          type: boolean
          description: Enable the product to be added as part of a subscription.
          example: true
          deprecated: true
        price_configurations:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Price configuration ID.
              product_id:
                type: string
                description: ID of the product this price configuration belongs to.
              price_book_id:
                type:
                  - string
                  - 'null'
                description: >-
                  ID of the price book the price configuration belongs to. If
                  null, the price configuration belongs to the default price
                  book.
              status:
                type: string
                enum:
                  - active
                  - archived
                description: Price configuration status.
                example: active
              currency:
                type:
                  - string
                  - 'null'
                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. See [ISO
                  4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                example: EUR
              country:
                type:
                  - string
                  - 'null'
                enum:
                  - AD
                  - AE
                  - AF
                  - AG
                  - AI
                  - AL
                  - AM
                  - AO
                  - AQ
                  - AR
                  - AS
                  - AT
                  - AU
                  - AW
                  - AX
                  - AZ
                  - BA
                  - BB
                  - BD
                  - BE
                  - BG
                  - BH
                  - BI
                  - BJ
                  - BL
                  - BM
                  - BN
                  - BO
                  - BQ
                  - BR
                  - BS
                  - BT
                  - BF
                  - BV
                  - BW
                  - BY
                  - BZ
                  - CA
                  - CC
                  - CD
                  - CF
                  - CG
                  - CH
                  - CI
                  - CK
                  - CL
                  - CM
                  - CN
                  - CO
                  - CR
                  - CU
                  - CV
                  - CW
                  - CX
                  - CY
                  - CZ
                  - DE
                  - DJ
                  - DK
                  - DM
                  - DO
                  - DZ
                  - EC
                  - EE
                  - EG
                  - EH
                  - ER
                  - ES
                  - ES-CE
                  - ES-ML
                  - ET
                  - FI
                  - FJ
                  - FK
                  - FM
                  - FO
                  - FR
                  - GA
                  - GB
                  - GD
                  - GE
                  - GF
                  - GG
                  - GH
                  - GI
                  - GL
                  - GM
                  - GN
                  - GP
                  - GQ
                  - GR
                  - GS
                  - GT
                  - GU
                  - GW
                  - GY
                  - HK
                  - HM
                  - HN
                  - HR
                  - HT
                  - HU
                  - IC
                  - ID
                  - IE
                  - IL
                  - IM
                  - IN
                  - IO
                  - IQ
                  - IR
                  - IS
                  - IT
                  - JE
                  - JM
                  - JO
                  - JP
                  - KE
                  - KG
                  - KH
                  - KI
                  - KM
                  - KN
                  - KP
                  - KR
                  - KW
                  - KY
                  - KZ
                  - LA
                  - LB
                  - LC
                  - LI
                  - LK
                  - LR
                  - LS
                  - LT
                  - LU
                  - LV
                  - LY
                  - MA
                  - MC
                  - MD
                  - ME
                  - MF
                  - MG
                  - MH
                  - MK
                  - ML
                  - MM
                  - MN
                  - MO
                  - MP
                  - MQ
                  - MR
                  - MS
                  - MT
                  - MU
                  - MV
                  - MW
                  - MX
                  - MY
                  - MZ
                  - NA
                  - NC
                  - NE
                  - NF
                  - NG
                  - NI
                  - NL
                  - 'NO'
                  - NP
                  - NR
                  - NU
                  - NZ
                  - OM
                  - PA
                  - PE
                  - PF
                  - PG
                  - PH
                  - PK
                  - PL
                  - PM
                  - PN
                  - PR
                  - PS
                  - PT
                  - PT-20
                  - PT-30
                  - PW
                  - PY
                  - QA
                  - RE
                  - RO
                  - RS
                  - RU
                  - RW
                  - SA
                  - SB
                  - SC
                  - SD
                  - SE
                  - SG
                  - SH
                  - SI
                  - SJ
                  - SK
                  - SL
                  - SM
                  - SN
                  - SO
                  - SR
                  - SS
                  - ST
                  - SV
                  - SX
                  - SY
                  - SZ
                  - TC
                  - TD
                  - TF
                  - TG
                  - TH
                  - TJ
                  - TK
                  - TL
                  - TM
                  - TN
                  - TO
                  - TR
                  - TT
                  - TV
                  - TW
                  - TZ
                  - UA
                  - UG
                  - UM
                  - US
                  - UY
                  - UZ
                  - VA
                  - VC
                  - VE
                  - VG
                  - VI
                  - VN
                  - VU
                  - WF
                  - WS
                  - XK
                  - YE
                  - YT
                  - ZA
                  - ZM
                  - ZW
                description: >-
                  Deprecated, use `countries`. The single country this price
                  configuration is eligible in, or `null` when it applies to
                  every country — or to several, which this field cannot
                  express.
                example: FR
                deprecated: true
              countries:
                type:
                  - array
                  - 'null'
                items:
                  type: string
                  enum:
                    - AD
                    - AE
                    - AF
                    - AG
                    - AI
                    - AL
                    - AM
                    - AO
                    - AQ
                    - AR
                    - AS
                    - AT
                    - AU
                    - AW
                    - AX
                    - AZ
                    - BA
                    - BB
                    - BD
                    - BE
                    - BG
                    - BH
                    - BI
                    - BJ
                    - BL
                    - BM
                    - BN
                    - BO
                    - BQ
                    - BR
                    - BS
                    - BT
                    - BF
                    - BV
                    - BW
                    - BY
                    - BZ
                    - CA
                    - CC
                    - CD
                    - CF
                    - CG
                    - CH
                    - CI
                    - CK
                    - CL
                    - CM
                    - CN
                    - CO
                    - CR
                    - CU
                    - CV
                    - CW
                    - CX
                    - CY
                    - CZ
                    - DE
                    - DJ
                    - DK
                    - DM
                    - DO
                    - DZ
                    - EC
                    - EE
                    - EG
                    - EH
                    - ER
                    - ES
                    - ES-CE
                    - ES-ML
                    - ET
                    - FI
                    - FJ
                    - FK
                    - FM
                    - FO
                    - FR
                    - GA
                    - GB
                    - GD
                    - GE
                    - GF
                    - GG
                    - GH
                    - GI
                    - GL
                    - GM
                    - GN
                    - GP
                    - GQ
                    - GR
                    - GS
                    - GT
                    - GU
                    - GW
                    - GY
                    - HK
                    - HM
                    - HN
                    - HR
                    - HT
                    - HU
                    - IC
                    - ID
                    - IE
                    - IL
                    - IM
                    - IN
                    - IO
                    - IQ
                    - IR
                    - IS
                    - IT
                    - JE
                    - JM
                    - JO
                    - JP
                    - KE
                    - KG
                    - KH
                    - KI
                    - KM
                    - KN
                    - KP
                    - KR
                    - KW
                    - KY
                    - KZ
                    - LA
                    - LB
                    - LC
                    - LI
                    - LK
                    - LR
                    - LS
                    - LT
                    - LU
                    - LV
                    - LY
                    - MA
                    - MC
                    - MD
                    - ME
                    - MF
                    - MG
                    - MH
                    - MK
                    - ML
                    - MM
                    - MN
                    - MO
                    - MP
                    - MQ
                    - MR
                    - MS
                    - MT
                    - MU
                    - MV
                    - MW
                    - MX
                    - MY
                    - MZ
                    - NA
                    - NC
                    - NE
                    - NF
                    - NG
                    - NI
                    - NL
                    - 'NO'
                    - NP
                    - NR
                    - NU
                    - NZ
                    - OM
                    - PA
                    - PE
                    - PF
                    - PG
                    - PH
                    - PK
                    - PL
                    - PM
                    - PN
                    - PR
                    - PS
                    - PT
                    - PT-20
                    - PT-30
                    - PW
                    - PY
                    - QA
                    - RE
                    - RO
                    - RS
                    - RU
                    - RW
                    - SA
                    - SB
                    - SC
                    - SD
                    - SE
                    - SG
                    - SH
                    - SI
                    - SJ
                    - SK
                    - SL
                    - SM
                    - SN
                    - SO
                    - SR
                    - SS
                    - ST
                    - SV
                    - SX
                    - SY
                    - SZ
                    - TC
                    - TD
                    - TF
                    - TG
                    - TH
                    - TJ
                    - TK
                    - TL
                    - TM
                    - TN
                    - TO
                    - TR
                    - TT
                    - TV
                    - TW
                    - TZ
                    - UA
                    - UG
                    - UM
                    - US
                    - UY
                    - UZ
                    - VA
                    - VC
                    - VE
                    - VG
                    - VI
                    - VN
                    - VU
                    - WF
                    - WS
                    - XK
                    - YE
                    - YT
                    - ZA
                    - ZM
                    - ZW
                  description: >-
                    Two-letter country code in ISO format. See [ISO 3166-1
                    alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                  example: FR
                description: >-
                  Countries this price configuration is eligible in. `null`
                  means it applies to every country; an empty array means it
                  applies only to customers that have no country set.
              plan_id:
                type:
                  - string
                  - 'null'
                description: ID of the plan on which this price configuration is eligible.
                deprecated: true
              billing_interval:
                anyOf:
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - once
                    required:
                      - period
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - days
                          - weeks
                          - months
                          - years
                      count:
                        type: number
                    required:
                      - period
                      - count
                  - type: 'null'
                description: Billing interval on which the price configuration is eligible.
              commitment_interval:
                anyOf:
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - all
                    required:
                      - period
                  - type: object
                    properties:
                      period:
                        type: string
                        enum:
                          - weeks
                          - months
                          - years
                      count:
                        type: number
                    required:
                      - period
                      - count
                  - type: 'null'
                description: >-
                  Commitment interval on which the price configuration is
                  eligible.
              updated_at:
                type: string
                format: date
                description: Last edition date of the price configuration.
              archived_at:
                type:
                  - string
                  - 'null'
                format: date
                description: Date of the price configuration archival.
              integrations:
                type: array
                items:
                  type: object
                  properties:
                    entity_id:
                      type: string
                      description: ID of the entity in the provider.
                    provider_name:
                      type: string
                      enum:
                        - adyen
                        - stripe
                        - mollie
                        - gocardless
                        - airwallex
                        - paypal
                        - salesforce
                        - hubspot
                        - attio
                        - xero
                        - pennylane
                        - zoho-books
                        - exact-online
                        - quickbooks
                        - netsuite
                        - rillet
                        - campfire
                        - dualentry
                        - datev
                        - anrok
                        - sphere
                        - chargebee
                        - slack
                        - plain
                        - zendesk
                        - pylon
                        - intercom
                        - front
                        - helpscout
                        - claap
                        - grain
                        - gong
                        - jiminny
                        - modjo
                        - posthog
                      description: Provider name.
                    provider_account_id:
                      type: string
                      description: ID of the connected provider account.
                    created_at:
                      type:
                        - string
                        - 'null'
                      format: date-time
                      description: >-
                        Creation date of the entity in the provider, when it was
                        imported from there. Exposed on products, coupons and
                        subscriptions; `null` when the provider does not report
                        one.
                      example: '2024-12-20T16:04:11Z'
                    activated_at:
                      type:
                        - string
                        - 'null'
                      format: date-time
                      description: >-
                        Activation date of the entity in the provider, when it
                        was imported from there. Exposed on subscriptions;
                        `null` when the provider does not report one.
                      example: '2024-12-20T16:04:11Z'
                  required:
                    - entity_id
                    - provider_name
                    - provider_account_id
                  description: Reference to the entity in an external provider.
                  example:
                    entity_id: '123456789'
                    provider_name: stripe
                    provider_account_id: acc_1234567890
                description: References to this price configuration in external providers.
              type:
                type: string
                enum:
                  - fee
              prices:
                type: array
                items:
                  $ref: '#/components/schemas/PriceFee'
                maxItems: 1
                description: >-
                  Price tiers of the price configuration. If fixed amount, only
                  one price is available.
            required:
              - id
              - product_id
              - price_book_id
              - status
              - currency
              - country
              - countries
              - plan_id
              - billing_interval
              - commitment_interval
              - updated_at
              - archived_at
              - integrations
              - type
              - prices
          description: >-
            Only the first 50 price configurations are returned. To retrieve all
            configurations, paginate through `GET /v1/price-configurations`
            filtered by `product_id`.
      required:
        - id
        - name
        - status
        - description
        - description_display_interval_dates
        - public_description
        - translations
        - properties
        - custom_properties
        - accounting
        - integrations
        - type
        - is_available_on_demand
        - is_available_on_subscription
        - price_configurations
      title: Fee product
    ProductSeat:
      type: object
      properties:
        id:
          type: string
          description: Product ID.
          example: itm_3kXODDF42QXtnL
        name:
          type: string
          description: Product name.
          example: Product name
        status:
          type: string
          enum:
            - active
            - archived
          description: >

            Product status.


            - `active`: The product is active and can be used in new
            quotes/subscriptions/invoices.

            - `archived`: The product is archived and can't be used anymore.
          example: active
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
          description: Product name and description translations.
        properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: 'null'
              - type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                    - type: 'null'
                    - type: 'null'
              - type: 'null'
          description: Key/value pairs to store any metadata useful in your context.
          example: null
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        integrations:
          type: array
          items:
            type: object
            properties:
              entity_id:
                type: string
                description: ID of the entity in the provider.
              provider_name:
                type: string
                enum:
                  - adyen
                  - stripe
                  - mollie
                  - gocardless
                  - airwallex
                  - paypal
                  - salesforce
                  - hubspot
                  - attio
                  - xero
                  - pennylane
                  - zoho-books
                  - exact-online
                  - quickbooks
                  - netsuite
                  - rillet
                  - campfire
                  - dualentry
                  - datev
                  - anrok
                  - sphere
                  - chargebee
                  - slack
                  - plain
                  - zendesk
                  - pylon
                  - intercom
                  - front
                  - helpscout
                  - claap
                  - grain
                  - gong
                  - jiminny
                  - modjo
                  - posthog
                description: Provider name.
              provider_account_id:
                type: string
                description: ID of the connected provider account.
              created_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Creation date of the entity in the provider, when it was
                  imported from there. Exposed on products, coupons and
                  subscriptions; `null` when the provider does not report one.
                example: '2024-12-20T16:04:11Z'
              activated_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Activation date of the entity in the provider, when it was
                  imported from there. Exposed on subscriptions; `null` when the
                  provider does not report one.
                example: '2024-12-20T16:04:11Z'
            required:
              - entity_id
              - provider_name
              - provider_account_id
            description: Reference to the entity in an external provider.
            example:
              entity_id: '123456789'
              provider_name: stripe
              provider_account_id: acc_1234567890
          description: >-
            References to this product in external providers (billing,
            accounting, etc).
        type:
          type: string
          enum:
            - seat
          description: Product type.
        aggregator:
          allOf:
            - $ref: '#/components/schemas/Aggregator'
            - type:
                - object
                - 'null'
        price_configurations:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - volume
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceVolume'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Volume
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - packaged
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PricePackaged'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Packaged
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bulk
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBulk'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Bulk
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bundle
                  allow_on_portal:
                    type: boolean
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBundle'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - allow_on_portal
                  - prices
                title: Bundle
          description: >-
            Only the first 50 price configurations are returned. To retrieve all
            configurations, paginate through `GET /v1/price-configurations`
            filtered by `product_id`.
      required:
        - id
        - name
        - status
        - description
        - description_display_interval_dates
        - public_description
        - translations
        - properties
        - custom_properties
        - accounting
        - integrations
        - type
        - aggregator
        - price_configurations
      title: Seat product
    ProductDynamic:
      type: object
      properties:
        id:
          type: string
          description: Product ID.
          example: itm_3kXODDF42QXtnL
        name:
          type: string
          description: Product name.
          example: Product name
        status:
          type: string
          enum:
            - active
            - archived
          description: >

            Product status.


            - `active`: The product is active and can be used in new
            quotes/subscriptions/invoices.

            - `archived`: The product is archived and can't be used anymore.
          example: active
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
          description: Product name and description translations.
        properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: 'null'
              - type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                    - type: 'null'
                    - type: 'null'
              - type: 'null'
          description: Key/value pairs to store any metadata useful in your context.
          example: null
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        integrations:
          type: array
          items:
            type: object
            properties:
              entity_id:
                type: string
                description: ID of the entity in the provider.
              provider_name:
                type: string
                enum:
                  - adyen
                  - stripe
                  - mollie
                  - gocardless
                  - airwallex
                  - paypal
                  - salesforce
                  - hubspot
                  - attio
                  - xero
                  - pennylane
                  - zoho-books
                  - exact-online
                  - quickbooks
                  - netsuite
                  - rillet
                  - campfire
                  - dualentry
                  - datev
                  - anrok
                  - sphere
                  - chargebee
                  - slack
                  - plain
                  - zendesk
                  - pylon
                  - intercom
                  - front
                  - helpscout
                  - claap
                  - grain
                  - gong
                  - jiminny
                  - modjo
                  - posthog
                description: Provider name.
              provider_account_id:
                type: string
                description: ID of the connected provider account.
              created_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Creation date of the entity in the provider, when it was
                  imported from there. Exposed on products, coupons and
                  subscriptions; `null` when the provider does not report one.
                example: '2024-12-20T16:04:11Z'
              activated_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Activation date of the entity in the provider, when it was
                  imported from there. Exposed on subscriptions; `null` when the
                  provider does not report one.
                example: '2024-12-20T16:04:11Z'
            required:
              - entity_id
              - provider_name
              - provider_account_id
            description: Reference to the entity in an external provider.
            example:
              entity_id: '123456789'
              provider_name: stripe
              provider_account_id: acc_1234567890
          description: >-
            References to this product in external providers (billing,
            accounting, etc).
        type:
          type: string
          enum:
            - dynamic
          description: Product type.
        aggregator:
          allOf:
            - $ref: '#/components/schemas/Aggregator'
            - type:
                - object
                - 'null'
        price_configurations:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - volume
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceVolume'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Volume
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - packaged
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PricePackaged'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Packaged
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bulk
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBulk'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Bulk
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bps
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBps'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: BPS
          description: >-
            Only the first 50 price configurations are returned. To retrieve all
            configurations, paginate through `GET /v1/price-configurations`
            filtered by `product_id`.
      required:
        - id
        - name
        - status
        - description
        - description_display_interval_dates
        - public_description
        - translations
        - properties
        - custom_properties
        - accounting
        - integrations
        - type
        - aggregator
        - price_configurations
      title: Dynamic product
    ProductCredit:
      type: object
      properties:
        id:
          type: string
          description: Product ID.
          example: itm_3kXODDF42QXtnL
        name:
          type: string
          description: Product name.
          example: Product name
        status:
          type: string
          enum:
            - active
            - archived
          description: >

            Product status.


            - `active`: The product is active and can be used in new
            quotes/subscriptions/invoices.

            - `archived`: The product is archived and can't be used anymore.
          example: active
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
          description: Product name and description translations.
        properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: 'null'
              - type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                    - type: 'null'
                    - type: 'null'
              - type: 'null'
          description: Key/value pairs to store any metadata useful in your context.
          example: null
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        integrations:
          type: array
          items:
            type: object
            properties:
              entity_id:
                type: string
                description: ID of the entity in the provider.
              provider_name:
                type: string
                enum:
                  - adyen
                  - stripe
                  - mollie
                  - gocardless
                  - airwallex
                  - paypal
                  - salesforce
                  - hubspot
                  - attio
                  - xero
                  - pennylane
                  - zoho-books
                  - exact-online
                  - quickbooks
                  - netsuite
                  - rillet
                  - campfire
                  - dualentry
                  - datev
                  - anrok
                  - sphere
                  - chargebee
                  - slack
                  - plain
                  - zendesk
                  - pylon
                  - intercom
                  - front
                  - helpscout
                  - claap
                  - grain
                  - gong
                  - jiminny
                  - modjo
                  - posthog
                description: Provider name.
              provider_account_id:
                type: string
                description: ID of the connected provider account.
              created_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Creation date of the entity in the provider, when it was
                  imported from there. Exposed on products, coupons and
                  subscriptions; `null` when the provider does not report one.
                example: '2024-12-20T16:04:11Z'
              activated_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Activation date of the entity in the provider, when it was
                  imported from there. Exposed on subscriptions; `null` when the
                  provider does not report one.
                example: '2024-12-20T16:04:11Z'
            required:
              - entity_id
              - provider_name
              - provider_account_id
            description: Reference to the entity in an external provider.
            example:
              entity_id: '123456789'
              provider_name: stripe
              provider_account_id: acc_1234567890
          description: >-
            References to this product in external providers (billing,
            accounting, etc).
        type:
          type: string
          enum:
            - credit
          description: Product type.
        aggregator:
          allOf:
            - $ref: '#/components/schemas/Aggregator'
            - type:
                - object
                - 'null'
        credit_aggregators:
          type: array
          items:
            $ref: '#/components/schemas/CreditAggregatorResponse'
          description: >-
            Multiple aggregators with weights for multi-aggregator credit
            consumption.
        low_credits_threshold:
          type:
            - number
            - 'null'
          description: Threshold indicating a low level of credits.
          example: null
        credits_grant_mode:
          type: string
          enum:
            - prorated
            - full_allowance
          description: >

            How the periodic credit allowance is granted for partial billing
            periods.


            - `prorated` (default): the granted credits are prorated to the
            elapsed period.

            - `full_allowance`: the full allowance is always granted (the
            invoice remains prorated).
          example: prorated
        credits_balance_auto_creation_enabled:
          type: boolean
          description: >-
            Default for the `credits_balance_auto_creation_enabled` setting of
            subscription products using this credit product: whether the
            customer credit balance is created as soon as the product is added
            to a subscription. `true` when unset. A subscription product can
            override it.
          example: true
        price_configurations:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - volume
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceVolume'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Volume
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bulk
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBulk'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Bulk
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bundle
                  allow_on_portal:
                    type: boolean
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBundle'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - allow_on_portal
                  - prices
                title: Bundle
          description: >-
            Only the first 50 price configurations are returned. To retrieve all
            configurations, paginate through `GET /v1/price-configurations`
            filtered by `product_id`.
      required:
        - id
        - name
        - status
        - description
        - description_display_interval_dates
        - public_description
        - translations
        - properties
        - custom_properties
        - accounting
        - integrations
        - type
        - aggregator
        - low_credits_threshold
        - credits_grant_mode
        - credits_balance_auto_creation_enabled
        - price_configurations
      title: Credit product
    ProductBundle:
      type: object
      properties:
        id:
          type: string
          description: Product ID.
          example: itm_3kXODDF42QXtnL
        name:
          type: string
          description: Product name.
          example: Product name
        status:
          type: string
          enum:
            - active
            - archived
          description: >

            Product status.


            - `active`: The product is active and can be used in new
            quotes/subscriptions/invoices.

            - `archived`: The product is archived and can't be used anymore.
          example: active
        description:
          type:
            - string
            - 'null'
          description: Product description.
          example: Product internal description
        description_display_interval_dates:
          type: boolean
          description: >-
            Indicates if the dates of the interval should be automatically added
            in the product description on the invoices.
        public_description:
          type:
            - string
            - 'null'
          description: Public description of the product.
          example: Product public description
        translations:
          type:
            - object
            - 'null'
          additionalProperties:
            type: object
            properties:
              name:
                type:
                  - string
                  - 'null'
              public_description:
                type:
                  - string
                  - 'null'
          description: Product name and description translations.
        properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: 'null'
              - type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                    - type: 'null'
                    - type: 'null'
              - type: 'null'
          description: Key/value pairs to store any metadata useful in your context.
          example: null
        custom_properties:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        accounting:
          $ref: '#/components/schemas/ProductAccounting'
        integrations:
          type: array
          items:
            type: object
            properties:
              entity_id:
                type: string
                description: ID of the entity in the provider.
              provider_name:
                type: string
                enum:
                  - adyen
                  - stripe
                  - mollie
                  - gocardless
                  - airwallex
                  - paypal
                  - salesforce
                  - hubspot
                  - attio
                  - xero
                  - pennylane
                  - zoho-books
                  - exact-online
                  - quickbooks
                  - netsuite
                  - rillet
                  - campfire
                  - dualentry
                  - datev
                  - anrok
                  - sphere
                  - chargebee
                  - slack
                  - plain
                  - zendesk
                  - pylon
                  - intercom
                  - front
                  - helpscout
                  - claap
                  - grain
                  - gong
                  - jiminny
                  - modjo
                  - posthog
                description: Provider name.
              provider_account_id:
                type: string
                description: ID of the connected provider account.
              created_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Creation date of the entity in the provider, when it was
                  imported from there. Exposed on products, coupons and
                  subscriptions; `null` when the provider does not report one.
                example: '2024-12-20T16:04:11Z'
              activated_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Activation date of the entity in the provider, when it was
                  imported from there. Exposed on subscriptions; `null` when the
                  provider does not report one.
                example: '2024-12-20T16:04:11Z'
            required:
              - entity_id
              - provider_name
              - provider_account_id
            description: Reference to the entity in an external provider.
            example:
              entity_id: '123456789'
              provider_name: stripe
              provider_account_id: acc_1234567890
          description: >-
            References to this product in external providers (billing,
            accounting, etc).
        type:
          type: string
          enum:
            - bundle
          description: Product type.
        display_mode:
          type: string
          enum:
            - single_line
            - ventilated
          description: How bundle items are displayed on invoices
        exclusive_items_enabled:
          type:
            - boolean
            - 'null'
          description: When true, only one item in the bundle can be active at a time
        bundle_items:
          type: array
          items:
            $ref: '#/components/schemas/BundleProductItem'
          description: Products included in this bundle with their percentages
        price_configurations:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - volume
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceVolume'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Volume
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - packaged
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PricePackaged'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Packaged
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bulk
                  aggregator_filter_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the metering filter attached to this price
                      configuration.
                  metering_filter:
                    $ref: '#/components/schemas/MeteringFilter'
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBulk'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - aggregator_filter_id
                  - metering_filter
                  - prices
                title: Bulk
              - type: object
                properties:
                  id:
                    type: string
                    description: Price configuration ID.
                  product_id:
                    type: string
                    description: ID of the product this price configuration belongs to.
                  price_book_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the price book the price configuration belongs to.
                      If null, the price configuration belongs to the default
                      price book.
                  status:
                    type: string
                    enum:
                      - active
                      - archived
                    description: Price configuration status.
                    example: active
                  currency:
                    type:
                      - string
                      - 'null'
                    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. See [ISO
                      4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
                    example: EUR
                  country:
                    type:
                      - string
                      - 'null'
                    enum:
                      - AD
                      - AE
                      - AF
                      - AG
                      - AI
                      - AL
                      - AM
                      - AO
                      - AQ
                      - AR
                      - AS
                      - AT
                      - AU
                      - AW
                      - AX
                      - AZ
                      - BA
                      - BB
                      - BD
                      - BE
                      - BG
                      - BH
                      - BI
                      - BJ
                      - BL
                      - BM
                      - BN
                      - BO
                      - BQ
                      - BR
                      - BS
                      - BT
                      - BF
                      - BV
                      - BW
                      - BY
                      - BZ
                      - CA
                      - CC
                      - CD
                      - CF
                      - CG
                      - CH
                      - CI
                      - CK
                      - CL
                      - CM
                      - CN
                      - CO
                      - CR
                      - CU
                      - CV
                      - CW
                      - CX
                      - CY
                      - CZ
                      - DE
                      - DJ
                      - DK
                      - DM
                      - DO
                      - DZ
                      - EC
                      - EE
                      - EG
                      - EH
                      - ER
                      - ES
                      - ES-CE
                      - ES-ML
                      - ET
                      - FI
                      - FJ
                      - FK
                      - FM
                      - FO
                      - FR
                      - GA
                      - GB
                      - GD
                      - GE
                      - GF
                      - GG
                      - GH
                      - GI
                      - GL
                      - GM
                      - GN
                      - GP
                      - GQ
                      - GR
                      - GS
                      - GT
                      - GU
                      - GW
                      - GY
                      - HK
                      - HM
                      - HN
                      - HR
                      - HT
                      - HU
                      - IC
                      - ID
                      - IE
                      - IL
                      - IM
                      - IN
                      - IO
                      - IQ
                      - IR
                      - IS
                      - IT
                      - JE
                      - JM
                      - JO
                      - JP
                      - KE
                      - KG
                      - KH
                      - KI
                      - KM
                      - KN
                      - KP
                      - KR
                      - KW
                      - KY
                      - KZ
                      - LA
                      - LB
                      - LC
                      - LI
                      - LK
                      - LR
                      - LS
                      - LT
                      - LU
                      - LV
                      - LY
                      - MA
                      - MC
                      - MD
                      - ME
                      - MF
                      - MG
                      - MH
                      - MK
                      - ML
                      - MM
                      - MN
                      - MO
                      - MP
                      - MQ
                      - MR
                      - MS
                      - MT
                      - MU
                      - MV
                      - MW
                      - MX
                      - MY
                      - MZ
                      - NA
                      - NC
                      - NE
                      - NF
                      - NG
                      - NI
                      - NL
                      - 'NO'
                      - NP
                      - NR
                      - NU
                      - NZ
                      - OM
                      - PA
                      - PE
                      - PF
                      - PG
                      - PH
                      - PK
                      - PL
                      - PM
                      - PN
                      - PR
                      - PS
                      - PT
                      - PT-20
                      - PT-30
                      - PW
                      - PY
                      - QA
                      - RE
                      - RO
                      - RS
                      - RU
                      - RW
                      - SA
                      - SB
                      - SC
                      - SD
                      - SE
                      - SG
                      - SH
                      - SI
                      - SJ
                      - SK
                      - SL
                      - SM
                      - SN
                      - SO
                      - SR
                      - SS
                      - ST
                      - SV
                      - SX
                      - SY
                      - SZ
                      - TC
                      - TD
                      - TF
                      - TG
                      - TH
                      - TJ
                      - TK
                      - TL
                      - TM
                      - TN
                      - TO
                      - TR
                      - TT
                      - TV
                      - TW
                      - TZ
                      - UA
                      - UG
                      - UM
                      - US
                      - UY
                      - UZ
                      - VA
                      - VC
                      - VE
                      - VG
                      - VI
                      - VN
                      - VU
                      - WF
                      - WS
                      - XK
                      - YE
                      - YT
                      - ZA
                      - ZM
                      - ZW
                    description: >-
                      Deprecated, use `countries`. The single country this price
                      configuration is eligible in, or `null` when it applies to
                      every country — or to several, which this field cannot
                      express.
                    example: FR
                    deprecated: true
                  countries:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - AD
                        - AE
                        - AF
                        - AG
                        - AI
                        - AL
                        - AM
                        - AO
                        - AQ
                        - AR
                        - AS
                        - AT
                        - AU
                        - AW
                        - AX
                        - AZ
                        - BA
                        - BB
                        - BD
                        - BE
                        - BG
                        - BH
                        - BI
                        - BJ
                        - BL
                        - BM
                        - BN
                        - BO
                        - BQ
                        - BR
                        - BS
                        - BT
                        - BF
                        - BV
                        - BW
                        - BY
                        - BZ
                        - CA
                        - CC
                        - CD
                        - CF
                        - CG
                        - CH
                        - CI
                        - CK
                        - CL
                        - CM
                        - CN
                        - CO
                        - CR
                        - CU
                        - CV
                        - CW
                        - CX
                        - CY
                        - CZ
                        - DE
                        - DJ
                        - DK
                        - DM
                        - DO
                        - DZ
                        - EC
                        - EE
                        - EG
                        - EH
                        - ER
                        - ES
                        - ES-CE
                        - ES-ML
                        - ET
                        - FI
                        - FJ
                        - FK
                        - FM
                        - FO
                        - FR
                        - GA
                        - GB
                        - GD
                        - GE
                        - GF
                        - GG
                        - GH
                        - GI
                        - GL
                        - GM
                        - GN
                        - GP
                        - GQ
                        - GR
                        - GS
                        - GT
                        - GU
                        - GW
                        - GY
                        - HK
                        - HM
                        - HN
                        - HR
                        - HT
                        - HU
                        - IC
                        - ID
                        - IE
                        - IL
                        - IM
                        - IN
                        - IO
                        - IQ
                        - IR
                        - IS
                        - IT
                        - JE
                        - JM
                        - JO
                        - JP
                        - KE
                        - KG
                        - KH
                        - KI
                        - KM
                        - KN
                        - KP
                        - KR
                        - KW
                        - KY
                        - KZ
                        - LA
                        - LB
                        - LC
                        - LI
                        - LK
                        - LR
                        - LS
                        - LT
                        - LU
                        - LV
                        - LY
                        - MA
                        - MC
                        - MD
                        - ME
                        - MF
                        - MG
                        - MH
                        - MK
                        - ML
                        - MM
                        - MN
                        - MO
                        - MP
                        - MQ
                        - MR
                        - MS
                        - MT
                        - MU
                        - MV
                        - MW
                        - MX
                        - MY
                        - MZ
                        - NA
                        - NC
                        - NE
                        - NF
                        - NG
                        - NI
                        - NL
                        - 'NO'
                        - NP
                        - NR
                        - NU
                        - NZ
                        - OM
                        - PA
                        - PE
                        - PF
                        - PG
                        - PH
                        - PK
                        - PL
                        - PM
                        - PN
                        - PR
                        - PS
                        - PT
                        - PT-20
                        - PT-30
                        - PW
                        - PY
                        - QA
                        - RE
                        - RO
                        - RS
                        - RU
                        - RW
                        - SA
                        - SB
                        - SC
                        - SD
                        - SE
                        - SG
                        - SH
                        - SI
                        - SJ
                        - SK
                        - SL
                        - SM
                        - SN
                        - SO
                        - SR
                        - SS
                        - ST
                        - SV
                        - SX
                        - SY
                        - SZ
                        - TC
                        - TD
                        - TF
                        - TG
                        - TH
                        - TJ
                        - TK
                        - TL
                        - TM
                        - TN
                        - TO
                        - TR
                        - TT
                        - TV
                        - TW
                        - TZ
                        - UA
                        - UG
                        - UM
                        - US
                        - UY
                        - UZ
                        - VA
                        - VC
                        - VE
                        - VG
                        - VI
                        - VN
                        - VU
                        - WF
                        - WS
                        - XK
                        - YE
                        - YT
                        - ZA
                        - ZM
                        - ZW
                      description: >-
                        Two-letter country code in ISO format. See [ISO 3166-1
                        alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
                      example: FR
                    description: >-
                      Countries this price configuration is eligible in. `null`
                      means it applies to every country; an empty array means it
                      applies only to customers that have no country set.
                  plan_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the plan on which this price configuration is
                      eligible.
                    deprecated: true
                  billing_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - once
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - days
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Billing interval on which the price configuration is
                      eligible.
                  commitment_interval:
                    anyOf:
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - all
                        required:
                          - period
                      - type: object
                        properties:
                          period:
                            type: string
                            enum:
                              - weeks
                              - months
                              - years
                          count:
                            type: number
                        required:
                          - period
                          - count
                      - type: 'null'
                    description: >-
                      Commitment interval on which the price configuration is
                      eligible.
                  updated_at:
                    type: string
                    format: date
                    description: Last edition date of the price configuration.
                  archived_at:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Date of the price configuration archival.
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        entity_id:
                          type: string
                          description: ID of the entity in the provider.
                        provider_name:
                          type: string
                          enum:
                            - adyen
                            - stripe
                            - mollie
                            - gocardless
                            - airwallex
                            - paypal
                            - salesforce
                            - hubspot
                            - attio
                            - xero
                            - pennylane
                            - zoho-books
                            - exact-online
                            - quickbooks
                            - netsuite
                            - rillet
                            - campfire
                            - dualentry
                            - datev
                            - anrok
                            - sphere
                            - chargebee
                            - slack
                            - plain
                            - zendesk
                            - pylon
                            - intercom
                            - front
                            - helpscout
                            - claap
                            - grain
                            - gong
                            - jiminny
                            - modjo
                            - posthog
                          description: Provider name.
                        provider_account_id:
                          type: string
                          description: ID of the connected provider account.
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Creation date of the entity in the provider, when it
                            was imported from there. Exposed on products,
                            coupons and subscriptions; `null` when the provider
                            does not report one.
                          example: '2024-12-20T16:04:11Z'
                        activated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: >-
                            Activation date of the entity in the provider, when
                            it was imported from there. Exposed on
                            subscriptions; `null` when the provider does not
                            report one.
                          example: '2024-12-20T16:04:11Z'
                      required:
                        - entity_id
                        - provider_name
                        - provider_account_id
                      description: Reference to the entity in an external provider.
                      example:
                        entity_id: '123456789'
                        provider_name: stripe
                        provider_account_id: acc_1234567890
                    description: >-
                      References to this price configuration in external
                      providers.
                  type:
                    type: string
                    enum:
                      - bundle
                  allow_on_portal:
                    type: boolean
                  prices:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBundle'
                    description: >-
                      Price tiers of the price configuration. If fixed amount,
                      only one price is available.
                required:
                  - id
                  - product_id
                  - price_book_id
                  - status
                  - currency
                  - country
                  - countries
                  - plan_id
                  - billing_interval
                  - commitment_interval
                  - updated_at
                  - archived_at
                  - integrations
                  - type
                  - allow_on_portal
                  - prices
                title: Bundle
          description: >-
            Only the first 50 price configurations are returned. To retrieve all
            configurations, paginate through `GET /v1/price-configurations`
            filtered by `product_id`.
      required:
        - id
        - name
        - status
        - description
        - description_display_interval_dates
        - public_description
        - translations
        - properties
        - custom_properties
        - accounting
        - integrations
        - type
        - display_mode
        - exclusive_items_enabled
        - bundle_items
        - price_configurations
      title: Bundle product
    ProductAccounting:
      type: object
      additionalProperties:
        type: object
        properties:
          tax_rate_id:
            type:
              - string
              - 'null'
            description: >-
              ID of the custom tax rate applied to the product. Hyperline
              applies it when it calculates taxes; it is not synced with a
              billing provider such as Stripe.
            example: taxr_YfiSnLIYORD9VN
          product_code:
            type:
              - string
              - 'null'
            description: >-
              Code used to reconcile the product with the external accounting
              tool. Usually, it corresponds to the product ID in the accounting
              software.
            example: PROD-23
          account_code:
            type:
              - string
              - 'null'
            description: >-
              Code used to assign related invoices line items to a General
              Ledger account in your external accounting tool.
            example: GL-001
          integrations:
            type: object
            properties:
              xero:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              pennylane:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              zoho-books:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              exact-online:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              quickbooks:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              netsuite:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              rillet:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              campfire:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              dualentry:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              datev:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              anrok:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
              sphere:
                type: object
                properties:
                  product_id:
                    type:
                      - string
                      - 'null'
                    description: ID of the product in the accounting provider.
                    example: '123'
                  revrec_rule_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      ID of the revenue recognition rule in the accounting
                      provider.
                    example: '456'
            default: {}
            description: Provider-specific accounting settings keyed by integration slug.
      description: Mapping invoicing entity ID/accounting settings.
    PriceFee:
      type: object
      properties:
        type:
          type: string
          enum:
            - fee
        id:
          type: string
          description: Price ID.
        amount:
          type: number
          description: Monetary amount. Expressed in currency's smallest unit.
      required:
        - type
        - amount
    CreateCountAggregator:
      type: object
      properties:
        entity:
          type: string
          description: The billable event entity to aggregate.
          example: api_calls
        type:
          type: string
          enum:
            - metered
            - licensed
          default: metered
          description: The type of aggregator.
        where:
          type:
            - object
            - 'null'
          properties:
            conditional:
              type: string
              enum:
                - and
                - or
            fields:
              type: array
              items:
                allOf:
                  - type: object
                    properties:
                      property:
                        type: string
                    required:
                      - property
                  - oneOf:
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - isNull
                              - isNotNull
                        required:
                          - operator
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - in
                              - notIn
                          value:
                            type: string
                        required:
                          - operator
                          - value
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - gte
                              - gt
                              - lt
                              - lte
                          value:
                            type: number
                        required:
                          - operator
                          - value
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - equals
                              - notEqual
                          value:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                        required:
                          - operator
                          - value
          required:
            - conditional
            - fields
          description: Filter conditions for the aggregation.
        name:
          type: string
          description: Name of the aggregator.
        description:
          type:
            - string
            - 'null'
          description: Description of the aggregator.
        allow_negative_values:
          type: boolean
          default: false
          description: Whether the aggregator can produce negative values.
        aggregate_on_customers_enabled:
          type: boolean
          default: false
          description: Whether the aggregator should aggregate on customers.
        custom_event_name:
          type: string
          description: Custom event name for the aggregator.
        exposed_event_keys:
          type: array
          items:
            type: string
          description: Event keys exposed by the aggregator.
        unit_name:
          type:
            - string
            - 'null'
          description: >-
            Display name of the unit being measured (e.g. 'user', 'request').
            Used as fallback for products attached to this aggregator.
          example: user
        default_interval_count:
          type: integer
          description: Default interval count for usage periods.
        default_interval_period:
          type: string
          enum:
            - days
            - weeks
            - months
            - years
          description: Default interval period for usage periods.
        thresholds:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: Name of the threshold.
              type:
                type: string
                enum:
                  - fixed
                  - committed_count
                  - top_tier
                  - current_tier
                description: >-
                  Threshold type, cannot be changed once created. Defaults to
                  `fixed`.

                  - `fixed`: `threshold_value` is an absolute usage value.

                  - `committed_count`: `threshold_value` is a percentage (e.g.
                  `180` for 180%) of the committed count of each customer
                  subscription using this aggregator, checked per subscription
                  on current-period usage. Must be above 0; only `gte` is
                  supported. Subscriptions without a committed count are
                  skipped.

                  - `top_tier`: `threshold_value` is a percentage (e.g. `80` for
                  80%) of the upper bound of the last bounded tier (where the
                  open-ended top tier starts, if any) of each customer
                  subscription's volume or bulk price, using the tiers of the
                  usage's aggregator filter. Checked per subscription on
                  current-period usage. Must be above 0; only `gte` is
                  supported. Subscriptions without a volume or bulk price are
                  skipped.

                  - `current_tier`: `threshold_value` is a percentage (e.g. `80`
                  for 80%) of the upper bound of the tier the usage currently
                  falls in (where the next tier starts) on each customer
                  subscription's volume or bulk price, using the tiers of the
                  usage's aggregator filter. Fires once per tier as usage
                  climbs, and never while usage is in the top tier. Checked per
                  subscription on current-period usage. Must be above 0; only
                  `gte` is supported. Subscriptions without a volume or bulk
                  price are skipped.
              threshold_value:
                type: number
                description: >-
                  The threshold value: an absolute usage value for `fixed`, a
                  percentage for `committed_count`, `top_tier` and
                  `current_tier`.
              comparison_operator:
                type: string
                enum:
                  - gte
                  - lte
                default: gte
                description: The comparison operator for the threshold.
            required:
              - threshold_value
          description: Thresholds for the aggregator.
        formula_sql:
          type: string
          description: Read-only formula expression; not accepted on public writes.
          deprecated: true
        operation:
          type: string
          enum:
            - count
          description: The aggregation operation to perform.
      required:
        - entity
        - operation
    CreateAggregator:
      oneOf:
        - $ref: '#/components/schemas/CreateCountAggregator'
        - $ref: '#/components/schemas/CreateSumAggregator'
      discriminator:
        propertyName: operation
        mapping:
          count: '#/components/schemas/CreateCountAggregator'
          sum: '#/components/schemas/CreateSumAggregator'
    MeteringFilterConfiguration:
      type: object
      properties:
        conditional:
          type: string
          enum:
            - and
            - or
          description: >-
            Logical operator used to combine multiple filter fields. `and`
            requires all fields to match, `or` requires at least one.
        fields:
          type: array
          items:
            allOf:
              - type: object
                properties:
                  property:
                    type: string
                    description: Name of the event property to filter on.
                required:
                  - property
              - oneOf:
                  - type: object
                    properties:
                      operator:
                        type: string
                        enum:
                          - is_null
                          - is_not_null
                        description: Comparison operator to apply on the property value.
                    required:
                      - operator
                    title: Null check
                  - type: object
                    properties:
                      operator:
                        type: string
                        enum:
                          - in
                          - not_in
                        description: Comparison operator to apply on the property value.
                      value:
                        type: string
                    required:
                      - operator
                      - value
                    title: List match
                  - type: object
                    properties:
                      operator:
                        type: string
                        enum:
                          - gte
                          - gt
                          - lt
                          - lte
                        description: Comparison operator to apply on the property value.
                      value:
                        type: number
                    required:
                      - operator
                      - value
                    title: Numeric comparison
                  - type: object
                    properties:
                      operator:
                        type: string
                        enum:
                          - equals
                          - not_equal
                        description: Comparison operator to apply on the property value.
                      value:
                        anyOf:
                          - type: string
                          - type: number
                          - type: boolean
                    required:
                      - operator
                      - value
                    title: Equality check
      required:
        - conditional
        - fields
      description: Configuration of the rules used to filter eligible events.
      example:
        conditional: and
        fields:
          - property: card_type
            operator: equals
            value: visa
          - property: kind
            operator: equals
            value: credit_card
    CreditAggregatorEntry:
      type: object
      properties:
        aggregator_id:
          type: string
          description: ID of an existing aggregator consuming the credits.
        weight:
          type: number
          default: 1
          description: Weight (credits consumed per 1 unit of usage from this aggregator).
          example: 1
      required:
        - aggregator_id
    CreateBundleProductItem:
      type: object
      properties:
        product_id:
          type: string
          description: ID of the product to include in the bundle.
        percentage:
          type: number
          exclusiveMinimum: 0
          description: >-
            Revenue share percentage for this item. All percentages must sum to
            100.
          example: 50
      required:
        - product_id
        - percentage
    Aggregator:
      type: object
      properties:
        id:
          type: string
        entity:
          type: string
        operation:
          type: string
          enum:
            - count
            - sum
            - sql_formula
        property:
          type:
            - string
            - 'null'
        formula_sql:
          type:
            - string
            - 'null'
        where:
          type:
            - object
            - 'null'
          properties:
            conditional:
              type: string
              enum:
                - and
                - or
            fields:
              type: array
              items:
                allOf:
                  - type: object
                    properties:
                      property:
                        type: string
                    required:
                      - property
                  - oneOf:
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - isNull
                              - isNotNull
                        required:
                          - operator
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - in
                              - notIn
                          value:
                            type: string
                        required:
                          - operator
                          - value
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - gte
                              - gt
                              - lt
                              - lte
                          value:
                            type: number
                        required:
                          - operator
                          - value
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - equals
                              - notEqual
                          value:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                        required:
                          - operator
                          - value
          required:
            - conditional
            - fields
        type:
          type: string
          enum:
            - metered
            - licensed
        name:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        allow_negative_values:
          type: boolean
        aggregate_on_customers_enabled:
          type: boolean
        default_interval_count:
          type:
            - integer
            - 'null'
        default_interval_period:
          type:
            - string
            - 'null'
          enum:
            - days
            - weeks
            - months
            - years
        custom_event_name:
          type:
            - string
            - 'null'
        exposed_event_keys:
          type: array
          items:
            type: string
        unit_name:
          type:
            - string
            - 'null'
        thresholds:
          type: array
          items:
            $ref: '#/components/schemas/AggregatorThreshold'
        created_at:
          type: string
          format: date
        updated_at:
          type: string
          format: date
      required:
        - id
        - entity
        - operation
        - property
        - where
        - type
        - name
        - description
        - allow_negative_values
        - aggregate_on_customers_enabled
        - default_interval_count
        - default_interval_period
        - custom_event_name
        - exposed_event_keys
        - unit_name
        - thresholds
        - created_at
        - updated_at
    MeteringFilter:
      type:
        - object
        - 'null'
      properties:
        name:
          type: string
          description: Name of the metering filter.
          example: VISA credit cards
        configuration:
          $ref: '#/components/schemas/MeteringFilterConfiguration'
      required:
        - name
        - configuration
      description: Metering filter to scope eligible billable events.
    PriceVolume:
      type: object
      properties:
        type:
          type: string
          enum:
            - volume
        id:
          type: string
          description: Price ID.
        amount:
          type: number
          description: >-
            Monetary amount of the price for the number of units defined by
            `unit_count`. Expressed in currency's smallest unit.
        unit_count:
          type: number
          description: Number of units considered for the amount.
        from:
          type: number
          description: From limit.
        to:
          type:
            - number
            - 'null'
          description: To limit.
        on_tier_incomplete:
          type:
            - string
            - 'null'
          enum:
            - pro_rata
            - pay_in_full
            - do_not_charge
            - flat_per_tier
          default: pro_rata
          description: >-

            Logic used to compute the amount when usage on the tier is
            incomplete.


            - `pro_rata`: The amount is computed using the pro rata of the
            tier's consumption.

            - `pay_in_full`: The amount corresponds to the full payment of the
            tier.

            - `do_not_charge`: The tier is not charged and ignored.

            - `flat_per_tier`: The tier's `amount` is a flat fee, billed once as
            soon as usage reaches the tier, whatever the number of units in it.
            `unitCount` is ignored. No usage bills nothing.
              
      required:
        - type
        - amount
        - unit_count
        - from
        - to
    PricePackaged:
      type: object
      properties:
        type:
          type: string
          enum:
            - packaged
        id:
          type: string
          description: Price ID.
        amount:
          type: number
          description: >-
            Monetary amount of the price for the number of units defined by
            `unit_count`. Expressed in currency's smallest unit.
        unit_count:
          type: number
          description: Number of units considered for the amount.
        from:
          type: number
          description: From limit.
        to:
          type:
            - number
            - 'null'
          description: To limit.
        on_bucket_incomplete:
          type:
            - string
            - 'null'
          enum:
            - pro_rata
            - pay_in_full
            - do_not_charge
            - flat_per_tier
          default: pro_rata
          description: >-

            Logic used to compute the amount when usage reaches an incomplete
            bucket (the bucket size corresponds to the `unitCount`).

              - `pro_rata`: The amount is computed using the pro rata of the bucket's consumption.
              - `pay_in_full`: The amount corresponds to the full payment of the bucket.
              - `do_not_charge`: The bucket is not charged and ignored.
              - `flat_per_tier`: The tier's `amount` is a flat fee, billed once as soon as usage reaches the tier, whatever the number of units in it. `unitCount` is ignored. No usage bills nothing.
                
      required:
        - type
        - amount
        - unit_count
        - from
        - to
    PriceBulk:
      type: object
      properties:
        type:
          type: string
          enum:
            - bulk
        id:
          type: string
          description: Price ID.
        amount:
          type: number
          description: >-
            Monetary amount of the price for the number of units defined by
            `unit_count`. Expressed in currency's smallest unit.
        unit_count:
          type: number
          description: Number of units considered for the amount.
        to:
          type:
            - number
            - 'null'
          description: To limit.
        on_tier_incomplete:
          type:
            - string
            - 'null'
          enum:
            - pro_rata
            - pay_in_full
            - do_not_charge
            - flat_per_tier
          default: pro_rata
          description: >-

            Logic used to compute the amount when usage on the tier is
            incomplete.


            - `pro_rata`: The amount is computed using the pro rata of the
            tier's consumption.

            - `pay_in_full`: The amount corresponds to the full payment of the
            tier.

            - `do_not_charge`: The tier is not charged and ignored.

            - `flat_per_tier`: The tier's `amount` is a flat fee, billed once as
            soon as usage reaches the tier, whatever the number of units in it.
            `unitCount` is ignored. No usage bills nothing.
              
      required:
        - type
        - amount
        - unit_count
        - to
    PriceBundle:
      type: object
      properties:
        type:
          type: string
          enum:
            - bundle
        id:
          type: string
          description: Price ID.
        amount:
          type: number
          description: >-
            Monetary amount of the price for the number of units defined by
            `unit_count`. Expressed in currency's smallest unit.
        unit_count:
          type: number
          description: Number of units considered for the amount.
      required:
        - type
        - amount
        - unit_count
    PriceBps:
      type: object
      properties:
        type:
          type: string
          enum:
            - bps
        id:
          type: string
          description: Price ID.
        from:
          type: number
          description: From limit.
        to:
          type:
            - number
            - 'null'
          description: To limit.
        percentage:
          type: number
          description: Percentage applied on each unit to compute the usage.
        per_unit_cap:
          type:
            - number
            - 'null'
          description: Maximum amount for one unit. Expressed in currency's smallest unit.
        per_unit_floor:
          type:
            - number
            - 'null'
          description: Minimum amount for one unit. Expressed in currency's smallest unit.
        per_unit_fee:
          type:
            - number
            - 'null'
          description: Fee amount applied per unit. Expressed in currency's smallest unit.
      required:
        - type
        - from
        - to
        - percentage
        - per_unit_cap
        - per_unit_floor
        - per_unit_fee
    CreditAggregatorResponse:
      type: object
      properties:
        aggregator_id:
          type: string
        aggregator:
          $ref: '#/components/schemas/Aggregator'
        weight:
          type: number
      required:
        - aggregator_id
        - aggregator
        - weight
    BundleProductItem:
      type: object
      properties:
        id:
          type: string
        product_id:
          type: string
        percentage:
          type: number
        product:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            type:
              type: string
          required:
            - id
            - name
            - type
      required:
        - id
        - product_id
        - percentage
    CreateSumAggregator:
      type: object
      properties:
        entity:
          type: string
          description: The billable event entity to aggregate.
          example: api_calls
        type:
          type: string
          enum:
            - metered
            - licensed
          default: metered
          description: The type of aggregator.
        where:
          type:
            - object
            - 'null'
          properties:
            conditional:
              type: string
              enum:
                - and
                - or
            fields:
              type: array
              items:
                allOf:
                  - type: object
                    properties:
                      property:
                        type: string
                    required:
                      - property
                  - oneOf:
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - isNull
                              - isNotNull
                        required:
                          - operator
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - in
                              - notIn
                          value:
                            type: string
                        required:
                          - operator
                          - value
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - gte
                              - gt
                              - lt
                              - lte
                          value:
                            type: number
                        required:
                          - operator
                          - value
                      - type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - equals
                              - notEqual
                          value:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                        required:
                          - operator
                          - value
          required:
            - conditional
            - fields
          description: Filter conditions for the aggregation.
        name:
          type: string
          description: Name of the aggregator.
        description:
          type:
            - string
            - 'null'
          description: Description of the aggregator.
        allow_negative_values:
          type: boolean
          default: false
          description: Whether the aggregator can produce negative values.
        aggregate_on_customers_enabled:
          type: boolean
          default: false
          description: Whether the aggregator should aggregate on customers.
        custom_event_name:
          type: string
          description: Custom event name for the aggregator.
        exposed_event_keys:
          type: array
          items:
            type: string
          description: Event keys exposed by the aggregator.
        unit_name:
          type:
            - string
            - 'null'
          description: >-
            Display name of the unit being measured (e.g. 'user', 'request').
            Used as fallback for products attached to this aggregator.
          example: user
        default_interval_count:
          type: integer
          description: Default interval count for usage periods.
        default_interval_period:
          type: string
          enum:
            - days
            - weeks
            - months
            - years
          description: Default interval period for usage periods.
        thresholds:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: Name of the threshold.
              type:
                type: string
                enum:
                  - fixed
                  - committed_count
                  - top_tier
                  - current_tier
                description: >-
                  Threshold type, cannot be changed once created. Defaults to
                  `fixed`.

                  - `fixed`: `threshold_value` is an absolute usage value.

                  - `committed_count`: `threshold_value` is a percentage (e.g.
                  `180` for 180%) of the committed count of each customer
                  subscription using this aggregator, checked per subscription
                  on current-period usage. Must be above 0; only `gte` is
                  supported. Subscriptions without a committed count are
                  skipped.

                  - `top_tier`: `threshold_value` is a percentage (e.g. `80` for
                  80%) of the upper bound of the last bounded tier (where the
                  open-ended top tier starts, if any) of each customer
                  subscription's volume or bulk price, using the tiers of the
                  usage's aggregator filter. Checked per subscription on
                  current-period usage. Must be above 0; only `gte` is
                  supported. Subscriptions without a volume or bulk price are
                  skipped.

                  - `current_tier`: `threshold_value` is a percentage (e.g. `80`
                  for 80%) of the upper bound of the tier the usage currently
                  falls in (where the next tier starts) on each customer
                  subscription's volume or bulk price, using the tiers of the
                  usage's aggregator filter. Fires once per tier as usage
                  climbs, and never while usage is in the top tier. Checked per
                  subscription on current-period usage. Must be above 0; only
                  `gte` is supported. Subscriptions without a volume or bulk
                  price are skipped.
              threshold_value:
                type: number
                description: >-
                  The threshold value: an absolute usage value for `fixed`, a
                  percentage for `committed_count`, `top_tier` and
                  `current_tier`.
              comparison_operator:
                type: string
                enum:
                  - gte
                  - lte
                default: gte
                description: The comparison operator for the threshold.
            required:
              - threshold_value
          description: Thresholds for the aggregator.
        formula_sql:
          type: string
          description: Read-only formula expression; not accepted on public writes.
          deprecated: true
        operation:
          type: string
          enum:
            - sum
          description: The aggregation operation to perform.
        property:
          type: string
          description: The property to sum.
          example: amount
      required:
        - entity
        - operation
        - property
    AggregatorThreshold:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - fixed
            - committed_count
            - top_tier
            - current_tier
          description: >-
            Threshold type. `fixed`: the threshold value is an absolute usage
            value. `committed_count`, `top_tier` and `current_tier`: the
            threshold value is a percentage of the subscription's committed
            count, top tier or current tier.
        threshold_value:
          type: number
        comparison_operator:
          type: string
          enum:
            - gte
            - lte
      required:
        - id
        - name
        - type
        - threshold_value
        - comparison_operator
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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