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

# Reorder company gateways

> Sets the priority order of company gateways. The position in the array determines the order (index 0 = order 1).



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/company/gateways/order
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/order:
    put:
      tags:
        - Company Gateways
      summary: Reorder company gateways
      description: >-
        Sets the priority order of company gateways. The position in the array
        determines the order (index 0 = order 1).
      operationId: b8d01d2ff5bb4d90ecbc2c2089745e20
      parameters:
        - $ref: '#/components/parameters/XClientId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
                - gateways
              properties:
                gateways:
                  type: array
                  items:
                    type: string
                    example: asaas
              type: object
      responses:
        '200':
          description: Gateway order updated
        '401':
          description: Unauthorized — Invalid API Key
        '422':
          description: Validation Error
      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

````