---
updatedAt: 2026-03-24T12:22:55.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Update a customer

Updates an existing customer profile, including a card associated with the customer.

# OpenAPI definition

```json
{
  "components": {
    "requestBodies": {
      "CreateCustomerRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "ecomind": {
                  "type": "string",
                  "description": "Indicates who entered the card data used for a charge - customer (ecom) or merchant (moto).",
                  "default": "ecom",
                  "enum": [
                    "ecom",
                    "moto"
                  ]
                },
                "email": {
                  "type": "string",
                  "description": "Customer's email address."
                },
                "firstName": {
                  "type": "string",
                  "description": "Customer's first name."
                },
                "lastName": {
                  "type": "string",
                  "description": "Customer's last name."
                },
                "name": {
                  "type": "string",
                  "description": "Customer's full name."
                },
                "source": {
                  "type": "string",
                  "description": "Payment source to charge, such as `token` or `ACH`."
                },
                "phone": {
                  "type": "string",
                  "description": "Customer's phone number."
                },
                "shipping": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/shipping"
                    }
                  ],
                  "description": "Shipping information of the customer.",
                  "nullable": true
                }
              },
              "required": [
                "email",
                "source"
              ]
            }
          }
        }
      }
    },
    "schemas": {
      "error": {
        "description": "Error response from the API.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/api_errors"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "api_errors": {
        "properties": {
          "charge": {
            "description": "Displays for card-related errors. Unique identifier (Id) of the failed charge.",
            "maxLength": 5000,
            "type": "string"
          },
          "code": {
            "description": "Error code. Additional information about the error to help users identify the issue.",
            "maxLength": 5000,
            "type": "string"
          },
          "decline_code": {
            "description": "Displays when a card issuer declines the transaction. This includes the reason for the decline, if specified by the card issuer.",
            "maxLength": 5000,
            "type": "string"
          },
          "doc_url": {
            "description": "URL (link) for more information about the reported error code.",
            "maxLength": 5000,
            "type": "string"
          },
          "message": {
            "description": "Detailed information about the error code. For card-related errors, this can provide more information to users.",
            "maxLength": 40000,
            "type": "string"
          },
          "param": {
            "description": "Displays card parameter errors. The error message can inform users entering card information of a specific problem with their entry.",
            "maxLength": 5000,
            "type": "string"
          },
          "type": {
            "description": "Returned error type.",
            "enum": [
              "api_connection_error",
              "api_error",
              "authentication_error",
              "card_error",
              "idempotency_error",
              "invalid_request_error",
              "rate_limit_error"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "APIErrors",
        "type": "object",
        "x-expandableFields": [
          "payment_intent",
          "payment_method",
          "source"
        ]
      },
      "shipping": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/address"
          },
          "carrier": {
            "description": "Delivery service to ship the physical product. Example: DHL, Fedex, US Postal Service (USPS), and so on.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Recipient name for the shipped product.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "description": "Phone number, including extension, of the recipient.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "tracking_number": {
            "description": "Shipment number provided by the carrier. Use a comma-separated list for multiple tracking numbers.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "address"
        ],
        "title": "Shipping",
        "type": "object",
        "x-expandableFields": [
          "address"
        ]
      },
      "address": {
        "properties": {
          "city": {
            "description": "City of the customer's address. Can include district, suburb, town, or village.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Country code.\n Format: 2 characters",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "First line of the customer's address. Can include the street address, PO box, or company name.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Second line of the customer's address. Can include the apartment, suite, unit, or building number.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "Postal or ZIP code of the customer's address.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "State of the customer's address. Can include county, province, or region.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          }
        },
        "title": "Address",
        "type": "object",
        "x-expandableFields": []
      },
      "customer": {
        "properties": {
          "created": {
            "description": "Displays results based on the object's created field.\n Values:\n String with a Unix timestamp (in milliseconds).\n Dictionary of multiple options describing a time range.",
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).",
            "type": "string"
          },
          "default_source": {
            "description": "Universally unique identifier (UUID) of the customer's default payment source.",
            "nullable": true,
            "type": "string"
          },
          "delinquent": {
            "description": "For an invoice charged automatically, `delinquent` is `true` if the invoice's charge fails. For an invoice that is sent to the customer, `delinquent` is `true` if the invoice is not paid by its due date.",
            "nullable": true,
            "type": "boolean"
          },
          "description": {
            "description": "Description about the customer.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "email": {
            "description": "Customer email address.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the customer.",
            "maxLength": 5000,
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {
              "maxLength": 500,
              "type": "string"
            },
            "description": "Set of key-value pairs that you can attach to the object. This parameter is useful for storing additional information about the object in a structured format.\n Length: Maximum 500 characters",
            "type": "object"
          },
          "object": {
            "description": "Object type. Objects with the same type have the same value.",
            "enum": [
              "customer"
            ],
            "type": "string"
          },
          "shipping": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/shipping"
              }
            ],
            "description": "Customer mailing and shipping address. This information appears on invoices emailed to the customer.",
            "nullable": true
          },
          "sources": {
            "description": "Customer's payment `source`s if available",
            "properties": {
              "data": {
                "description": "Payment sources of the customer.",
                "items": {
                  "maxLength": 5000,
                  "type": "string"
                },
                "type": "array"
              },
              "has_more": {
                "description": "Set to `true` if there is another page of list items after the current page.",
                "type": "boolean"
              },
              "object": {
                "description": "Object type, set to list. Objects with the same type have the same value.",
                "enum": [
                  "list"
                ],
                "type": "string"
              },
              "url": {
                "description": "URL of the list of sources",
                "maxLength": 5000,
                "type": "string"
              }
            },
            "required": [
              "data",
              "has_more",
              "object",
              "url"
            ],
            "title": "ApmsSourcesSourceList",
            "type": "object",
            "x-expandableFields": [
              "data"
            ]
          }
        },
        "required": [
          "created",
          "id",
          "livemode",
          "object",
          "sources"
        ],
        "title": "Customer",
        "type": "object",
        "x-expandableFields": [
          "default_source",
          "discount",
          "invoice_settings",
          "shipping",
          "sources",
          "subscriptions"
        ],
        "x-resourceId": "customer"
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://sandbox.dev.clover.com/oauth/authorize",
            "tokenUrl": "https://sandbox.dev.clover.com/oauth/token",
            "scopes": {}
          }
        }
      }
    },
    "parameters": {
      "UserAgentHeader": {
        "name": "User-Agent",
        "in": "header",
        "description": "Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: `<product> / <product-version> <comment>`",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "PostmanRuntime/7.44.1"
      }
    }
  },
  "openapi": "3.0.0",
  "info": {
    "title": "Ecommerce Service API",
    "description": "REST API providing card-not-present transaction functions for Clover merchants and developers",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://scl-sandbox.dev.clover.com",
      "description": "SCL Sandbox API server (Default)"
    },
    {
      "url": "https://apisandbox.dev.clover.com",
      "description": "API Sandbox server (Use for Hosted Checkout)"
    }
  ],
  "security": [
    {
      "OAuth2": []
    }
  ],
  "paths": {
    "/v1/customers/{customerId}": {
      "put": {
        "tags": [
          "CUSTOMERS"
        ],
        "operationId": "UpdateCustomer",
        "summary": "Update a customer",
        "x-clover-handler": "com.clover.scl.handlers.customers.UpdateCustomerHandler",
        "x-clover-is-public": true,
        "description": "Updates an existing customer profile, including a card associated with the customer.",
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          },
          {
            "in": "path",
            "name": "customerId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Unique identifier (ID) of the customer."
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CreateCustomerRequest"
        },
        "responses": {
          "200": {
            "description": "Successful response. Customer record successfully updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer"
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```