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

# Upsert the authenticated user billing address

> Creates or updates the 1:1 billing address linked to the user. Any subset of fields can be sent (PATCH semantics).



## OpenAPI

````yaml /openapi.json patch /v1/auth/me/billing
openapi: 3.0.0
info:
  title: OneSubnet Core API
  description: >-
    OneSubnet hosting panel API. Toutes les routes sont préfixées par /v1/
    (versioning URI). Les routes Panel sont appelées par le daemon Wings, pas
    par les clients. Les routes Admin nécessitent le rôle admin.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: Auth & Users
    description: Authentification, profil, gestion utilisateurs
  - name: Store
    description: 'Boutique: catégories, produits, panier'
  - name: Billing
    description: Facturation, checkout Stripe, webhooks
  - name: Services
    description: Services hébergés (enregistrements facturation)
  - name: Affiliation
    description: Parrainage et commissions
  - name: Notifications
    description: Notifications
  - name: Admin - RBAC
    description: Gestion des rôles, permissions, groupes
  - name: Admin - Store & Invoices
    description: CRUD produits, plans, coupons, factures
  - name: Admin - Settings & Tenants
    description: Configuration, multi-tenant, whitelabel
  - name: Admin - Audit
    description: Journal d'audit des requêtes
  - name: System
    description: Health, meta-info
paths:
  /v1/auth/me/billing:
    patch:
      tags:
        - Auth & Users
      summary: Upsert the authenticated user billing address
      description: >-
        Creates or updates the 1:1 billing address linked to the user. Any
        subset of fields can be sent (PATCH semantics).
      operationId: AuthProfileController_upsertBilling_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBillingAddressDto'
      responses:
        '200':
          description: ''
      security:
        - bearer: []
components:
  schemas:
    UpdateBillingAddressDto:
      type: object
      properties:
        companyName:
          type: string
          example: Acme Corp
          maxLength: 160
        vatNumber:
          type: string
          example: FR12345678901
          maxLength: 40
        siret:
          type: string
          example: '12345678900012'
          maxLength: 20
        address:
          type: string
          example: 16 rue Gustave Courbet
          maxLength: 200
        address2:
          type: string
          example: Apt 4B
          maxLength: 200
        city:
          type: string
          example: Paris
          maxLength: 120
        state:
          type: string
          example: Île-de-France
          maxLength: 120
        zip:
          type: string
          example: '75000'
          maxLength: 20
        country:
          type: string
          example: France
          maxLength: 80
        phone:
          type: string
          example: +33 6 12 34 56 78
          maxLength: 40
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Get the authenticated user profile](/api-reference/auth-&-users/get-the-authenticated-user-profile.md)
- [Update the authenticated user profile](/api-reference/auth-&-users/update-the-authenticated-user-profile.md)
- [Delete the authenticated user account (self-service)](/api-reference/auth-&-users/delete-the-authenticated-user-account-self-service.md)
- [List the current user's API keys](/api-reference/billing/list-the-current-users-api-keys.md)
- [Get a user's profile change history (admin)](/api-reference/auth-&-users/get-a-users-profile-change-history-admin.md)
