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

# Submit KYC Information

> Submits KYC data for a specific customer. The response will include a URL to a third-party KYC provider's widget for document uploads and liveness checks. Webhook events will notify about the validation process.

**Production only:** The provider URL for document uploads and liveness checks only works in production.

**Reusable KYC (Sumsub share token).** If the customer is already verified in your own Sumsub account, send their share token in `kycProviderShareToken` so Ripio redeems the existing verification instead of asking the customer to upload documents again. This is an **opt-in feature that must be enabled for your account by the Ripio team**; while it is disabled, sending the field returns `403` with the error code `20065` and no KYC is created. It also requires your Sumsub account to be paired with Ripio's as a sharing partner — see [Reusable KYC prerequisites](/ramps-api/kyc/reusable-kyc#prerequisites) before you integrate it.

This is separate from **Ripio KYC reuse via OTP**. If your account is configured for it, open the verification with [Start KYC](/ramps-api/kyc/start-kyc) first and confirm the OTP with [Validate KYC OTP](/ramps-api/kyc/validate-kyc-otp) — this endpoint cannot open that flow on its own, and calling it before the OTP is confirmed returns `400` with the error code `20094` (`KycEmailOtpNotConfirmedException`). Accounts should be configured for one reuse mechanism or the other, not both.

**The payload is validated before anything is created.** Formats, catalog values and cross-field rules are checked at the boundary, so a malformed field returns `400` with error code `20000` and **no verification process is opened and no KYC is consumed** — correct the field and repeat the same call. The fields accepted and required differ per country: see [KYC fields by country](/ramps-api/kyc/kyc-fields-by-country).

> [!NOTE]
>
> `kycProviderShareToken` belongs to **Reusable KYC (Sumsub share token)**. It is separate from **Ripio KYC reuse via OTP**, which uses [Start KYC](https://docs.ripio.com/ramps-api/kyc/start-kyc.md) and [Validate KYC OTP](https://docs.ripio.com/ramps-api/kyc/validate-kyc-otp.md). If your account is configured for OTP reuse, this endpoint always requires `kycSubmission` — it cannot open that flow on its own. Calling it before the OTP is confirmed returns `400` with the error code `20094` (`KycEmailOtpNotConfirmedException`).
>
> For the **Partner-submitted (API)** model, send `kycProviderShareToken` in [Start KYC](https://docs.ripio.com/ramps-api/kyc/start-kyc.md) instead — that's the call that opens the verification, and where the token is redeemed. Sending it here has no effect for that model. This endpoint only accepts the token directly for the **Ripio-hosted (redirect)** model, where it has no separate Start KYC call. See [Reusable KYC (Sumsub share token)](https://docs.ripio.com/ramps-api/kyc/reusable-kyc.md) for the full behavior per model.

> [!WARNING]
>
> Reusable KYC via Sumsub share token is an account-level opt-in. A share token by itself does not enable this flow: if the feature is not enabled for your account, sending `kycProviderShareToken` returns `403` with `KycProviderTokenSharingNotEnabledException` and no KYC is created.


## OpenAPI

````yaml ramps-api/openapi.json POST /api/v1/customers/{customerId}/kyc/
openapi: 3.1.0
info:
  title: Ripio Ramp API
  version: v1
  description: >-
    API for Ripio ramp services, enabling partners to integrate On-Ramp,
    Off-Ramp, customer management, KYC processes, and other financial
    functionalities. This API is RESTful, uses JSON for requests and responses,
    and standard HTTP status codes. This document is based on the
    'onramp-api.pdf' provided and aims to be compliant with OpenAPI
    Specification v3.1.0. The PDF indicates that the API documentation is a
    draft and subject to change.
servers:
  - url: https://skala-sandbox.ripio.com
    description: Sandbox environment
  - url: https://skala.ripio.com
    description: Production environment
security:
  - BearerToken: []
tags:
  - name: Authentication
    description: Operations related to API authentication and authorization.
  - name: Support Tickets
    description: >-
      Operations for raising and tracking customer support tickets with Ripio's
      support team. This feature must be enabled for your account by the Ripio
      team.
  - name: Customers
    description: Operations related to customer management.
  - name: KYC
    description: Operations related to Know Your Customer processes.
  - name: Investor Profile
    description: >-
      Brazilian accounts only: the investor-profile (suitability) questionnaire
      required by Resolução BCB nº 520/2025.
  - name: Fiat Accounts
    description: Operations related to managing fiat accounts and their requirements.
  - name: Quotes
    description: Operations related to obtaining and managing conversion quotes.
  - name: On-Ramp
    description: Operations related to fiat-to-crypto (on-ramp) processes.
  - name: Off-Ramp
    description: Operations related to crypto-to-fiat (off-ramp) processes.
  - name: Refunds
    description: >-
      Operations for returning the money of an on-ramp or off-ramp operation
      that could not be completed. Each ramp must be enabled for your account by
      the Ripio team.
  - name: Transactions
    description: Operations related to listing and managing all transaction types.
  - name: Networks
    description: >-
      Operations related to retrieving available deposit and withdrawal
      networks.
  - name: Rates
    description: Operations related to retrieving market rates.
  - name: Transaction Limits
    description: >-
      Operations related to retrieving per-transaction limits by currency and
      ramp operation.
  - name: Sandbox
    description: Operations specific to the sandbox environment for testing purposes.
  - name: Webhooks
    description: Webhook event notifications from Ripio Ramp API.
  - name: Sell and Pay
    description: >-
      Endpoints for managing Sell and Pay transactions, which allow customers to
      convert cryptocurrency to fiat currency and pay merchants via QR codes
paths:
  /api/v1/customers/{customerId}/kyc/:
    post:
      tags:
        - KYC
      summary: Submit KYC Information
      description: >-
        Submits KYC data for a specific customer. The response will include a
        URL to a third-party KYC provider's widget for document uploads and
        liveness checks. Webhook events will notify about the validation
        process.


        **Production only:** The provider URL for document uploads and liveness
        checks only works in production.


        **Reusable KYC (Sumsub share token).** If the customer is already
        verified in your own Sumsub account, send their share token in
        `kycProviderShareToken` so Ripio redeems the existing verification
        instead of asking the customer to upload documents again. This is an
        **opt-in feature that must be enabled for your account by the Ripio
        team**; while it is disabled, sending the field returns `403` with the
        error code `20065` and no KYC is created. It also requires your Sumsub
        account to be paired with Ripio's as a sharing partner — see [Reusable
        KYC prerequisites](/ramps-api/kyc/reusable-kyc#prerequisites) before you
        integrate it.


        This is separate from **Ripio KYC reuse via OTP**. If your account is
        configured for it, open the verification with [Start
        KYC](/ramps-api/kyc/start-kyc) first and confirm the OTP with [Validate
        KYC OTP](/ramps-api/kyc/validate-kyc-otp) — this endpoint cannot open
        that flow on its own, and calling it before the OTP is confirmed returns
        `400` with the error code `20094` (`KycEmailOtpNotConfirmedException`).
        Accounts should be configured for one reuse mechanism or the other, not
        both.


        **The payload is validated before anything is created.** Formats,
        catalog values and cross-field rules are checked at the boundary, so a
        malformed field returns `400` with error code `20000` and **no
        verification process is opened and no KYC is consumed** — correct the
        field and repeat the same call. The fields accepted and required differ
        per country: see [KYC fields by
        country](/ramps-api/kyc/kyc-fields-by-country).
      operationId: submitKycInformation
      parameters:
        - $ref: '#/components/parameters/CustomerId'
        - $ref: '#/components/parameters/EndUserIp'
        - $ref: '#/components/parameters/EndUserAgent'
        - $ref: '#/components/parameters/EndUserDeviceId'
      requestBody:
        required: true
        description: >-
          KYC data for the customer. Structure should align with fields from
          /kycRequirements/.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KycSubmissionRequest'
            examples:
              Argentina:
                summary: Argentina
                description: >-
                  Every field Argentina requires. `personal_activity_other` is
                  omitted because `AR.1` (Empleado del Sector Privado) does not
                  require it — see the Argentina (monotributista) example for
                  the case that does.
                value:
                  kycSubmission:
                    country: AR
                    first_name: Mateo
                    last_name: Romero
                    gender: M
                    birthday: '1990-01-25'
                    nationality: AR
                    id_number: '11122233'
                    id_number_type: DNI
                    address: Libertad
                    address_number: '333'
                    address_flat: 4B
                    postal_code: B1665DQJ
                    city: San Miguel
                    state: AR.BA
                    phone: '+542211228855'
                    registered_tax_payer: false
                    cuit: '20388043629'
                    net_income: AR.A
                    personal_activity: AR.1
                  redirectUrl: https://www.example.com/
              ArgentinaMonotributista:
                summary: Argentina (monotributista / autónomo)
                description: >-
                  When `personal_activity` is `AR.3` or `AR.4`,
                  `personal_activity_other` becomes required and must be a code
                  from its own catalog.
                value:
                  kycSubmission:
                    country: AR
                    first_name: Mateo
                    last_name: Romero
                    gender: M
                    birthday: '1990-01-25'
                    nationality: AR
                    id_number: '11122233'
                    id_number_type: DNI
                    address: Libertad
                    address_number: '333'
                    address_flat: 4B
                    postal_code: B1665DQJ
                    city: San Miguel
                    state: AR.BA
                    phone: '+542211228855'
                    registered_tax_payer: false
                    cuit: '20388043629'
                    net_income: AR.A
                    personal_activity: AR.3
                    personal_activity_other: AR.64
                  redirectUrl: https://www.example.com/
              Brazil:
                summary: Brazil
                description: >-
                  Brazil requires `first_name`, `last_name`, `id_number`,
                  `id_number_type`, `country`, `address`, `city`, `state`,
                  `postal_code`, `phone` and `net_income`. The approved identity
                  binds PIX operations to the verified customer and is used for
                  destination account ownership checks.
                value:
                  kycSubmission:
                    country: BR
                    first_name: João
                    last_name: Silva
                    birthday: '1990-06-15'
                    nationality: BR
                    gender: M
                    id_number: '12345678909'
                    id_number_type: CPF
                    address: Rua das Flores
                    address_number: '100'
                    address_flat: Apto 42
                    district: Bela Vista
                    postal_code: '01310100'
                    city: São Paulo
                    state: BR.SP
                    phone: '+5511999990000'
                    net_income: BR.A
                  redirectUrl: https://www.example.com/
              Mexico:
                summary: Mexico
                value:
                  kycSubmission:
                    country: MX
                    first_name: Erick Eduardo
                    last_name: Cuellar Garcia
                    birthday: '1998-12-11'
                    nationality: MX
                    birthday_place: MX
                    id_number: CUGE981211HJCLRR06
                    rfc: HZDT240502GRA
                    date_of_issue: '2020-01-01'
                    date_of_expiration: '2030-01-01'
                    address: Isla Cartagena
                    address_number: '123'
                    address_flat: '4'
                    district: Jalisco
                    postal_code: '44950'
                    city: Guadalajara
                    state: MX.JA
                    phone: '+523325606411'
                    personal_activity: MX.1000000
                    terms_conditions: true
                  redirectUrl: https://www.example.com/
              Colombia:
                summary: Colombia
                description: >-
                  Note `city` is the DANE code (`11001` = Bogotá D.C.), not the
                  city name, and it must belong to the department in `state`.
                value:
                  kycSubmission:
                    country: CO
                    first_name: Santiago
                    last_name: García
                    birthday: '1992-05-15'
                    nationality: CO
                    id_number: '1234567890'
                    id_number_type: CC
                    address: Carrera 7
                    address_number: '45'
                    address_type: HOME
                    district: Chapinero
                    city: '11001'
                    state: CO.DC
                    phone: '+573001234567'
                  redirectUrl: https://www.example.com/
              RipioKyc:
                summary: Ripio KYC delegated flow
                description: >-
                  Used when the account is configured for the Ripio KYC
                  delegated flow. KYC data is not collected directly — the user
                  is redirected to Ripio's KYC platform to complete the process.
                value:
                  redirectUrl: https://www.example.com/
              ReusableKyc:
                summary: Reusable KYC (Sumsub share token)
                description: >-
                  Used when the customer is already verified in your own Sumsub
                  account. Ripio redeems the share token so the customer skips
                  document upload and liveness check. Requires the reusable KYC
                  feature to be enabled for your account by the Ripio team;
                  otherwise the request returns 403 with code 20065. The token
                  can also be sent alongside a full `kycSubmission` body.
                value:
                  redirectUrl: https://www.example.com/
                  kycProviderShareToken: _act-jwt-eyJhbGciOiJub25lIn0...
      responses:
        '200':
          description: >-
            KYC submission received successfully. Includes providerUrl for
            document upload and liveness check.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KycSubmissionResponse'
        '201':
          description: >-
            KYC submission received successfully (alternative success code, as
            per PDF example for other POSTs). Includes providerUrl for document
            upload and liveness check.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KycSubmissionResponse'
        '400':
          description: >-
            Bad Request — the payload failed validation (`20000`), or the
            customer is not in a state that allows a new submission. A `20000`
            means nothing was created. A `20039` means the customer has not
            accepted the active Terms and Conditions — the submission is refused
            before any KYC work starts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                validationError:
                  summary: A field failed validation (nothing was created)
                  description: >-
                    The offending fields are nested under `kycSubmission`, keyed
                    by field name. Each entry carries a human-readable `message`
                    and a stable `code` you can branch on.
                  value:
                    code: 20000
                    type: ValidationError
                    detail:
                      kycSubmission:
                        phone:
                          - message: >-
                              Enter the phone in E.164 format, including the
                              country code (e.g. +5491123456789).
                            code: invalid_phone
                    status: 400
                missingRequiredField:
                  summary: A field required for this country is missing
                  value:
                    code: 20000
                    type: ValidationError
                    detail:
                      kycSubmission:
                        net_income:
                          - message: This field is required.
                            code: required
                    status: 400
                invalidChoice:
                  summary: A catalog field received a label instead of its code
                  description: >-
                    `state`, `net_income`, `personal_activity`, `id_number_type`
                    and `address_type` accept only the `value` from
                    `/kycRequirements/`, never the `label`.
                  value:
                    code: 20000
                    type: ValidationError
                    detail:
                      kycSubmission:
                        state:
                          - message: '"Buenos Aires" is not a valid choice.'
                            code: invalid_choice
                    status: 400
                mutuallyExclusiveReuseModes:
                  summary: >-
                    Ripio KYC reuse and Sumsub share-token reuse cannot be
                    combined
                  description: >-
                    Use either Ripio KYC reuse via OTP or Reusable KYC via
                    Sumsub share token, according to your account configuration.
                  value:
                    code: 20000
                    type: ValidationError
                    detail:
                      non_field_errors:
                        - message: >-
                            reuseRipioKyc and kycProviderShareToken are mutually
                            exclusive.
                          code: invalid
                    status: 400
                termsNotAccepted:
                  summary: >-
                    The active Terms and Conditions have not been accepted
                    (20039)
                  description: >-
                    Terms and Conditions are versioned per country and only the
                    active version counts: a customer who accepted an earlier
                    version is refused here until they accept the current one.
                    Send them back through the acceptance flow — see [Terms and
                    Conditions](/ramps-api/terms-and-conditions/introduction).
                  value:
                    code: 20039
                    type: TermsAndConditionsNotAcceptedException
                    detail:
                      message: >-
                        Customer '3fa85f64-5717-4562-b3fc-2c963f66afa6' has not
                        accepted the current Terms and Conditions.
                    status: 400
                otpNotConfirmed:
                  summary: >-
                    The email OTP must be confirmed before sending KYC data
                    (20094)
                  description: >-
                    Applies to accounts configured for Ripio KYC reuse via OTP.
                    Confirm the OTP with Validate KYC OTP before calling this
                    endpoint.
                  value:
                    code: 20094
                    type: KycEmailOtpNotConfirmedException
                    detail:
                      message: >-
                        The email OTP must be validated before submitting KYC
                        data.
                    status: 400
        '401':
          description: Unauthorized - Invalid or missing access token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 40001
                type: NotAuthenticated
                detail:
                  message: Authentication credentials were not provided.
                  code: not_authenticated
                status: 401
        '403':
          description: >-
            Forbidden - a `kycProviderShareToken` was sent but reusable KYC is
            not enabled for your account. No KYC is created. Contact the Ripio
            team to enable this feature, or retry without the field to run a
            standard KYC.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 20065
                type: KycProviderTokenSharingNotEnabledException
                detail:
                  message: KYC provider token sharing is not enabled for this account.
                status: 403
        '404':
          description: Not Found - Customer not found or inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 40004
                type: NotFound
                detail:
                  message: Not found.
                  code: not_found
                status: 404
components:
  parameters:
    CustomerId:
      name: customerId
      in: path
      required: true
      description: Unique identifier for the customer.
      schema:
        type: string
        format: uuid
      example: 8142b065-79c4-4f48-9e33-11b17bc658d4
    EndUserIp:
      name: X-Ripio-User-Ip
      in: header
      required: false
      description: >-
        Optional. The public IP address of the **end user's device** (IPv4 or
        IPv6), captured on your frontend and forwarded by your backend — never
        your server's own address. Used for traceability and fraud prevention.
        An address that is not a valid IPv4 or IPv6 discards the end-user
        context of the request, without failing it. See [Forwarding end-user
        context](/ramps-api/guides/end-user-context).
      schema:
        type: string
        maxLength: 45
      example: 203.0.113.24
    EndUserAgent:
      name: X-Ripio-User-Agent
      in: header
      required: false
      description: >-
        Optional. The `User-Agent` of the **end user's browser or app**, not
        your backend's HTTP client. Longer values are truncated to 500
        characters. See [Forwarding end-user
        context](/ramps-api/guides/end-user-context).
      schema:
        type: string
        maxLength: 500
      example: >-
        Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X)
        AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148
        Safari/604.1
    EndUserDeviceId:
      name: X-Ripio-User-Device-Id
      in: header
      required: false
      description: >-
        Optional. A stable identifier of the **end user's device**, as your app
        or frontend defines it. Longer values are truncated to 200 characters.
        See [Forwarding end-user context](/ramps-api/guides/end-user-context).
      schema:
        type: string
        maxLength: 200
      example: 8d3f2c1a-6b7e-4f9a-a1d2-3c4b5e6f7a8b
  schemas:
    KycSubmissionRequest:
      type: object
      description: >-
        Request body for KYC submission. Use `kycSubmission` + `redirectUrl` for
        the standard API flow, or only `redirectUrl` for the Ripio KYC delegated
        flow. If your account is enabled for Reusable KYC (Sumsub share token),
        you can add `kycProviderShareToken` to reuse a verification the customer
        already completed in your own Sumsub account. This is separate from
        Ripio KYC reuse via OTP: if your account is configured for it, open the
        verification with [Start KYC](/ramps-api/kyc/start-kyc) first and
        confirm the OTP with [Validate KYC OTP](/ramps-api/kyc/validate-kyc-otp)
        — this endpoint cannot open that flow on its own, and calling it before
        the OTP is confirmed returns `400` with the error code `20094`
        (`KycEmailOtpNotConfirmedException`).
      properties:
        kycSubmission:
          type: object
          description: >-
            Customer KYC data. **Which fields are accepted, and which are
            required, depends on `country`** — the four countries have four
            different schemas, so the `required` list below is only their
            intersection. Each field's description states its per-country
            requiredness.


            See [KYC fields by country](/ramps-api/kyc/kyc-fields-by-country)
            for the full matrix and the cross-field rules, and call
            [`/kycRequirements/`](/ramps-api/kyc/retrieve-kyc-requirements) for
            the live catalogs of the `CHOICE` fields. Not required when using
            the Ripio KYC delegated flow.
          properties:
            country:
              type: string
              description: >-
                ISO 3166-1 alpha-2 country code: `AR`, `BR`, `MX` or `CO`.
                **Required for every country** — it selects the schema the rest
                of the payload is validated against.
              example: AR
            first_name:
              type: string
              maxLength: 64
              description: >-
                Required for every country. The approved name associates
                operations with the customer's verified identity.
              example: Mateo
            last_name:
              type: string
              maxLength: 64
              description: >-
                Required for every country. The approved name associates
                operations with the customer's verified identity.
              example: Romero
            gender:
              type: string
              description: >-
                `F` or `M`, case-insensitive. **Required for AR**, optional for
                BR and MX, **not accepted for CO**.
              example: M
            birthday:
              type: string
              format: date
              description: >-
                Date of birth, as `YYYY-MM-DD` or `DD/MM/YYYY`. The customer
                must be at least 18 and at most 120 years old, and the date
                cannot be in the future. **Required for AR, MX and CO**;
                optional for BR.
              example: '1990-01-25'
            nationality:
              type: string
              description: >-
                ISO 3166-1 alpha-2 code, case-insensitive — `AR`, not `ARG` nor
                `Argentina`. Not restricted to the four operating countries, but
                **not every ISO code is accepted**: sixteen current codes are
                refused (`AX`, `BL`, `BQ`, `CD`, `CW`, `GG`, `IM`, `JE`, `ME`,
                `MF`, `MK`, `PS`, `RS`, `SS`, `SX`, `TL`) because the identity
                provider's own list predates the 2006 ISO revision. **Required
                for AR, MX and CO**; optional for BR.
              example: AR
            id_number_type:
              type: string
              description: >-
                Document type, case-insensitive. The catalog differs by country:
                **AR** `DNI`, `R_P`, `OTHER` (optional, defaults to `DNI`);
                **BR** `CPF`, `CNPJ` (**required**); **CO** `CC`, `CE`, `PPT`
                (**required**). Not accepted for MX. Omit the field rather than
                sending `""` or `null` where it is optional — both are rejected.
              example: DNI
            id_number:
              type: string
              description: >-
                Document number — the format depends on the country. **AR**
                (required): 7 or 8 digits, no dots or spaces. **BR** (required):
                a CPF (11 digits) or CNPJ (14 digits); the check digits are
                verified and separators are accepted and stripped, so
                `123.456.789-09` is valid. The approved document binds PIX
                operations to the verified customer and is used to verify
                destination account ownership. **MX** (required): a CURP. **CO**
                (required): digits, with a length that depends on
                `id_number_type` — `CC` 7 to 10, `CE` 6 or 7, `PPT` 6 to 15;
                punctuation is ignored.
              example: '11122233'
            cuit:
              type: string
              description: >-
                Argentine tax ID. **AR only, required.** 11 digits with a valid
                modulus-11 check digit; separators are accepted and stripped, so
                `20-38804362-9` is valid. Pass the customer's CUIL when
                `registered_tax_payer` is `false` (individual), or their CUIT
                when it is `true` (registered taxpayer).
              example: '20388043629'
            registered_tax_payer:
              type: boolean
              description: >-
                Whether the customer is a registered taxpayer (*responsable
                inscripto*). **AR only, required.**
              example: false
            rfc:
              type: string
              description: >-
                Mexican tax ID. **MX only, required.** Normalized (upper-cased,
                separators stripped), then checked: 3 or 4 letters, 6 digits and
                an optional homoclave of up to 5 characters, so both
                `HZDT240502GRA` and `HZDT240502` are valid.
              example: LOJO951119Q18
            address:
              type: string
              maxLength: 255
              description: Street name. **Required for AR, MX and CO**; optional for BR.
              example: Libertad
            address_number:
              type: string
              maxLength: 32
              description: Street number. **Required for AR, MX and CO**; optional for BR.
              example: '333'
            address_flat:
              type: string
              maxLength: 255
              description: Apartment / unit. Optional in every country.
              example: 4B
            address_type:
              type: string
              description: >-
                Type of dwelling: `SUIT` (apartment), `HOME` (house) or `UNIT`.
                Case-insensitive. **CO only, required.**
              example: HOME
            postal_code:
              type: string
              maxLength: 32
              description: >-
                **AR** (required): a CP (`1012`) or a CPA (`B1665DQJ`); case and
                separators are forgiven, so `B1665 DQJ` is valid; the short form
                `B1665` is refused. **BR** (required): a CEP of 8 digits;
                `01310-100` is accepted and stored as `01310100`. **MX**
                (required): free text, not format-checked. Not accepted for CO.
              example: '1012'
            district:
              type: string
              maxLength: 40
              description: >-
                Neighbourhood or district. **Required for MX and CO**, optional
                for BR, **not accepted for AR**.
              example: Chapinero
            city:
              type: string
              maxLength: 64
              description: >-
                **AR, BR, MX**: free text (required). **CO**: the city's **DANE
                code**, not its name — `11001`, not `Bogotá` — and it must
                belong to the department declared in `state`. The CO codes are
                listed under `city` in `/kycRequirements/`.
              example: Trelew
            state:
              type: string
              description: >-
                State / province / department, as the country-prefixed code from
                `/kycRequirements/` (`AR.CH`, `BR.SP`, `MX.JA`, `CO.DC`). The
                bare code is also accepted and prefixed for you (`SP` →
                `BR.SP`). **Labels are rejected**: send `AR.BA`, not `Buenos
                Aires`. Required in every country.
              example: AR.CH
            phone:
              type: string
              description: >-
                Phone number in E.164 format: the `+` and the country code are
                required. Separators (spaces, dashes, parentheses) are accepted
                and stripped, so `+54 (11) 2345-6789` is valid. A
                national-format number such as `1123456789` is rejected — the
                country code is never inferred. Required in every country.
              example: '+542211228855'
            personal_activity:
              type: string
              description: >-
                Occupation code from `/kycRequirements/`. **Required for MX**;
                for **AR** it is published as required and validated when
                present, but a payload that omits it is still accepted today.
                Not accepted for BR or CO. AR and MX use different catalogs
                (`AR.1`…`AR.6` and `MX.1`, `MX.1000000`, …). The bare code is
                prefixed for you.
              example: AR.1
            personal_activity_other:
              type: string
              description: >-
                The detailed activity, as a code from the
                `personal_activity_other` catalog in `/kycRequirements/`
                (`AR.1`…`AR.64`) — **not free text**. **AR only**, and
                **required when `personal_activity` is `AR.3` (Monotributista)
                or `AR.4` (Autónomo)**; optional otherwise.


                Note this is a *different* catalog from `personal_activity`, and
                their values overlap: `AR.3` means "Monotributista" in one and
                something unrelated in the other. Read each list from its own
                entry in `/kycRequirements/`.
              example: AR.64
            net_income:
              type: string
              description: >-
                Annual net income **as a bracket code, not an amount**. **AR**:
                `AR.A`…`AR.F` — published as required and validated when
                present, but a payload that omits it is still accepted today.
                **BR** (required): `BR.A`, `BR.B` or `BR.C`. Not accepted for MX
                or CO. The labels for each bracket come from
                `/kycRequirements/`; the bare code (`A`) is prefixed for you.
              example: AR.A
            birthday_place:
              type: string
              description: >-
                Country of birth, as an **ISO 3166-1 alpha-2 code** — the same
                vocabulary as `nationality`. **MX only, required.** A city name
                such as `Guadalajara` is rejected.
              example: MX
            date_of_issue:
              type: string
              format: date
              description: >-
                ID issue date, as `YYYY-MM-DD` or `DD/MM/YYYY`. Cannot be in the
                future. **MX only, required.**
              example: '2020-01-01'
            date_of_expiration:
              type: string
              format: date
              description: >-
                ID expiration date, as `YYYY-MM-DD` or `DD/MM/YYYY`. Must be
                **strictly later** than `date_of_issue`. An already-expired
                document is accepted — whether it disqualifies the customer is
                decided by the KYC provider. **MX only, required.**
              example: '2030-01-01'
            terms_conditions:
              type: boolean
              description: Acceptance of terms and conditions. **MX only, required.**
              example: true
            address_photo:
              type: string
              format: byte
              description: >-
                Proof of address as a base64-encoded image (JPEG or PNG, max 5
                MB). **MX only.** Required only for accounts configured for the
                Ripio-provider widget flow; optional otherwise.
              example: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...
          required:
            - country
            - first_name
            - last_name
            - id_number
            - address
            - city
            - state
            - phone
        redirectUrl:
          type: string
          format: uri
          description: >-
            URL to redirect the user after completing the KYC flow. Required for
            the Ripio KYC delegated flow; optional for the API flow.
          example: https://www.example.com/
        kycProviderShareToken:
          type: string
          maxLength: 2000
          description: >-
            Optional. Sumsub share token for a customer already verified in your
            own Sumsub account (reusable KYC). Ripio redeems it so that, when
            both verifications are compatible, the customer does not have to
            upload documents or repeat the liveness check. On this endpoint, it
            only takes effect for the Ripio KYC delegated flow (no
            `kycSubmission`, only `redirectUrl`). For the API flow, send it on
            [Start KYC](/ramps-api/kyc/start-kyc) instead — that is the call
            that opens the verification for that flow, and sending it here has
            no effect.


            **Two prerequisites must be met before this field does anything.**
            First, reusable KYC is an opt-in feature that must be enabled for
            your account by the Ripio team: while it is disabled, sending this
            field returns `403` with the error code `20065`
            (`KycProviderTokenSharingNotEnabledException`) and no KYC is
            created. Second, your Sumsub account must be paired with Ripio's as
            a sharing partner — you add the partner token Ripio gives you under
            *Reusable identity → Partners → Recipients → Add recipient* in your
            Sumsub dashboard; without that pairing, the tokens you generate are
            rejected when Ripio tries to redeem them. See [Reusable KYC
            prerequisites](/ramps-api/kyc/reusable-kyc#prerequisites) and
            Sumsub's [Add
            recipient](https://docs.sumsub.com/docs/manage-sharing-partners#add-recipient).


            Generate the token with Sumsub's [Generate share
            token](https://docs.sumsub.com/reference/generate-share-token)
            endpoint, using the customer's `applicantId` and `forClientId` set
            to Ripio's Sumsub client ID.


            Reuse is subject to Sumsub's compatibility rules: only the
            verification steps that overlap between your level and Ripio's are
            transferred, and the shared documents are re-checked against Ripio's
            requirements. When the levels have no matching steps, or a re-check
            fails, the customer is asked to complete the missing steps — see
            Sumsub's [Reusable KYC
            share](https://docs.sumsub.com/docs/reusable-kyc-share)
            documentation.


            Share tokens are short-lived and single-use: generate a fresh token
            right before each call to this endpoint. The token is only used when
            a new verification process is opened — if a verification is already
            in progress for the customer, the response is idempotent and the
            token is ignored.
    KycSubmissionResponse:
      type: object
      properties:
        submissionId:
          type: string
          format: uuid
          description: Unique identifier for the submitted KYC data.
        createdAt:
          type: string
          format: date-time
          description: Date and time the KYC submission was created (UTC format).
        providerUrl:
          type: string
          format: url
          description: >-
            Points to a third-party KYC provider's widget to handle file uploads
            and liveness checks. Only available in production.
        otpRequired:
          type: boolean
          description: >-
            Whether the OTP sent to the customer's email still needs to be
            validated with [Validate KYC OTP](/ramps-api/kyc/validate-kyc-otp)
            before continuing. Only present for accounts configured for Ripio
            KYC reuse via OTP.
      required:
        - submissionId
        - createdAt
        - providerUrl
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Application-specific error code.
        type:
          type: string
          description: Type of error or exception.
        detail:
          type:
            - object
            - array
          description: >-
            Error details. The shape depends on the error:


            - Most business errors return an object with a `message` key.

            - Field validation errors return an object keyed by field name, each
            holding an array of `{ message, code }`.

            - Request-level validation errors (e.g. a missing query parameter)
            return a bare array of `{ message, code }`.
          properties:
            message:
              type: string
              description: Detailed error message.
          additionalProperties: true
        status:
          type: integer
          description: HTTP status code.
      required:
        - code
        - type
        - detail
        - status
  securitySchemes:
    BearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Access token obtained via
        [/oauth2/token/](/ramps-api/authentication/acquire-access-token). Use as
        `Authorization: Bearer <access_token>`.

````

## Related topics

- [Validate KYC OTP](https://docs.ripio.com/ramps-api/kyc/validate-kyc-otp.md)
- [Start KYC](https://docs.ripio.com/ramps-api/kyc/start-kyc.md)
- [Partner-submitted KYC (API)](https://docs.ripio.com/ramps-api/kyc/kyc-via-api-overview.md)
- [Ripio-hosted KYC (redirect)](https://docs.ripio.com/ramps-api/kyc/kyc-with-ripio.md)
- [KYC fields by country](https://docs.ripio.com/ramps-api/kyc/kyc-fields-by-country.md)


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