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

# Update a Crypto Credential account

> Updates an account addressed by its accountAlias. Send only the fields you want to change; omitted fields are left as they are. Use it to suspend or reactivate an alias, optionally stating why through statusReasonInformation.



## OpenAPI

````yaml https://sandbox-api.borderless.xyz/v1/api-json put /v1/mastercard/crypto-credential/accounts
openapi: 3.0.0
info:
  title: Borderless API
  description: The Borderless API documentation.
  version: '1.0'
  contact: {}
servers:
  - url: https://sandbox-api.borderless.xyz
security: []
tags: []
paths:
  /v1/mastercard/crypto-credential/accounts:
    put:
      tags:
        - Mastercard Crypto Credential
      summary: Update a Crypto Credential account
      description: >-
        Updates an account addressed by its accountAlias. Send only the fields
        you want to change; omitted fields are left as they are. Use it to
        suspend or reactivate an alias, optionally stating why through
        statusReasonInformation.
      operationId: CryptoCredentialController_updateAccount
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CryptoCredentialAccountDto'
      responses:
        '204':
          description: Account updated successfully.
      security:
        - bearer: []
components:
  schemas:
    CryptoCredentialAccountDto:
      type: object
      properties:
        accountAlias:
          type: string
          maxLength: 255
          description: >-
            The alias that identifies the account. This is the only field
            required to create an account, and it is how every later request
            addresses it.
          example: user@example.com
        aliasType:
          description: The kind of value accountAlias holds.
          example: Email
          allOf:
            - $ref: '#/components/schemas/CryptoCredentialAliasType'
        status:
          description: >-
            The status of the account. A suspended account stops resolving in
            alias lookups until it is set back to Active.
          example: Active
          allOf:
            - $ref: '#/components/schemas/CryptoCredentialAccountStatus'
        country:
          description: >-
            The country the account belongs to, in ISO-3166-2 format. See
            [ISO-3166-2
            documentation](https://www.iso.org/iso-3166-country-codes.html).
          example: US
          allOf:
            - $ref: '#/components/schemas/CountryCode'
        statusReasonInformation:
          description: >-
            Why the account was put into the requested status. Only meaningful
            when status is sent as well.
          maxItems: 10
          type: array
          items:
            $ref: '#/components/schemas/CryptoCredentialStatusReasonInformationDto'
      required:
        - accountAlias
    CryptoCredentialAliasType:
      type: string
      enum:
        - Email
        - PhoneNumber
        - DomainName
      description: The kind of value accountAlias holds.
    CryptoCredentialAccountStatus:
      type: string
      enum:
        - Active
        - Suspended
        - Decommissioned
      description: >-
        The status of the alias. Only an active alias should be treated as safe
        to send funds to. Absent when the alias could not be resolved.
    CountryCode:
      type: string
      enum:
        - AF
        - AL
        - DZ
        - AS
        - AD
        - AO
        - AI
        - AQ
        - AG
        - AR
        - AM
        - AW
        - AU
        - AT
        - AZ
        - BS
        - BH
        - BD
        - BB
        - BY
        - BE
        - BZ
        - BJ
        - BM
        - BT
        - BO
        - BQ
        - BA
        - BW
        - BV
        - BR
        - IO
        - BN
        - BG
        - BF
        - BI
        - CV
        - KH
        - CM
        - CA
        - KY
        - CF
        - TD
        - CL
        - CN
        - CX
        - CC
        - CO
        - KM
        - CD
        - CG
        - CK
        - CR
        - HR
        - CU
        - CW
        - CY
        - CZ
        - CI
        - DK
        - DJ
        - DM
        - DO
        - EC
        - EG
        - SV
        - GQ
        - ER
        - EE
        - SZ
        - ET
        - FK
        - FO
        - FJ
        - FI
        - FR
        - GF
        - PF
        - TF
        - GA
        - GM
        - GE
        - DE
        - GH
        - GI
        - GR
        - GL
        - GD
        - GP
        - GU
        - GT
        - GG
        - GN
        - GW
        - GY
        - HT
        - HM
        - VA
        - HN
        - HK
        - HU
        - IS
        - IN
        - ID
        - IR
        - IQ
        - IE
        - IM
        - IL
        - IT
        - JM
        - JP
        - JE
        - JO
        - KZ
        - KE
        - KI
        - KP
        - KR
        - KW
        - KG
        - LA
        - LV
        - LB
        - LS
        - LR
        - LY
        - LI
        - LT
        - LU
        - MO
        - MG
        - MW
        - MY
        - MV
        - ML
        - MT
        - MH
        - MQ
        - MR
        - MU
        - YT
        - MX
        - FM
        - MD
        - MC
        - MN
        - ME
        - MS
        - MA
        - MZ
        - MM
        - NA
        - NR
        - NP
        - NL
        - NC
        - NZ
        - NI
        - NE
        - NG
        - NU
        - NF
        - MP
        - 'NO'
        - OM
        - PK
        - PW
        - PS
        - PA
        - PG
        - PY
        - PE
        - PH
        - PN
        - PL
        - PT
        - PR
        - QA
        - MK
        - RO
        - RU
        - RW
        - RE
        - BL
        - SH
        - KN
        - LC
        - MF
        - PM
        - VC
        - WS
        - SM
        - ST
        - SA
        - SN
        - RS
        - SC
        - SL
        - SG
        - SX
        - SK
        - SI
        - SB
        - SO
        - ZA
        - GS
        - SS
        - ES
        - LK
        - SD
        - SR
        - SJ
        - SE
        - CH
        - SY
        - TW
        - TJ
        - TZ
        - TH
        - TL
        - TG
        - TK
        - TO
        - TT
        - TN
        - TR
        - TM
        - TC
        - TV
        - UG
        - UA
        - AE
        - GB
        - UM
        - US
        - UY
        - UZ
        - VU
        - VE
        - VN
        - VG
        - VI
        - WF
        - EH
        - YE
        - ZM
        - ZW
        - AX
        - ZZ
    CryptoCredentialStatusReasonInformationDto:
      type: object
      properties:
        reasonCode:
          description: Machine readable code explaining why the status was set.
          example: ALIAS_UNDER_INVESTIGATION
          allOf:
            - $ref: '#/components/schemas/MastercardStatusReasonCode'
        description:
          type: string
          maxLength: 255
          description: Human readable explanation shown alongside the reason code.
          example: The alias is currently under investigation
      required:
        - reasonCode
    MastercardStatusReasonCode:
      type: string
      enum:
        - ALIAS_UNDER_INVESTIGATION
        - BENEFICIARY_REJECTED_OTHER_REASON
        - ORIGINATOR_ALIAS_CANCELLED_TRANSACTION
        - ORIGINATOR_NETWORK_NOT_SUPPORTED
        - SMART_CONTRACT_NOT_SUPPORTED_BY_BENIFICIARY
        - INVALID_BLOCKCHAIN_ADDRESS
        - ORIGINATOR_ALIAS_BA_RISK_SCORE_HIGH
        - BENEFICIARY_ALIAS_BA_RISK_SCORE_HIGH
        - ORIGINATOR_RISK_SCORE_ABOVE_LIMIT
        - Beneficiary_RISK_SCORE_ABOVE_LIMIT
        - NOT_SUPPORTED
        - OTHER
        - ASSET_NETWORK_MAPPING_ALREADY_EXISTS
        - ASSET_IS_REQUIRED
        - NETWORK_IS_REQUIRED
        - SMART_CONTRACT_ADDRESS_NOT_ALLOWED_FOR_NATIVE_TOKEN
      description: Machine readable code explaining why the status is being changed.
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````