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

# Get a list of customers in CSV format

Gives information for every customer of a merchant by default.

# 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.csv": {
      "get": {
        "tags": [
          "CUSTOMERS"
        ],
        "summary": "Get a list of customers in CSV format",
        "description": "Gives information for every customer of a merchant by default.",
        "operationId": "handlers.GetCustomersCsv",
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          },
          {
            "name": "mId",
            "in": "path",
            "description": "Merchant Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter fields: [customerSince, firstName, lastName, emailAddress, phoneNumber, marketingAllowed, fullName, id, deletedTime]",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "Expandable fields: [addresses, emailAddresses, phoneNumbers, cards, metadata]",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier."
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier."
                        }
                      },
                      "description": "Merchant associated with this customer."
                    },
                    "firstName": {
                      "type": "string",
                      "description": "First/given name of the customer. Note: Length of first name cannot be more than 64 characters."
                    },
                    "lastName": {
                      "type": "string",
                      "description": "Last name/surname of the customer. Note: Length of last name cannot be more than 64 characters."
                    },
                    "marketingAllowed": {
                      "type": "boolean",
                      "description": "Indicates if the customer allows receiving of marketing communication."
                    },
                    "customerSince": {
                      "type": "integer",
                      "format": "int64",
                      "description": "Date of start of customer association with the merchant."
                    },
                    "orders": {
                      "type": "array",
                      "description": "Customer's orders.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier."
                          }
                        }
                      }
                    },
                    "addresses": {
                      "type": "array",
                      "description": "Customer's address. Note: Address cannot be null and should not be more than 127 characters long.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "address1": {
                            "type": "string",
                            "description": "Customer's address, line one."
                          },
                          "address2": {
                            "type": "string",
                            "description": "Customer's address, line two."
                          },
                          "address3": {
                            "type": "string",
                            "description": "Customer's address, line three."
                          },
                          "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": "Email identifier of the customer."
                          },
                          "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 customer's email address was verified as valid."
                          },
                          "primaryEmail": {
                            "type": "boolean",
                            "description": "Customer's primary email address."
                          },
                          "customer": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier."
                              }
                            },
                            "description": "Name of the customer who provided the email address."
                          }
                        }
                      }
                    },
                    "phoneNumbers": {
                      "type": "array",
                      "description": "Customer's phone numbers.",
                      "items": {
                        "required": [
                          "phoneNumber"
                        ],
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Phone number identifier."
                          },
                          "phoneNumber": {
                            "type": "string",
                            "description": "Customer's phone number."
                          },
                          "customer": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier."
                              }
                            },
                            "description": "Customer name associated with the phone number."
                          }
                        }
                      }
                    },
                    "cards": {
                      "type": "array",
                      "description": "Customer's card details.",
                      "items": {
                        "required": [
                          "first6",
                          "last4"
                        ],
                        "type": "object",
                        "description": "Card details of the customer.",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Card 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. Note: Token length cannot be more than 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."
                              }
                            },
                            "description": "Customer who this card belongs to."
                          }
                        }
                      }
                    },
                    "metadata": {
                      "description": "Additional information about the customer.",
                      "type": "object",
                      "properties": {
                        "businessName": {
                          "type": "string",
                          "description": "Name of customer's business. Note: Length of the business name cannot be more than 127 characters."
                        },
                        "note": {
                          "type": "string",
                          "description": "Additional information about the customer. Note: Length of the note cannot be more than 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."
                            }
                          },
                          "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
  }
}
```