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

# Patch customer

> Partially updates a customer. Only fields present in the request body are modified; absent fields are left unchanged. To clear an optional field, send an empty string.



## OpenAPI

````yaml /api-reference/nexus/nexus-api-oas.json patch /customers/{id}
openapi: 3.0.3
info:
  title: Nexus API
  description: >-
    The Nexus API provides access to charging stations, chargers, connectors,
    tariffs, customers, and charging sessions for partner backend integrations.


    ## Integration model


    This API is designed for server-to-server use. End-user applications should
    access this data through the partner backend rather than calling these
    endpoints directly.


    ## Authentication


    Every request must include an `x-api-key` header containing a valid API key.
    Missing or unrecognized API keys are rejected with `401 Unauthorized`.


    ## IDs


    Stations, chargers, and tariffs use `id` as their public stable identifier.
    These identifiers are exactly 8 alphanumeric characters. Customers use `id`,
    an opaque identifier supplied by the partner system. Sessions use a numeric
    session ID. Connector IDs are 1-based positive integers within a charger;
    invalid connector path values return `404 Not Found`.


    ## Tariffs


    Tariffs use a structured pricing model with elements, price components, and
    optional restrictions. `tariffId` response fields reference public tariff
    identifiers and are omitted when no tariff applies.


    ## Pagination


    Paginated collection endpoints accept `limit` and `offset` query parameters.
    Missing, non-integer, zero, or negative `limit` values use the default limit
    of 100; values above 100 are clamped to 100. Missing, non-integer, or
    negative `offset` values use 0. The response body includes a `links` object
    with `next` and `prev` URLs. A link is `null` when that page does not exist.
    The total result count is returned in the `X-Total-Count` response header.
  version: 1.0.0
servers:
  - url: https://{host}/v1
    description: Environment-specific Nexus API base URL.
    variables:
      host:
        default: api.example.com
        description: Nexus API host provided during onboarding.
security:
  - ApiKeyAuth: []
tags:
  - name: Stations
  - name: Chargers
  - name: Connectors
  - name: Tariffs
  - name: Customers
  - name: Sessions
paths:
  /customers/{id}:
    patch:
      tags:
        - Customers
      summary: Patch customer
      description: >-
        Partially updates a customer. Only fields present in the request body
        are modified; absent fields are left unchanged. To clear an optional
        field, send an empty string.
      parameters:
        - $ref: '#/components/parameters/customerId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerPatchRequest'
      responses:
        '200':
          description: Customer patched.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponse'
        '400':
          description: Malformed or empty JSON body, or no updatable fields supplied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Customer not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    customerId:
      name: id
      in: path
      required: true
      description: >-
        Customer identifier supplied by the partner system. Must be unique
        within your account. Leading and trailing whitespace is trimmed.
      schema:
        type: string
        minLength: 1
  schemas:
    CustomerPatchRequest:
      type: object
      description: >-
        At least one field must be present. Absent or null fields are left
        unchanged. Values are trimmed of leading and trailing whitespace.
      minProperties: 1
      properties:
        name:
          type: string
          description: >-
            If provided, replaces the customer name. Send an empty string to
            clear.
        phone_number:
          type: string
          description: >-
            If provided, replaces the phone number. Send an empty string to
            clear.
        email:
          type: string
          description: If provided, replaces the email. Send an empty string to clear.
    CustomerResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/Customer'
    ErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    Customer:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          minLength: 1
          description: Customer identifier supplied by the partner system.
        name:
          type: string
          description: Customer name. Omitted when not set.
        phone_number:
          type: string
          description: Customer phone number. Omitted when not set.
        email:
          type: string
          description: Customer email address. Omitted when not set.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key issued during onboarding. Every request must supply a valid
        x-api-key header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.