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

# Create Fiat Account

> Creates a new fiat account for a customer, linked to specific bank or virtual wallet details for withdrawals.

**Account confirmation requirement**

Wherever the destination is validated, the account has to be confirmed before it can receive a payout — call [Confirm Fiat Account](/ramps-api/fiat-accounts/confirm-fiat-account). When it reaches `unconfirmed` depends on whether that validation is synchronous:

- **Argentina** (`bank_transfer`) and **Brazil** (`pix`): validated while this request is served, so the account comes back **already `unconfirmed`**, with the resolved holder in `metadata` for the end user to review.
- **Mexico** (`bank_transfer`) and **Colombia** (`breb`): validated asynchronously, so the account starts as `processing` and becomes `unconfirmed` once validation returns. Poll [List Fiat Accounts](/ramps-api/fiat-accounts/list-fiat-accounts) for the transition.

See the [fiat account lifecycle](/ramps-api/fiat-accounts/lifecycle) for the full state machine.

**Important:** Where the provider resolves the account holder, that holder must be the customer themselves: in **Mexico** the owner name and RFC on the KYC must match the bank account's, and in **Brazil** the PIX key's holder document must match the customer's CPF/CNPJ. A mismatch creates the account as `disabled`.



## OpenAPI

````yaml ramps-api/openapi.json POST /api/v1/fiatAccounts/
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/fiatAccounts/:
    post:
      tags:
        - Fiat Accounts
      summary: Create Fiat Account
      description: >-
        Creates a new fiat account for a customer, linked to specific bank or
        virtual wallet details for withdrawals.


        **Account confirmation requirement**


        Wherever the destination is validated, the account has to be confirmed
        before it can receive a payout — call [Confirm Fiat
        Account](/ramps-api/fiat-accounts/confirm-fiat-account). When it reaches
        `unconfirmed` depends on whether that validation is synchronous:


        - **Argentina** (`bank_transfer`) and **Brazil** (`pix`): validated
        while this request is served, so the account comes back **already
        `unconfirmed`**, with the resolved holder in `metadata` for the end user
        to review.

        - **Mexico** (`bank_transfer`) and **Colombia** (`breb`): validated
        asynchronously, so the account starts as `processing` and becomes
        `unconfirmed` once validation returns. Poll [List Fiat
        Accounts](/ramps-api/fiat-accounts/list-fiat-accounts) for the
        transition.


        See the [fiat account lifecycle](/ramps-api/fiat-accounts/lifecycle) for
        the full state machine.


        **Important:** Where the provider resolves the account holder, that
        holder must be the customer themselves: in **Mexico** the owner name and
        RFC on the KYC must match the bank account's, and in **Brazil** the PIX
        key's holder document must match the customer's CPF/CNPJ. A mismatch
        creates the account as `disabled`.
      operationId: createFiatAccount
      parameters:
        - $ref: '#/components/parameters/EndUserIp'
        - $ref: '#/components/parameters/EndUserAgent'
        - $ref: '#/components/parameters/EndUserDeviceId'
      requestBody:
        required: true
        description: Details for the new fiat account.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FiatAccountCreationRequest'
            examples:
              Argentina:
                summary: Argentina - CBU/CVU/Alias Account
                value:
                  customerId: 964c8c8c-573d-4f8f-bd2e-8645c3124e74
                  paymentMethodType: bank_transfer
                  accountFields:
                    alias_or_cvu_destination: '0100000000000000000001'
              Mexico:
                summary: Mexico - CLABE Account
                description: >-
                  Two fields: the 18-digit `clabe_destination` and the
                  `holder_name` of the account. The CLABE must be 18 digits and
                  its last (check) digit must match the first 17, so a mistyped
                  CLABE is refused with a `20000` instead of being created.
                  `holder_name` is the account holder's full name as the bank
                  has it: it is the name every payout to this account is sent
                  to. Up to 40 characters, with no control characters (line
                  breaks, tabs); runs of spaces are collapsed into one. Sending
                  the same CLABE again for the same customer does not create a
                  second account: it updates the `holder_name` of the existing
                  one.
                value:
                  customerId: 50277a14-2376-4e42-985e-4bc1f7303dc3
                  paymentMethodType: bank_transfer
                  accountFields:
                    clabe_destination: '012180001234567899'
                    holder_name: Ana López Hernández
              Colombia - BREB:
                summary: Colombia - BREB Key Account
                value:
                  customerId: a3b2c1d0-1234-5678-9abc-def012345678
                  paymentMethodType: breb
                  accountFields:
                    key_value: '@ABC123'
              Colombia - Bank Transfer:
                summary: Colombia - Bank Transfer Account
                description: >-
                  For Colombia bank transfers, use GET /api/v1/banks/ to
                  retrieve valid beneficiary_institution codes and their allowed
                  counterparty_types.
                value:
                  customerId: a3b2c1d0-1234-5678-9abc-def012345678
                  paymentMethodType: bank_transfer
                  accountFields:
                    counterparty_type: cc
                    counterparty_fullname: Santiago García
                    counterparty_id_type: cc
                    counterparty_id_number: '1234567890'
                    beneficiary_institution: '1001'
                    account_number: '12345678901234'
              Brazil - PIX:
                summary: Brazil - PIX Account
                description: >-
                  A single field: the PIX key, which may be a CPF, CNPJ, email,
                  phone or EVP (random) key. Send each type in its canonical
                  format: CPF as 11 bare digits, CNPJ as 14 bare digits, email
                  as a plain address, EVP as a UUID, and **a phone number in
                  international format, starting with `+` and the country code**
                  (`+5511987654321`). A phone key without the `+` is rejected
                  with a 400. The key is resolved to its account holder while
                  the request is being served, and the holder's document must
                  match the customer's own Brazilian KYC document (CPF/CNPJ) — a
                  key belonging to a third party is created as `disabled` and
                  cannot be used. The account is created as `unconfirmed`, so it
                  must be confirmed before it can receive a withdrawal.
                value:
                  customerId: a3b2c1d0-1234-5678-9abc-def012345678
                  paymentMethodType: pix
                  accountFields:
                    pix_key: '12345678901'
              Brazil - PIX (phone key):
                summary: Brazil - PIX Account by phone number
                description: >-
                  A phone PIX key must carry the `+` and the country code,
                  exactly as BACEN registered it. Sending the same number as
                  bare digits (`5511987654321` or `11987654321`) is rejected
                  with a 400 naming the expected format.
                value:
                  customerId: a3b2c1d0-1234-5678-9abc-def012345678
                  paymentMethodType: pix
                  accountFields:
                    pix_key: '+5511987654321'
      responses:
        '201':
          description: Fiat account created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FiatAccount'
        '400':
          description: >-
            Bad Request - e.g., invalid input data, missing required fields. A
            destination account that cannot be used is refused here rather than
            created: read `code` to tell whether the value has to be corrected,
            or the account itself has to be fixed at its bank. A `20039` is not
            about the account data at all: the customer has not accepted the
            active Terms and Conditions. A `20100` means the customer has no
            valid investor profile (Brazilian accounts only).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                malformedValue:
                  summary: The value is not a usable identifier (20000)
                  description: >-
                    Field validation, before the account is looked up anywhere.
                    In Brazil this is where a phone PIX key sent without its `+`
                    and country code lands.
                  value:
                    code: 20000
                    type: ValidationError
                    detail:
                      non_field_errors:
                        - message: >-
                            Invalid accountFields '{'pix_key': '11987654321'}':
                            Invalid pix_key: a phone PIX key must be sent in
                            international format, starting with '+' and the
                            country code (e.g. '+5511987654321').
                          code: invalid
                    status: 400
                invalidClabe:
                  summary: 'Mexico: the CLABE or the holder name is not valid (20000)'
                  description: >-
                    Field validation, before the account is looked up anywhere:
                    a CLABE that is not 18 digits or whose check digit does not
                    match, a missing `holder_name`, or one longer than 40
                    characters or with control characters. Correct the value and
                    retry.
                  value:
                    code: 20000
                    type: ValidationError
                    detail:
                      non_field_errors:
                        - message: >-
                            Invalid accountFields '{'clabe_destination':
                            '012180001234567890', 'holder_name': 'Ana López
                            Hernández'}': Account number is not a valid CLABE:
                            its check digit does not match.
                          code: invalid
                    status: 400
                keyNotFound:
                  summary: No account exists for this identifier (20079)
                  description: >-
                    The identifier is well formed but no bank has it registered
                    — in Brazil, a PIX key the DICT resolves to nothing. A dead
                    end: the customer has to correct the value, retrying the
                    same one cannot succeed.
                  value:
                    code: 20079
                    type: FiatAccountKeyNotFoundException
                    detail:
                      message: The destination key does not exist.
                    status: 400
                keyNotUsable:
                  summary: The account exists but cannot receive a transfer (20080)
                  description: >-
                    It resolved, so it is the customer's account — what has to
                    change is its state at the bank. In Brazil, a PIX key still
                    being claimed at BACEN, or a cancelled one.
                  value:
                    code: 20080
                    type: FiatAccountKeyNotUsableException
                    detail:
                      message: The destination key exists but cannot receive transfers.
                    status: 400
                destinationBankNotSupported:
                  summary: 'Mexico: the CLABE''s bank is not supported (20089)'
                  description: >-
                    The CLABE is well formed, but the bank its first three
                    digits identify cannot receive payouts. A dead end, like
                    `20079`: the customer has to register an account at another
                    bank — retrying the same CLABE cannot succeed.
                  value:
                    code: 20089
                    type: FiatAccountDestinationBankNotSupportedException
                    detail:
                      message: >-
                        The destination bank could not be resolved from the
                        CLABE.
                    status: 400
                invalidAccountData:
                  summary: The account data is not valid (20021)
                  description: >-
                    The generic answer, and the only one for the countries whose
                    provider does not report a reason. Brazil narrows it to
                    `20079` / `20080`, and Mexico to `20089`, above.
                  value:
                    code: 20021
                    type: InvalidFiatAccountDataException
                    detail:
                      message: Fiat account does not exist. Validate the account data.
                    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
                investorProfileRequired:
                  summary: 'Brazil: the customer has no valid investor profile (20100)'
                  description: >-
                    Registering a destination account is gated like an
                    operation: the customer never answered the investor
                    questionnaire, or their profile expired. Have them answer it
                    with [Submit Investor
                    Profile](/ramps-api/investor-profile/submit-investor-profile)
                    and retry. Only Brazilian accounts with the investor profile
                    enabled — see [Investor Profile
                    (Brazil)](/ramps-api/investor-profile/introduction).
                  value:
                    code: 20100
                    type: InvestorProfileRequiredException
                    detail:
                      message: >-
                        Customer '3fa85f64-5717-4562-b3fc-2c963f66afa6' does not
                        have a valid investor profile.
                    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
        '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:
    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:
    FiatAccountCreationRequest:
      type: object
      properties:
        customerId:
          type: string
          format: uuid
          description: >-
            The unique identifier of the customer for whom the account is being
            created.
        paymentMethodType:
          type: string
          description: >-
            An enumerated value specifying the type of fiat account. Valid
            options depend on supported payment rails. (e.g., bank_transfer)
        accountFields:
          type: object
          description: >-
            A dictionary containing additional information required for the
            specific fiat account type. Fields depend on 'paymentMethodType and
            are defined by /fiatAccounts/requirements/.
          additionalProperties: true
          examples:
            - alias_or_cvu_destination: '0100000000000000000001'
            - clabe_destination: '012180001234567899'
              holder_name: Ana López Hernández
            - key_value: '@ABC123'
            - counterparty_type: cc
              counterparty_fullname: Santiago García
              counterparty_id_type: cc
              counterparty_id_number: '1234567890'
              beneficiary_institution: '1001'
              account_number: '12345678901234'
            - pix_key: '12345678901'
            - pix_key: '+5511987654321'
      required:
        - customerId
        - paymentMethodType
        - accountFields
    FiatAccount:
      type: object
      properties:
        fiatAccountId:
          type: string
          format: uuid
          description: The unique identifier of the fiat account.
        fiatAccountFields:
          type: object
          description: A dictionary containing the details provided for the fiat account.
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
          description: The date and time the fiat account was created (UTC format).
        status:
          type: string
          description: >-
            An enumerated value specifying the fiat account status. Only one
            account can be active (ENABLED) per payment method at a time:
            enabling a new account automatically moves the previously active
            account for the same customer and payment method to SUSPENDED. A
            SUSPENDED account can be reactivated by re-registering it or
            referencing it in a new off-ramp.
          enum:
            - UNCONFIRMED
            - PROCESSING
            - ENABLED
            - DISABLED
            - SUSPENDED
            - REVALIDATION_REQUIRED
            - DEACTIVATED
          example: PROCESSING
        metadata:
          type: object
          nullable: true
          description: >-
            Whatever the provider resolved about the account while validating
            it, when it resolves anything. Argentina (`bank_transfer`) returns
            the CVU/alias holder; Brazil (`pix`) returns the PIX key's holder —
            `name`, the masked `tax_id` and `bank_name`, plus the account's own
            coordinates — and it is present whether the account came back
            `unconfirmed` or `disabled`, so you can show the customer whose
            account the key belongs to either way. Providers that validate
            nothing return `null`.
          additionalProperties: true
        paymentMethodType:
          type: string
          description: Type of the fiat account.
        customerId:
          type: string
          format: uuid
          description: The unique identifier of the customer owning this account.
      required:
        - fiatAccountId
        - fiatAccountFields
        - createdAt
        - status
        - paymentMethodType
        - customerId
    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

- [Create Fiat Account](https://docs.ripio.com/crypto-as-a-service/fiat-accounts/create-fiat-account.md)
- [Create fiat account for sell and pay](https://docs.ripio.com/ramps-api/sell-and-pay/create-fiat-account.md)
- [Confirm Fiat Account](https://docs.ripio.com/ramps-api/fiat-accounts/confirm-fiat-account.md)
- [Fiat account lifecycle](https://docs.ripio.com/ramps-api/fiat-accounts/lifecycle.md)
- [Banking as a Service](https://docs.ripio.com/crypto-as-a-service/guides/banking-as-a-service.md)


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