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

# Create an Alias to a Virtual Account

**Availability: Argentina**

This operation allows merchants to associate a custom, human-readable alias (CVU alias) with an existing active virtual account in Argentina.

An alias replaces the 22-digit CVU with a short, memorable text string, reducing errors when sharing payment details.

> **Info**
>
> * The alias must be unique at the country level. This is not a platform restriction, but a requirement of the Argentine banking system. If another CVU already uses the same alias, the request will be rejected.
> * To update an alias, call this same endpoint with the new value once the required 24-hour waiting period has elapsed.
> * Once created or updated, the alias **cannot be changed again for 24 hours**. There is no limit on the total number of changes.
> * The alias is activated asynchronously. An `INPROGRESS` response does not mean the alias is already active. Verify activation using the [Get Virtual Account Status](https://docs.localpayment.com/reference/get-virtual-account-status.md) endpoint.
> * To check which aliases are currently active on a virtual account, use the [Get Virtual Account Status](https://docs.localpayment.com/reference/get-virtual-account-status.md) endpoint.

## Alias Format Rules

* Only letters (a–z, A–Z), numbers (0–9), and dots (`.`) are allowed.
* Spaces, hyphens, underscores, at signs (`@`), and other special characters are **not** permitted.
* Length must be between **5 and 20 characters**.
* Valid examples: `alias.example`, `alias.example2026`, `alias.example.test`

## Best Practices

* Use meaningful, consistent aliases to aid in internal reconciliation and support flows.
* Log alias creation responses and associate them with your internal transaction records for easy auditing.
* Use the status check endpoint periodically or before payment collection to verify the alias is active and mapped correctly.


## OpenAPI

````yaml openapi/localpayment.json POST /api/virtual-account/{externalId}/alias
openapi: 3.1.0
info:
  version: '1.0'
  title: Localpayment
  contact:
    name: Support
    url: mailto:support@localpayment.com
servers:
  - url: https://api.stage.localpayment.com
    description: Stage
security:
  - token: []
paths:
  /api/virtual-account/{externalId}/alias:
    post:
      summary: Create an Alias to a Virtual Account
      operationId: create-an-alias-to-a-virtual-account
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer access token for authentication. This token is obtained from
            the [Get Access Token](/reference/get-token) or [Refresh Access
            Token](/reference/refresh-token) endpoints.
          required: true
          schema:
            type: string
        - name: externalId
          in: path
          description: >-
            The unique identifier of the virtual account to which you want to
            add an alias. This must be the exact externalId value you provided
            when creating the virtual account.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - C
                  description: >-
                    Type of alias. For Argentina, the only valid value is `C`
                    (Customizable — user-defined text).
                value:
                  type: string
                  description: >-
                    The desired alias value. Only letters (a–z, A–Z), numbers
                    (0–9), and dots (`.`) are permitted. Must be between 5 and
                    20 characters. Must be unique across the platform. Example:
                    `alias.example`, `alias.example2026`.
                  minLength: 5
                  maxLength: 20
              required:
                - type
                - value
              x-examples:
                Argentina Example:
                  type: C
                  value: alias.example
            examples:
              Argentina Example:
                value:
                  type: C
                  value: alias.example
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  externalId:
                    type: string
                    description: >-
                      The unique identifier of the virtual account. This is the
                      same externalId you supplied in the request, confirming
                      the alias was created for the correct account.
                  alias:
                    type: object
                    description: Alias information.
                    properties:
                      type:
                        type: string
                        description: Type of alias from the request (`C` for Customizable).
                      value:
                        type: string
                        description: The alias value from the request.
                  status:
                    type: object
                    description: Status information.
                    properties:
                      code:
                        type: string
                        description: Status code.
                      description:
                        type: string
                        description: Status description.
                      detail:
                        type: string
                        description: Additional information of the response.
                x-examples: {}
              examples:
                Argentina Example:
                  value:
                    externalId: 94c6faee-0b35-4304-915b-e857981b4c01
                    alias:
                      type: C
                      value: alias.example
                    status:
                      code: '100'
                      description: INPROGRESS
                      detail: Alias creation pending confirmation
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  externalId:
                    type: string
                    description: >-
                      The unique identifier of the virtual account. This is the
                      same externalId you supplied in the request, confirming
                      the alias was created for the correct account.
                  alias:
                    type: object
                    description: Alias information.
                    properties:
                      type:
                        type: string
                        description: Type of alias from the request (`C` for Customizable).
                      value:
                        type: string
                        description: The alias value from the request.
                  status:
                    type: object
                    description: Status information.
                    properties:
                      code:
                        type: string
                        description: Status code.
                      description:
                        type: string
                        description: Status description.
                      detail:
                        type: string
                        description: Additional information of the response.
                x-examples: {}
              examples:
                776 - Alias already in use:
                  value:
                    externalId: 94c6faee-0b35-4304-915b-e857981b4c01
                    alias:
                      type: C
                      value: alias.example
                    status:
                      code: '776'
                      description: REJECTED
                      detail: >-
                        The alias is already in use; please select a different
                        alias.
                777 - Invalid alias:
                  value:
                    externalId: 94c6faee-0b35-4304-915b-e857981b4c01
                    alias:
                      type: C
                      value: alias.example
                    status:
                      code: '777'
                      description: REJECTED
                      detail: The alias is invalid; please enter a valid alias.
                778 - Change period not elapsed:
                  value:
                    externalId: 94c6faee-0b35-4304-915b-e857981b4c01
                    alias:
                      type: C
                      value: alias.example
                    status:
                      code: '778'
                      description: REJECTED
                      detail: >-
                        The alias cannot be changed now; you must wait 24 hours
                        after the last update.
                779 - System error:
                  value:
                    externalId: 94c6faee-0b35-4304-915b-e857981b4c01
                    alias:
                      type: C
                      value: alias.example
                    status:
                      code: '779'
                      description: REJECTED
                      detail: System error to generate alias
                896 - Alias already assigned:
                  value:
                    externalId: 94c6faee-0b35-4304-915b-e857981b4c01
                    alias:
                      type: C
                      value: alias.example
                    status:
                      code: '896'
                      description: REJECTED
                      detail: Alias already assigned to this virtual account
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Additional information of the response.
                  code:
                    type: string
                    description: Status code.
                  messages:
                    type: array
                    description: Message list.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Token class.
                        token_type:
                          type: string
                          description: Token type.
                        message:
                          type: string
                          description: Message with additional information.
                x-examples: {}
              examples:
                401 - Token is invalid or expired:
                  value:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  timestamp:
                    type: string
                    description: Time when the request was created.
                  status:
                    type: integer
                    description: Status code.
                  error:
                    type: string
                    description: Error description.
                  message:
                    type: string
                    description: Message with additional information.
                  path:
                    type: string
                    description: Api path.
                x-examples: {}
              examples:
                500-Virtual Account doesn't exist:
                  value:
                    timestamp: '2025-05-10T02:14:00.736+00:00'
                    status: 500
                    error: Internal Server Error
                    message: Virtual Account doesn't exist
                    path: /virtual-account/94b6faee-0b875-4304-915b-ei579y1c07/alias
      security:
        - token: []
      servers:
        - url: https://api.stage.localpayment.com
          description: Stage
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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