# Update customer details

Updates details about customer

Endpoint: PATCH /customers/{id}
Version: 2.2.0
Security: bearerAuth, basicAuth

## Path parameters:

  - `id` (string, required)
    Customer Id
    Example: "cu_841b9b1a99fc4f0"

## Request fields (application/json):

  - `firstName` (string)
    First name of the customer. Must be present if companyName is not present.

  - `lastName` (string)
    Last name of the customer. Must be present if companyName is not present.

  - `companyName` (string)
    Company name of the customer. Must be present if firstName and lastName are not present.

  - `email` (string)
    E-mail address of the customer.

  - `phone` (object)

  - `phone.countryCode` (string)
    Area or country code of the phone number of the customer.

  - `phone.number` (string)
    Phone number of the customer.

  - `billingAddress` (object)

  - `billingAddress.streetName` (string)
    Street name of billing address.

  - `billingAddress.streetNumber` (string)
    Street number of billing address.

  - `billingAddress.city` (string)
    City of billing address.

  - `billingAddress.postalCode` (string)
    Postal code of billing address.

  - `billingAddress.state` (string)
    State of billing address.

  - `billingAddress.country` (string)
    Country of billing address.

## Response 200 fields (application/json):

  - `id` (string)
    Unique identifier of the customer assigned by Axepta Online.

  - `merchantCustomerId` (string)
    Unique identifier of the customer assigned by merchant.

  - `firstName` (string)
    First name of the customer. Present if passed by merchant in Payment.

  - `lastName` (string)
    Last name of the customer. Present if passed by merchant in Payment.

  - `companyName` (string)
    Last name of the customer. Present if passed by merchant in Payment.

  - `email` (string)
    E-mail address of the customer. Present if passed by merchant in Payment.

  - `phone` (object)

  - `phone.countryCode` (string)
    Area or country code of the phone number of the customer. Present if passed by merchant in Payment.

  - `phone.number` (string)
    Phone number of the customer. Present if passed by merchant in Payment.

  - `scope` (string)
    Scope of customer vault. Present if configured for the merchant in MAT.

  - `createdAt` (string)
    Creation date and time in ISO 8601 format.

  - `updatedAt` (string)
    Update date and time in ISO 8601 format.

  - `billingAddress` (object)

  - `billingAddress.streetName` (string)
    Street name of billing address. Present if passed by merchant in Payment.

  - `billingAddress.streetNumber` (string)
    Street number of billing address. Present if passed by merchant in Payment.

  - `billingAddress.city` (string)
    City of billing address. Present if passed by merchant in Payment.

  - `billingAddress.postalCode` (string)
    Postal code of billing address. Present if passed by merchant in Payment.

  - `billingAddress.state` (string)
    State of billing address. Present if passed by merchant in Payment.

  - `billingAddress.country` (string)
    Country of billing address. Present if passed by merchant in Payment.

  - `lastUsedAt` (string)
    Last used date and time in ISO 8601 format.


## Response 400 fields

## Response 404 fields

## Response 500 fields
