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

# Record the contract acceptance

> Records that the merchant accepted Compago's merchant contract on your screens, with when, from which IP and browser, and who. The version in force is recorded with it; when the contract changes, `termsAcceptance` returns to the merchant's requirements.



## OpenAPI

````yaml sales-partner/api-reference/openapi.json POST /v1/account/{id}/terms-acceptance
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/{id}/terms-acceptance:
    post:
      tags:
        - PartnerAccounts
      summary: Record the contract acceptance
      description: >-
        Records that the merchant accepted Compago's merchant contract on your
        screens, with when, from which IP and browser, and who. The version in
        force is recorded with it; when the contract changes, `termsAcceptance`
        returns to the merchant's requirements.
      operationId: createPartnerAccountTermsAcceptance
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The merchant's id.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTermsAcceptanceRequest'
      responses:
        '201':
          description: Recorded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TermsAcceptance'
        '400':
          description: >-
            Invalid request. `INVALID_ACCEPTED_AT` when `acceptedAt` is in the
            future.
          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'
        '404':
          description: Not found, or the merchant belongs to another partner.
          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:
    CreateTermsAcceptanceRequest:
      type: object
      properties:
        acceptedAt:
          type: string
          description: When the merchant accepted, with its offset. Not in the future.
          format: date-time
        ipAddress:
          type: string
          description: The merchant's IP address (IPv4 or IPv6).
        userAgent:
          type: string
          description: The merchant's browser user agent.
        acceptedBy:
          type: object
          properties:
            name:
              type: string
            email:
              type: string
              format: email
          required:
            - name
            - email
          description: Who accepted, when it is not the account owner.
      required:
        - acceptedAt
        - ipAddress
        - userAgent
    TermsAcceptance:
      type: object
      properties:
        id:
          type: string
          description: Acceptance id.
          format: uuid
        version:
          type: string
          description: The contract version accepted.
        acceptedAt:
          type: string
          description: When the merchant accepted.
          format: date-time
        ipAddress:
          type: string
          description: The merchant's IP address.
        userAgent:
          type: string
          description: The merchant's browser.
        acceptedBy:
          type:
            - object
            - 'null'
          properties:
            name:
              type: string
            email:
              type: string
        createdAt:
          type: string
          description: When it was recorded.
          format: date-time
      required:
        - id
        - version
        - acceptedAt
        - ipAddress
        - userAgent
        - 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
  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.