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

# Get company gateway routing

> Returns all percentage-based routing rules configured for the authenticated company, ordered by payment method then percentage descending.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/company/gateways/routing
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/company/gateways/routing:
    get:
      tags:
        - Company Gateways
      summary: Get company gateway routing
      description: >-
        Returns all percentage-based routing rules configured for the
        authenticated company, ordered by payment method then percentage
        descending.
      operationId: 4414402a8d25d9dda9ce4098d188e41d
      parameters:
        - $ref: '#/components/parameters/XClientId'
      responses:
        '200':
          description: Gateway routing rules
          content:
            application/json:
              schema:
                properties:
                  data:
                    type: array
                    items:
                      properties:
                        gateway_id:
                          type: integer
                          example: 1
                        gateway_slug:
                          type: string
                          example: pagarme
                        payment_method:
                          type: string
                          example: card
                          nullable: true
                        percentage:
                          type: integer
                          example: 70
                      type: object
                type: object
        '401':
          description: Unauthorized
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````