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

# Create a merchant

> Creates a whole merchant from data you already hold: its owner, business and bank account. The merchant is yours, and its owner signs in on your brand with Google or an e-mailed code. Prefer [an onboarding link](/sales-partner/onboarding) when you do not hold every detail.



## OpenAPI

````yaml sales-partner/api-reference/openapi.json POST /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:
    post:
      tags:
        - PartnerAccounts
      summary: Create a merchant
      description: >-
        Creates a whole merchant from data you already hold: its owner, business
        and bank account. The merchant is yours, and its owner signs in on your
        brand with Google or an e-mailed code. Prefer [an onboarding
        link](/sales-partner/onboarding) when you do not hold every detail.
      operationId: createPartnerAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePartnerAccountRequest'
      responses:
        '201':
          description: Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerAccount'
        '400':
          description: >-
            Invalid request. A field failed validation (RFC check digit, CLABE,
            descriptor).
          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'
        '409':
          description: >-
            `EMAIL_IN_USE`: the owner's e-mail already has an account on the
            platform.
          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:
    CreatePartnerAccountRequest:
      type: object
      properties:
        owner:
          type: object
          properties:
            name:
              type: string
              description: Owner's name.
            email:
              type: string
              description: Owner's e-mail. Must not have an account yet.
              format: email
          required:
            - name
            - email
        business:
          type: object
          properties:
            name:
              type: string
              description: Commercial name, up to 50 characters.
            legalName:
              type: string
              description: Razón social.
            rfc:
              type: string
              description: RFC, with a valid check digit.
            category:
              type: string
              description: Business category, e.g. `RETAIL`, `RESTAURANTS_AND_BARS`.
            bankSoftDescriptor:
              type: string
              description: >-
                What the cardholder's statement shows: 3 to 10 letters, digits
                or spaces, no accents.
            address:
              type: object
              properties:
                addressLine:
                  type: string
                colony:
                  type: string
                municipality:
                  type: string
                city:
                  type: string
                state:
                  type: string
                  description: State code, e.g. `CMX`, `JAL`, `NLE`.
                zip:
                  type: string
                  description: 5 digits.
              required:
                - addressLine
                - colony
                - municipality
                - city
                - state
                - zip
          required:
            - name
            - legalName
            - rfc
            - category
            - bankSoftDescriptor
            - address
        bankAccount:
          type: object
          properties:
            clabe:
              type: string
              description: 18-digit CLABE the merchant is paid in. Never returned.
            accountHolder:
              type: string
          required:
            - clabe
            - accountHolder
      required:
        - owner
        - business
        - bankAccount
    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
    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
    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.