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

# Add Address to Customer



## OpenAPI

````yaml POST /customers/{uuid}/addresses
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:
  /customers/{uuid}/addresses:
    post:
      tags:
        - Customers
      summary: Add address to customer
      operationId: createCustomerAddress
      parameters:
        - $ref: '#/components/parameters/CustomerUuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressInput'
      responses:
        '200':
          description: Address created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Address'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  parameters:
    CustomerUuid:
      name: uuid
      in: path
      required: true
      schema:
        type: string
      description: Customer UUID.
  schemas:
    AddressInput:
      type: object
      required:
        - name
        - line1
        - city
        - state
        - zip_code
        - country
      example:
        name: my_address
        line1: Main street 123
        city: Barcelona
        state: Catalonia
        zip_code: '08001'
        country: ES
      properties:
        name:
          type: string
          maxLength: 255
          description: Address label or recipient name.
          example: my_address
        line1:
          type: string
          maxLength: 255
          description: Address line 1 (street and number).
          example: Main street 123
        line2:
          type: string
          maxLength: 255
          description: Address line 2 (apartment, suite, etc.).
        city:
          type: string
          maxLength: 255
          example: Barcelona
        state:
          type: string
          maxLength: 255
          example: Catalonia
        zip_code:
          type: string
          description: ZIP or postal code.
          example: '08001'
        country:
          type: string
          maxLength: 2
          description: ISO 3166-1 alpha-2 country code.
          example: ES
        email:
          type: string
          format: email
          maxLength: 255
        prefix:
          type: string
          description: Phone country prefix (e.g. `+34`). Required with `phone`.
          example: '+34'
        phone:
          type: string
          description: Phone number. Required with `prefix`.
          example: '612345678'
        tag:
          type: string
          maxLength: 100
        metadata:
          type: object
          additionalProperties: true
    Address:
      type: object
      properties:
        id:
          type: integer
        self:
          type: string
          nullable: true
        uuid:
          type: string
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        prefix:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        line1:
          type: string
          nullable: true
        line2:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        zip_code:
          type: string
          nullable: true
        tag:
          type: string
          nullable: true
        metadata:
          type: object
          nullable: true
          additionalProperties: true
        created_at:
          type: string
          format: date-time
          nullable: true
        connections:
          $ref: '#/components/schemas/Connections'
    Connections:
      type: object
      description: Hypermedia links to related resources.
      additionalProperties:
        type: string
  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.

````