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

# List exact-repository Review billing rules

> List the billing rules that the caller can manage in this scope.

Organization-scoped pages may be short or empty. Continue until
``has_next_page`` is false.

Lists the repository billing rules for [Devin Review](https://docs.devin.ai/work-with-devin/devin-review.md#review-effort-and-billing-organization) that the caller can manage in the enterprise account. Each rule charges future Review usage on one exact repository to an organization or a [budget](https://docs.devin.ai/admin/billing/budgets.md). Create or change a rule with [Set a repository billing rule](https://docs.devin.ai/api-reference/v3/review-billing-rules/put-enterprise-review-billing-rule.md) and remove one with [Delete a repository billing rule](https://docs.devin.ai/api-reference/v3/review-billing-rules/delete-enterprise-review-billing-rule.md).

## Permissions

Requires a [service user](https://docs.devin.ai/api-reference/v3/service-users/members-service-users.md) or [personal access token](https://docs.devin.ai/api-reference/personal-access-tokens.md) with the `ManageReview` permission at the enterprise level.

## Behavior

* Results are paginated. Pass `first` (page size) and `after` (the previous page's `end_cursor`) while `has_next_page` is `true`.
* `repository` is `owner/repo` for github.com and `host/path` for other providers.
* `bill_to.type` is `organization` or `budget`, and `bill_to.id` is the organization ID or budget ID that pays.

Billing rules decide who pays for reviews. To manage which pull requests are reviewed automatically, use the Review triggers API: [list triggers](https://docs.devin.ai/api-reference/v3/review-triggers/list-review-triggers.md), [create, replace, or delete triggers](https://docs.devin.ai/api-reference/v3/review-triggers/update-review-triggers.md), and [list trigger scopes](https://docs.devin.ai/api-reference/v3/review-triggers/list-review-trigger-scopes.md).


## OpenAPI

````yaml v3-openapi.yaml GET /v3beta1/enterprise/review-settings/repo-billing-rules
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/review-settings/repo-billing-rules:
    get:
      tags:
        - review-billing
      summary: List exact-repository Review billing rules
      description: |-
        List the billing rules that the caller can manage in this scope.

        Organization-scoped pages may be short or empty. Continue until
        ``has_next_page`` is false.
      operationId: >-
        handle_list_review_repo_billing_rules_v3beta1_enterprise_review_settings_repo_billing_rules_get
      parameters:
        - 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: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unprocessable Content
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Too Many Requests
components:
  schemas:
    PaginatedResponse_ReviewRepoBillingRuleResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: Cursor to fetch the next page, or None if this is the last page.
          title: End Cursor
        has_next_page:
          default: false
          description: Whether there are more items available after this page.
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/ReviewRepoBillingRuleResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: Optional total count (can be omitted for performance).
          title: Total
      required:
        - items
      title: PaginatedResponse[ReviewRepoBillingRuleResponse]
      type: object
    ProblemDetail:
      description: >-
        RFC 9457 application/problem+json error body for the v3 API.


        detail is retained from the legacy {"detail": ...} body for back-compat;
        the

        other members are additive. errors carries field-level validation
        failures

        (422 only).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: A human-readable explanation specific to this occurrence.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Machine-readable code for blocked-action refusals (e.g.
            "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Field-level validation errors (422 responses only).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: A URI reference (the request path) for this occurrence.
          title: Instance
        status:
          description: The HTTP status code.
          title: Status
          type: integer
        title:
          description: A short, human-readable summary of the problem type.
          title: Title
          type: string
        type:
          default: about:blank
          description: A URI reference identifying the problem type.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    ReviewRepoBillingRuleResponse:
      properties:
        bill_to:
          $ref: '#/components/schemas/ReviewRepoBillingRuleBillTo'
          description: Who pays for future Devin Review usage on the repository
        created_at:
          title: Created At
          type: integer
        id:
          description: The billing rule ID, used to remove the rule
          title: Id
          type: string
        repository:
          description: '''owner/repo'' on github.com, ''host/path'' on other providers'
          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: The org ID or the budget ID
          maxLength: 256
          minLength: 1
          title: Id
          type: string
        type:
          description: Whether an organization or a budget pays
          enum:
            - organization
            - budget
          title: Type
          type: string
      required:
        - type
        - id
      title: ReviewRepoBillingRuleBillTo
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````

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