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

# Update billing details

> Update consumer billing name and billing address fields used for payment verification.



## OpenAPI

````yaml /api/consumer.openapi.yaml patch /profile
openapi: 3.1.0
info:
  title: YouNegotiate Consumer API
  version: '2.0'
  description: >-
    Stateless API endpoints for consumer portal authentication and account
    access.
servers:
  - url: https://api.consumer.younegotiate.com
    description: Production
security: []
tags:
  - name: System
    description: Public consumer domain system and health endpoints.
  - name: Authentication
    description: >-
      Consumer identity matching, contact capture, OTP verification, token
      creation, and logout endpoints.
  - name: Profile - My ecoAddress
    description: Consumer profile tab for signed-in identity / ecoAddress context.
  - name: Profile - Communication Controls
    description: >-
      Consumer profile tab for communication permissions, email/mobile changes,
      and email/mobile verification.
  - name: Profile - My Billing Details
    description: >-
      Consumer profile tab for billing name and billing address details used for
      payment verification.
  - name: Profile - Personalize My Portal
    description: Consumer profile tab for portal colors and profile image personalization.
  - name: Accounts
    description: Consumer-owned account list and account detail endpoints.
  - name: Bill Pay Wallet
    description: >-
      Consumer Bill Pay Wallet saved payment profiles and scheduled payment
      method update endpoints.
  - name: Upcoming Payments
    description: >-
      Consumer My Bill Pay Calendar upcoming-payment rows and calendar display
      data.
  - name: Calendar Sync
    description: >-
      Consumer Google and Microsoft calendar connection, OAuth callback, and
      live-update endpoints.
  - name: Gift Registry
    description: >-
      Consumer Bill Pay Gift Registry account list, shared registry, and Helping
      Hand link endpoints.
  - name: EcoMailbox
    description: Consumer MyEcoMailBox list endpoints and unread sidebar badge state.
  - name: Notice Responses
    description: >-
      Consumer My Account notice-response wizard endpoints for sender details
      and account details.
paths:
  /profile:
    patch:
      tags:
        - Profile - My Billing Details
      summary: Update billing details
      description: >-
        Update consumer billing name and billing address fields used for payment
        verification.
      operationId: consumerUpdateProfile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateConsumerProfileRequest'
            example:
              first_name: Jane
              address: 100 Main Street
              city: Austin
              state: TX
              zip: 73301-1234
      responses:
        '200':
          description: Consumer profile updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerProfileMutationResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateConsumerProfileRequest:
      type: object
      required:
        - first_name
        - address
        - city
        - state
        - zip
      properties:
        first_name:
          type: string
          maxLength: 40
        address:
          type: string
          maxLength: 255
        city:
          type: string
          maxLength: 25
        state:
          type: string
          minLength: 2
          maxLength: 2
          description: Two-letter state code.
        zip:
          type: string
          pattern: ^\d{5}(?:-\d{4})?$
          description: Five-digit US ZIP code or ZIP+4.
          example: 73301-1234
    ConsumerProfileMutationResponse:
      type: object
      required:
        - message
        - data
      properties:
        message:
          type: string
          example: Billing details updated.
        data:
          $ref: '#/components/schemas/ConsumerProfile'
    ConsumerProfile:
      type: object
      additionalProperties: true
      properties:
        id:
          type: integer
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
        dob:
          type: string
          format: date
        last_four_ssn:
          type: string
          description: >-
            Last four SSN digits for the authenticated consumer profile. Clients
            should keep this locked in the UI and mask it by default.
          example: '1234'
        email:
          type: string
          format: email
          nullable: true
        mobile:
          type: string
          nullable: true
        image:
          $ref: '#/components/schemas/ProfileImage'
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        zip:
          type: string
          nullable: true
        email_permission:
          type: boolean
        text_permission:
          type: boolean
        is_email_verified:
          type: boolean
        is_mobile_verified:
          type: boolean
        is_communication_updated:
          type: boolean
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
    MessageResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    ValidationErrorResponse:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    ProfileImage:
      type: object
      required:
        - name
        - url
        - thumbnail_url
      properties:
        name:
          type: string
          nullable: true
        url:
          type: string
          example: >-
            https://api.consumer.younegotiate.com/storage/profile-images/consumer.jpg
        thumbnail_url:
          type: string
          example: >-
            https://api.consumer.younegotiate.com/storage/profile-images/thumbs/consumer.webp
  responses:
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
    ValidationError:
      description: Request validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum token

````