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

# List your merchants

> Your merchants, newest first, each with what its onboarding still needs.



## OpenAPI

````yaml sales-partner/api-reference/openapi.json GET /v1/account
openapi: 3.1.0
info:
  title: Compago Sales Partner API
  version: 1.0.0
  description: >-
    API endpoints for Compago sales partners: payments across the organizations
    you manage, your merchant accounts and their onboarding.
servers:
  - url: https://demo-api-honor.compago.com/api/developer
    description: Demo
  - url: https://api-honor.compago.com/api/developer
    description: Production
security: []
tags:
  - name: Payment
    description: Endpoints for querying payment data across your organizations
  - name: PartnerAccounts
    description: Your merchants and their onboarding requirements
  - name: Onboarding
    description: Hosted onboarding links
paths:
  /v1/account:
    get:
      tags:
        - PartnerAccounts
      summary: List your merchants
      description: Your merchants, newest first, each with what its onboarding still needs.
      operationId: listPartnerAccounts
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Rows per page. Values above 100 are rejected.
        - name: cursor
          in: query
          schema:
            type: string
          description: >-
            Opaque cursor from a previous response's `pagination.nextCursor`.
            Omit for the first page.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerAccountPage'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '401':
          description: Unauthorized. The `x-api-key` header is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '429':
          description: >-
            Rate limit exceeded. See the `Retry-After` and `X-RateLimit-*`
            headers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PartnerAccountPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PartnerAccount'
        pagination:
          $ref: '#/components/schemas/PublicPagination'
      required:
        - data
        - pagination
    PublicError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description.
        code:
          type: string
          description: Stable machine-readable code. Branch on this, not on `message`.
      required:
        - message
    PartnerAccount:
      type: object
      properties:
        id:
          type: string
          description: >-
            The merchant's id. Send it in `Compago-Account` to act as this
            merchant.
          format: uuid
        name:
          type: string
          description: Commercial name, the one a cardholder reads.
        legalName:
          type:
            - string
            - 'null'
          description: Razón social.
        rfc:
          type:
            - string
            - 'null'
          description: RFC.
        category:
          type:
            - string
            - 'null'
          description: Business category.
        address:
          oneOf:
            - $ref: '#/components/schemas/PartnerAccountAddress'
            - type: 'null'
        owner:
          type:
            - object
            - 'null'
          properties:
            name:
              type: string
            email:
              type: string
          description: The person who owns the account.
        termsAcceptedAt:
          type:
            - string
            - 'null'
          description: When the merchant accepted the contract in force.
          format: date-time
        requirements:
          type: object
          properties:
            currentlyDue:
              type: array
              items:
                $ref: '#/components/schemas/AccountRequirement'
            detailsSubmitted:
              type: boolean
              description: True when nothing is currently due.
          required:
            - currentlyDue
            - detailsSubmitted
        createdAt:
          type: string
          description: When the merchant was created.
          format: date-time
      required:
        - id
        - name
        - requirements
        - createdAt
    PublicPagination:
      type: object
      properties:
        limit:
          type: integer
          description: Rows requested for this page.
        hasMore:
          type: boolean
          description: Whether another page exists.
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass as `?cursor=` to fetch the next page. Null on the last page.
      required:
        - limit
        - hasMore
        - nextCursor
    PartnerAccountAddress:
      type: object
      properties:
        addressLine:
          type: string
          description: addressLine
        colony:
          type:
            - string
            - 'null'
          description: colony
        municipality:
          type:
            - string
            - 'null'
          description: municipality
        city:
          type: string
          description: city
        state:
          type: string
          description: state
        zip:
          type: string
          description: zip
    AccountRequirement:
      type: string
      enum:
        - business.legalName
        - bankAccount
        - termsAcceptance
      description: >-
        Something the merchant's onboarding still needs. New values may be
        added.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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