---
updatedAt: 2026-04-27T20:42:40.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Update a customer

Updates information for a single customer.

# OpenAPI definition

```json
{
  "x-samples-languages": [
    "curl",
    "node",
    "javascript",
    "java",
    "swift",
    "csharp"
  ],
  "openapi": "3.0.1",
  "info": {
    "title": "Platform API",
    "version": "3.0"
  },
  "externalDocs": {
    "url": "https://docs.clover.com"
  },
  "servers": [
    {
      "url": "https://apisandbox.dev.clover.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v3/merchants/{mId}/customers/{customerId}": {
      "post": {
        "tags": [
          "CUSTOMERS"
        ],
        "summary": "Update a customer",
        "description": "Updates information for a single customer.",
        "operationId": "customers.UpdateCustomer",
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          },
          {
            "name": "mId",
            "in": "path",
            "description": "Merchant identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "description": "Unique identifier of the customer.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "Expandable fields to display additional nested information: [addresses, emailAddresses, phoneNumbers, cards, metadata]",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier."
                  },
                  "merchant": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique identifier of the merchant."
                      }
                    },
                    "description": "Merchant with which the customer is associated."
                  },
                  "firstName": {
                    "type": "string",
                    "description": "First name of the customer.\n Length: Maximum 64 characters"
                  },
                  "lastName": {
                    "type": "string",
                    "description": "Last name of the customer.\n Length: Maximum 64 characters"
                  },
                  "marketingAllowed": {
                    "type": "boolean",
                    "description": "Indicates whether the customer allows marketing communication from Clover.\n **Note:** This function is only allowed for Clover internal apps, and third-party apps should receive marketing opt-in from customers per their local laws and store consent in their own systems."
                  },
                  "customerSince": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Date since when the customer is associated with the merchant."
                  },
                  "orders": {
                    "type": "array",
                    "description": "Customer's orders.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier of the order."
                        }
                      }
                    }
                  },
                  "addresses": {
                    "type": "array",
                    "description": "Customer's mailing and shipping address. This information is displayed on invoices emailed to the customer.\n Note: Address must contain a value.\n Length: Maximum 127 characters",
                    "items": {
                      "type": "object",
                      "properties": {
                        "address1": {
                          "type": "string",
                          "description": "Line 1 of the customer's street address."
                        },
                        "address2": {
                          "type": "string",
                          "description": "Line 2 of the customer's street address."
                        },
                        "address3": {
                          "type": "string",
                          "description": "Line 3 of the customer's street address."
                        },
                        "city": {
                          "type": "string",
                          "description": "Customer's city."
                        },
                        "country": {
                          "type": "string",
                          "description": "Customer's country."
                        },
                        "state": {
                          "type": "string",
                          "description": "Customer's state."
                        },
                        "zip": {
                          "type": "string",
                          "description": "Postal code of the customer's address."
                        }
                      }
                    }
                  },
                  "emailAddresses": {
                    "type": "array",
                    "description": "Customer's email address.",
                    "items": {
                      "required": [
                        "emailAddress"
                      ],
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier."
                        },
                        "emailAddress": {
                          "type": "string",
                          "description": "Email address of the customer. Note: A valid email address is required.\n. Email address domains are validated using the [Apache Domain Validator](https://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/routines/DomainValidator.html).\n. Customer email addresses are validated using the [Apache Email Validator](https://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/routines/EmailValidator.html)."
                        },
                        "verifiedTime": {
                          "type": "integer",
                          "format": "int64",
                          "description": "Time when the system verified the customer's email address as valid."
                        },
                        "primaryEmail": {
                          "type": "boolean",
                          "description": "Customer's primary email address."
                        },
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier of the customer."
                            }
                          },
                          "description": "Customer name associated with the email address."
                        }
                      }
                    }
                  },
                  "phoneNumbers": {
                    "type": "array",
                    "description": "Customer phone numbers.",
                    "items": {
                      "required": [
                        "phoneNumber"
                      ],
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier."
                        },
                        "phoneNumber": {
                          "type": "string",
                          "description": "Customer's phone number."
                        },
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier of the customer."
                            }
                          },
                          "description": "Customer name associated with the phone number."
                        }
                      }
                    }
                  },
                  "cards": {
                    "type": "array",
                    "description": "Customer card details.",
                    "items": {
                      "required": [
                        "first6",
                        "last4"
                      ],
                      "type": "object",
                      "description": "Card details of the customer.",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier."
                        },
                        "first6": {
                          "type": "string",
                          "description": "First 6 digits of the customer's card."
                        },
                        "last4": {
                          "type": "string",
                          "description": "Last 4 digits of the customer's card."
                        },
                        "firstName": {
                          "type": "string",
                          "description": "First name on the customer's card."
                        },
                        "lastName": {
                          "type": "string",
                          "description": "Last name on the customer's card."
                        },
                        "expirationDate": {
                          "type": "string",
                          "description": "Expiry date of the customer's card."
                        },
                        "additionalInfo": {
                          "type": "object",
                          "description": "Additional information for the customer's card.",
                          "properties": {
                            "default": {
                              "type": "string"
                            }
                          }
                        },
                        "cardType": {
                          "type": "string",
                          "description": "Customer's card type."
                        },
                        "token": {
                          "type": "string",
                          "description": "Customer's card token number.\n Length:  Maximum 72 characters"
                        },
                        "tokenType": {
                          "type": "string",
                          "description": "Customer's card token type.",
                          "enum": [
                            "MULTIPAY",
                            "FINANCIAL",
                            "CTOKEN"
                          ]
                        },
                        "modifiedTime": {
                          "type": "integer",
                          "description": "Time when the card was last updated.",
                          "format": "int64"
                        },
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier of the customer."
                            }
                          },
                          "description": "Customer to whom the card belongs."
                        }
                      }
                    }
                  },
                  "metadata": {
                    "description": "Additional information about the customer.",
                    "type": "object",
                    "properties": {
                      "businessName": {
                        "type": "string",
                        "description": "Name of the business.\n Length: Maximum 127 characters"
                      },
                      "note": {
                        "type": "string",
                        "description": "Additional information about the customer.\n Length: Maximum 2000 characters"
                      },
                      "dobYear": {
                        "type": "integer",
                        "description": "Optional. Year of the customer’s date of birth.",
                        "format": "int32"
                      },
                      "dobMonth": {
                        "type": "integer",
                        "description": "Month of the customer’s date of birth.",
                        "format": "int32"
                      },
                      "dobDay": {
                        "type": "integer",
                        "description": "Day of the customer’s date of birth.",
                        "format": "int32"
                      },
                      "modifiedTime": {
                        "type": "integer",
                        "description": "Time when the customer record was last updated.",
                        "format": "int64"
                      },
                      "customer": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the customer."
                          }
                        },
                        "description": "Customer for whom the metadata is saved."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response. Customer record updated.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the customer."
                    },
                    "firstName": {
                      "type": "string",
                      "description": "First/given name of the customer.\n Length: Maximum 64 characters"
                    },
                    "lastName": {
                      "type": "string",
                      "description": "Last name/surname of the customer.\n Length: Maximum 64 characters"
                    },
                    "marketingAllowed": {
                      "type": "boolean",
                      "description": "Indicates whether the customer allows marketing communication from Clover.\n **Note:** This function is only allowed for Clover internal apps, and third-party apps should receive marketing opt-in from customers per their local laws and store consent in their own systems."
                    },
                    "customerSince": {
                      "type": "integer",
                      "format": "int64",
                      "description": "Date of start of customer association with the merchant."
                    },
                    "metadata": {
                      "description": "Additional information about the customer.",
                      "type": "object",
                      "properties": {
                        "businessName": {
                          "type": "string",
                          "description": "Name of customer's business.\n Length: Maximum 127 characters"
                        },
                        "note": {
                          "type": "string",
                          "description": "Additional information about the customer. \n Length: Maximum 2000 characters"
                        },
                        "dobYear": {
                          "type": "integer",
                          "description": "Optional. Year of the customer’s date of birth.",
                          "format": "int32"
                        },
                        "dobMonth": {
                          "type": "integer",
                          "description": "Month of the customer’s date of birth.",
                          "format": "int32"
                        },
                        "dobDay": {
                          "type": "integer",
                          "description": "Day of the customer’s date of birth.",
                          "format": "int32"
                        },
                        "modifiedTime": {
                          "type": "integer",
                          "description": "Time when the customer data was last updated.",
                          "format": "int64"
                        },
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier of the customer."
                            }
                          },
                          "description": "Customer for whom the metadata is saved."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "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"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": false,
    "samples-enabled": true
  }
}
```