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

# Accept Terms

Records that you attest the end user accepted the current [Terms and Conditions and Privacy Notice](https://capafi.notion.site/legal). Takes no request body.

***

## Important Notes

* This is an attestation, not a document flow: you confirm the user already accepted in your own UI (a checkbox on your onboarding screen). It does not start a signature ceremony and there is no page to redirect the user to.
* **Idempotent**: calling this again after acceptance is a no-op — it keeps the original acceptance timestamp and still returns `200` with `{ "success": true, "data": { "success": true } }`, so it is safe to retry.
* Your API key needs the `customer:terms:accept` permission. See [Permissions](https://docs.capa.fi/docs/partner-api-key-generation.md#permissions).
* If you send the user to a KYC or KYB verification link, you can send `termsAccepted: true` in that request instead of calling this endpoint. See the [User Creation and Verification](https://docs.capa.fi/docs/create-and-verify-a-user-with-capa-api.md#record-terms-and-conditions-acceptance) guide.

***

## Use Cases

* **Onboarding checkbox**: record the acceptance your own sign-up screen collected.
* **Backfill**: record acceptance for users you created before you started sending it.
* **Before transacting**: once Terms and Conditions enforcement is enabled for your account, a user with no acceptance on record can't transact.

***

## Error Codes

These are the errors this endpoint returns most often. Branch on `code`, not `message`, and handle codes you don't recognize by their HTTP status. See [Error Codes](https://docs.capa.fi/reference/error-codes.md) for the complete list.

### Common Errors

| HTTP Status | Code | Message |
| - | - | - |
| 401 | `UNAUTHORIZED` | "API Key is missing" |
| 401 | `UNAUTHORIZED` | "Invalid API Key format" |
| 401 | `UNAUTHORIZED` | "Invalid API Key" |
| 403 | `PERMISSION_DENIED` | "Your role does not allow this action." (the API key doesn't have `customer:terms:accept`) |
| 429 | `TOO_MANY_REQUESTS` | "ThrottlerException: Too Many Requests" (wait the number of seconds in the `Retry-After` header) |

### User Ownership Errors

| HTTP Status | Code | Message |
| - | - | - |
| 401 | `UNAUTHORIZED` | "Partner information is required for this operation" |
| 401 | `UNAUTHORIZED` | "User is not associated with the partner" |

### Endpoint-Specific Errors

| HTTP Status | Code | Message |
| - | - | - |
| 404 | `NOT_FOUND_ERROR` | "Requested resource was not found" |
| 500 | `INTERNAL_SERVER_ERROR` | "Internal server error" (also returned when `userId` isn't a valid UUID) |


## OpenAPI

````yaml reference/openapi/UserPartnerControllerV2_acceptTerms.json POST /api/partner/v2/users/{userId}/terms/accept
openapi: 3.0.0
info:
  title: Capa Partner API - V2
  description: >-
    Partner API for integrating cryptocurrency on-ramp and off-ramp services
    using Capa's infrastructure. Enable your users to seamlessly convert between
    fiat and crypto.
  version: v2
  contact: {}
servers:
  - url: https://api.sandbox.capa.fi
  - url: https://api.capa.fi
security: []
paths:
  /api/partner/v2/users/{userId}/terms/accept:
    post:
      tags:
        - users
      operationId: UserPartnerControllerV2_acceptTerms
      parameters:
        - name: userId
          required: true
          in: path
          description: The user ID
          schema:
            type: string
      responses:
        '200':
          description: >-
            Records the partner's attestation that the user accepted the current
            Terms and Conditions and Privacy Notice.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      success:
                        type: boolean
                        description: Whether the acceptance was recorded.
                    required:
                      - success
                    x-readme-ref-name: AcceptTermsHttpResponse
              example:
                success: true
                data:
                  success: true
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                UNAUTHORIZED:
                  value:
                    success: false
                    code: UNAUTHORIZED
                    message: API Key is missing
                UNAUTHORIZED_2:
                  value:
                    success: false
                    code: UNAUTHORIZED
                    message: Invalid API Key format
                UNAUTHORIZED_3:
                  value:
                    success: false
                    code: UNAUTHORIZED
                    message: Invalid API Key
                UNAUTHORIZED_4:
                  value:
                    success: false
                    code: UNAUTHORIZED
                    message: Partner information is required for this operation
                UNAUTHORIZED_5:
                  value:
                    success: false
                    code: UNAUTHORIZED
                    message: User is not associated with the partner
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                code: PERMISSION_DENIED
                message: Your role does not allow this action.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                code: NOT_FOUND_ERROR
                message: Requested resource was not found
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                code: INTERNAL_SERVER_ERROR
                message: Internal server error
      security:
        - PartnerApiKey: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        code:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable error message.
        errors:
          type: array
          description: Optional per-field validation details.
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
      required:
        - success
        - code
        - message
  securitySchemes:
    PartnerApiKey:
      type: apiKey
      in: header
      name: partner-api-key
      description: API key for the affiliated partner performing the request.

````

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