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

# 特定のリポジトリに適用されるレビュー請求ルールの一覧

> このスコープで呼び出し元が管理できる請求ルールの一覧を取得します。

組織スコープのページは、件数が少ない場合や空の場合があります。
``has_next_page`` が false になるまで取得を続行してください。

1つの組織内で、呼び出し元が管理できる [Devin Review](https://docs.devin.ai/ja/work-with-devin/devin-review.md#review-effort-and-billing-organization) のリポジトリ請求ルールを一覧表示します。各ルールは、特定の1つのリポジトリで今後発生する Review の使用量を、組織または[予算](https://docs.devin.ai/ja/admin/billing/budgets.md)に請求します。ルールを作成・変更するには [リポジトリ請求ルールを設定](https://docs.devin.ai/ja/api-reference/v3/review-billing-rules/put-enterprise-organization-review-billing-rule.md) を、削除するには [リポジトリ請求ルールを削除](https://docs.devin.ai/ja/api-reference/v3/review-billing-rules/delete-enterprise-organization-review-billing-rule.md) を使用します。

## 権限

組織内で `ManageReview` 権限を持つ[サービスユーザー](https://docs.devin.ai/ja/api-reference/v3/service-users/members-service-users.md)または[個人用アクセストークン](https://docs.devin.ai/ja/api-reference/personal-access-tokens.md)が必要です。呼び出し元がルールを管理できるのは、その組織に委任されたリポジトリのみです。また、請求先に指定できるのは、その組織自体、またはその組織が管理する[予算](https://docs.devin.ai/ja/admin/billing/budgets.md)のみです。

## 動作

* 結果はページ分割されます。`has_next_page` が `true` の間は、`first` (ページサイズ) と `after` (前のページの `end_cursor`) を指定してください。`has_next_page` が `true` のままでも、返される件数が少ない、または空のページになる場合があるため、`false` になるまでページングを続けてください。
* `repository` は、github.com の場合は `owner/repo`、その他のプロバイダーの場合は `host/path` の形式です。
* `bill_to.type` は `organization` または `budget` で、`bill_to.id` は支払い元となる組織IDまたは予算IDです。


## OpenAPI

````yaml ja/v3-openapi.yaml GET /v3beta1/enterprise/organizations/{org_id}/review-settings/repo-billing-rules
openapi: 3.1.0
info:
  description: Service User 認証および RBAC に対応した Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/organizations/{org_id}/review-settings/repo-billing-rules:
    get:
      tags:
        - review-billing
      summary: 特定のリポジトリに適用されるレビュー請求ルールの一覧
      description: |-
        このスコープで呼び出し元が管理できる請求ルールの一覧を取得します。

        組織スコープのページは、件数が少ない場合や空の場合があります。
        ``has_next_page`` が false になるまで取得を続行してください。
      operationId: >-
        handle_list_review_repo_billing_rules_v3beta1_enterprise_organizations__org_id__review_settings_repo_billing_rules_get
      parameters:
        - description: 組織ID（プレフィックス：org-）
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_ReviewRepoBillingRuleResponse_
          description: 成功レスポンス
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 認証されていません
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: アクセスが禁止されています
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 見つかりません
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 競合
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 削除済み
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 処理できないコンテンツ
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: リクエスト過多
components:
  schemas:
    PaginatedResponse_ReviewRepoBillingRuleResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: 次のページを取得するためのカーソル。最後のページの場合は None。
          title: End Cursor
        has_next_page:
          default: false
          description: このページの後にさらにアイテムがあるかどうか。
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/ReviewRepoBillingRuleResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: 総件数（任意。パフォーマンス上の理由で省略可能）。
          title: Total
      required:
        - items
      title: PaginatedResponse[ReviewRepoBillingRuleResponse]
      type: object
    ProblemDetail:
      description: >-
        v3 API 用の RFC 9457 application/problem+json エラーボディ。


        detail は後方互換性のため、レガシーな {"detail": ...}
        ボディから引き継がれます。その他のメンバーは追加式です。errors にはフィールドレベルのバリデーションエラーが含まれます（422
        の場合のみ）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: この事象に固有の、人が読める説明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: ブロックされた操作の拒否理由を示す機械可読コード（例："user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: フィールド単位のバリデーションエラー（422 レスポンスのみ）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: この発生箇所の URI 参照（リクエストパス）。
          title: Instance
        status:
          description: HTTP ステータスコード。
          title: Status
          type: integer
        title:
          description: 問題タイプを人が読める短い要約。
          title: Title
          type: string
        type:
          default: about:blank
          description: 問題タイプを識別する URI 参照。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    ReviewRepoBillingRuleResponse:
      properties:
        bill_to:
          $ref: '#/components/schemas/ReviewRepoBillingRuleBillTo'
          description: リポジトリで今後発生する Devin Review の使用量に応じた料金の支払元
        created_at:
          title: Created At
          type: integer
        id:
          description: ルールの削除に使用する請求ルール ID
          title: Id
          type: string
        repository:
          description: github.com では 'owner/repo'、その他のプロバイダーでは 'host/path'
          title: Repository
          type: string
        updated_at:
          title: Updated At
          type: integer
      required:
        - id
        - repository
        - bill_to
        - created_at
        - updated_at
      title: ReviewRepoBillingRuleResponse
      type: object
    ReviewRepoBillingRuleBillTo:
      properties:
        id:
          description: 組織 ID または予算 ID
          maxLength: 256
          minLength: 1
          title: Id
          type: string
        type:
          description: 支払元が組織か予算か
          enum:
            - organization
            - budget
          title: Type
          type: string
      required:
        - type
        - id
      title: ReviewRepoBillingRuleBillTo
      type: object
  securitySchemes:
    bearerAuth:
      description: 'サービスユーザーの認証情報（接頭辞: cog_）'
      scheme: bearer
      type: http

````

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