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

# Update Account

> Updates settings for the authenticated account. Accepts all parameters from Create Account plus the ones listed here.



## OpenAPI

````yaml PUT /accounts/me
openapi: 3.1.0
info:
  title: Truust API
  version: '2.0'
  description: >
    The Truust API allows you to manage payment flows, orders, customers,
    wallets, and more.


    ## Authentication


    All authenticated endpoints require a Bearer token using your account's
    **Secret Key**.


    ```

    Authorization: Bearer {your_secret_key}

    ```


    Your API keys are available in the Dashboard under **Account Settings → API
    Developers**.
  contact:
    email: hello@truust.io
  license:
    name: Proprietary
servers:
  - url: https://{subdomain}.truust.io/2.0
    description: Production
    variables:
      subdomain:
        default: your-subdomain
        description: Your account subdomain
  - url: https://{subdomain}-sandbox.truust.io/2.0
    description: Sandbox
    variables:
      subdomain:
        default: your-subdomain
        description: Your account subdomain
security:
  - bearerAuth: []
tags:
  - name: Account
    description: Manage your Truust account
  - name: Customers
    description: Manage buyers and sellers (end users)
  - name: Orders
    description: Create and manage escrow payment orders
  - name: Payins
    description: Manage incoming payments for orders
  - name: Payouts
    description: Manage outgoing payments from orders
  - name: Wallets
    description: Manage customer and account wallets
  - name: Bank Accounts
    description: Manage bank accounts for payouts
  - name: Cards
    description: Manage tokenized payment cards
  - name: Subscriptions
    description: Manage recurring payment subscriptions
  - name: Verifications
    description: KYC verification for customers and accounts
  - name: Bundles
    description: Manage product bundles for orders
  - name: Refunds
    description: View refund records
paths:
  /accounts/me:
    put:
      tags:
        - Account
      summary: Update current account
      description: >-
        Updates settings for the authenticated account. Accepts all parameters
        from Create Account plus the ones listed here.
      operationId: updateAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - allow_shipping
              example:
                name: My Company
                allow_shipping: 0
                business_phone: '+34666999666'
                business_description: Description of the business
              properties:
                name:
                  type: string
                  maxLength: 255
                allow_shipping:
                  type: integer
                  enum:
                    - 0
                    - 1
                  description: Required. Set to 1 to allow shipping on orders.
                value_shipping:
                  type: number
                  description: Required when `allow_shipping` is 1. Shipping fee value.
                fee_shipping:
                  type: number
                  description: Shipping fee amount (alternative to `value_shipping`).
                business_phone:
                  type: string
                  description: Must be a valid phone number.
                business_description:
                  type: string
                  description: Description of the account/business.
                image:
                  type: string
                  description: Base64-encoded image or URL for the account logo.
                custom_domain:
                  type: string
                  description: Custom domain URL.
                addon_account:
                  type: string
                  description: Addon's account credential.
                subaccounts:
                  type: array
                  items:
                    type: integer
                  description: Array of subaccount IDs associated with this account.
                allowed_gateways:
                  type: array
                  items:
                    type: string
                  description: Array of allowed gateways for the account.
                default_gateway:
                  type: string
                  description: Default payment gateway.
                  enum:
                    - ADDON
                    - ADDON_V2
                    - ADDON_ICE
                    - ADDON_HPP
                    - ADDON_APPLE_PAY
                    - AZUPAY
                    - BANKWIRE
                    - WALLET
                    - DCP
                    - EPX
                    - REDSYS_V2
                    - REDSYS_APPLE_PAY
                    - REDSYS_AUTH
                    - STRIPE
                    - DOCOMO
                    - SIBS_MBWAY
                    - SIBS_MULTIBANCO
                    - SEQURA
                    - UNNAX
                    - PAYPAL
                    - BIZUM
                    - INESPAY
                psd2_enabled:
                  type: integer
                  enum:
                    - 0
                    - 1
                metadata:
                  type: object
                  additionalProperties: true
      responses:
        '200':
          description: Updated account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    Account:
      type: object
      properties:
        self:
          type: string
          example: /2.0/accounts/me
        merchant_id:
          type: string
          description: Unique merchant identifier (addon_key).
        name:
          type: string
          example: My Company
        email:
          type: string
          format: email
        currency:
          type: string
          example: EUR
        country_code:
          type: string
          example: ES
        business_url:
          type: string
          nullable: true
        business_phone:
          type: string
          nullable: true
        business_description:
          type: string
          nullable: true
        image_url:
          type: string
          nullable: true
        public_key:
          type: string
        secret_key:
          type: string
          description: Secret API key. Only visible to the account owner.
        allow_shipping:
          type: integer
          enum:
            - 0
            - 1
        value_shipping:
          type: number
        is_active:
          type: boolean
        psd2_enabled:
          type: integer
          enum:
            - 0
            - 1
        allowed_gateways:
          type: array
          items:
            type: string
        gateways:
          type: array
          nullable: true
          items:
            type: object
            additionalProperties: true
          description: List of configured payment gateway objects for the account.
        default_gateway:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
          nullable: true
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: The given data was invalid.
              errors:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
                example:
                  name:
                    - The name field is required.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use your account's **Secret Key** as the Bearer token.

````