---
updatedAt: 2025-06-04T21:35:28.000Z
agentTools:
  projectIndex: https://documentation.paysimple.com/llms.txt
---

# List Customers

Sortable list of all customers.

## Sorting

The following fields can be sorted using the `sortby` query string parameter:

`FirstName` `LastName` `Company` `BillingAddress.City` `BillingAddress.State` `BillingAddress.Zip`\
`BillingAddress.Country` `ShippingAddress.City` `ShippingAddress.State` `ShippingAddress.Zip` `ShippingAddress.Country`

If `sortby` is omitted, by default customers are returned sorted by creation date, with the most recently created customers appearing first.

## Lite Response Format

If the `lite` query string parameter is set to `true`, the response will contain only the following basic customer information fields:\
`FirstName` `LastName` `Email` `Company` `Phone` `Id`

This format is useful when returning large lists and in applications such as mobile where bandwidth is at a premium.

## Number of Items

The `PagingDetails.TotalItems` property returns the total number of items to be returned.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "paysimple-api-40-do-not-delete",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.paysimple.com/v4"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/customer": {
      "get": {
        "summary": "List Customers",
        "description": "Sortable list of all customers.",
        "operationId": "list-customers",
        "parameters": [
          {
            "name": "sortby",
            "in": "query",
            "description": "Optional. Field name to sort by. See below for valid sort fields.",
            "schema": {
              "type": "string",
              "default": "Id"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "description": "Optional. Valid values: `asc`: Ascending, sort low-to-high / A-to-Z. nulls appear first. `desc`: Descending, sort high-to low / Z-to-A nulls appear last.",
            "schema": {
              "type": "string",
              "default": "desc"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Optional. The page number of the result set to be returned.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "description": "Optional. The number of results to be returned. Defaulted to 200 if value is not provided.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          },
          {
            "name": "lite",
            "in": "query",
            "description": "Optional. When set to true only a small subset of fields will be returned in the response.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n\t\"Meta\": {\n\t\t\"Errors\": null,\n\t\t\"HttpStatus\": \"OK\",\n\t\t\"HttpStatusCode\": 200,\n\t\t\"PagingDetails\": {\n\t\t\t\"TotalItems\": 138,\n\t\t\t\"Page\": 1,\n\t\t\t\"ItemsPerPage\": 2\n\t\t}\n\t},\n\t\"Response\": [{\n\t\t\t\"MiddleName\": null,\n\t\t\t\"AltEmail\": \"\",\n\t\t\t\"AltPhone\": \"\",\n\t\t\t\"MobilePhone\": null,\n\t\t\t\"Fax\": \"\",\n\t\t\t\"Website\": \"\",\n\t\t\t\"BillingAddress\": null,\n\t\t\t\"ShippingSameAsBilling\": true,\n\t\t\t\"ShippingAddress\": null,\n\t\t\t\"Company\": \"First's's Company\",\n\t\t\t\"Notes\": \"1st created customer\",\n\t\t\t\"CustomerAccount\": \"\",\n\t\t\t\"FirstName\": \"First\",\n\t\t\t\"LastName\": \"Customer\",\n\t\t\t\"Email\": \"firstCust@gmail.coms\",\n\t\t\t\"Phone\": \"\",\n\t\t\t\"Id\": 9686103,\n\t\t\t\"LastModified\": \"2018-01-03T16:03:03Z\",\n\t\t\t\"CreatedOn\": \"2017-06-28T14:05:32Z\"\n\t\t}, {\n\t\t\t\"MiddleName\": null,\n\t\t\t\"AltEmail\": null,\n\t\t\t\"AltPhone\": null,\n\t\t\t\"MobilePhone\": null,\n\t\t\t\"Fax\": null,\n\t\t\t\"Website\": null,\n\t\t\t\"BillingAddress\": null,\n\t\t\t\"ShippingSameAsBilling\": true,\n\t\t\t\"ShippingAddress\": null,\n\t\t\t\"Company\": null,\n\t\t\t\"Notes\": null,\n\t\t\t\"CustomerAccount\": null,\n\t\t\t\"FirstName\": \"Second\",\n\t\t\t\"LastName\": \"Customer\",\n\t\t\t\"Email\": \"secondCust@ps.com\",\n\t\t\t\"Phone\": null,\n\t\t\t\"Id\": 9686161,\n\t\t\t\"LastModified\": \"2017-06-29T13:09:16Z\",\n\t\t\t\"CreatedOn\": \"2017-06-29T13:09:16Z\"\n\t\t}\n\t]\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Meta": {
                      "type": "object",
                      "properties": {
                        "Errors": {},
                        "HttpStatus": {
                          "type": "string",
                          "example": "OK"
                        },
                        "HttpStatusCode": {
                          "type": "integer",
                          "example": 200,
                          "default": 0
                        },
                        "PagingDetails": {
                          "type": "object",
                          "properties": {
                            "TotalItems": {
                              "type": "integer",
                              "example": 138,
                              "default": 0
                            },
                            "Page": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "ItemsPerPage": {
                              "type": "integer",
                              "example": 2,
                              "default": 0
                            }
                          }
                        }
                      }
                    },
                    "Response": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "MiddleName": {},
                          "AltEmail": {
                            "type": "string",
                            "example": ""
                          },
                          "AltPhone": {
                            "type": "string",
                            "example": ""
                          },
                          "MobilePhone": {},
                          "Fax": {
                            "type": "string",
                            "example": ""
                          },
                          "Website": {
                            "type": "string",
                            "example": ""
                          },
                          "BillingAddress": {},
                          "ShippingSameAsBilling": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "ShippingAddress": {},
                          "Company": {
                            "type": "string",
                            "example": "First's's Company"
                          },
                          "Notes": {
                            "type": "string",
                            "example": "1st created customer"
                          },
                          "CustomerAccount": {
                            "type": "string",
                            "example": ""
                          },
                          "FirstName": {
                            "type": "string",
                            "example": "First"
                          },
                          "LastName": {
                            "type": "string",
                            "example": "Customer"
                          },
                          "Email": {
                            "type": "string",
                            "example": "firstCust@gmail.coms"
                          },
                          "Phone": {
                            "type": "string",
                            "example": ""
                          },
                          "Id": {
                            "type": "integer",
                            "example": 9686103,
                            "default": 0
                          },
                          "LastModified": {
                            "type": "string",
                            "example": "2018-01-03T16:03:03Z"
                          },
                          "CreatedOn": {
                            "type": "string",
                            "example": "2017-06-28T14:05:32Z"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "text/plain": {
                "examples": {
                  "Lite Response Format": {
                    "value": "// example output when lite=true set in query string\n{\n    \"Meta\": {\n        \"Errors\": null,\n        \"HttpStatus\": \"OK\",\n        \"HttpStatusCode\": 200,\n        \"PagingDetails\": {\n            \"TotalItems\": 138,\n            \"Page\": 3,\n            \"ItemsPerPage\": 2\n        }\n    },\n    \"Response\": [{\n        \"Company\": \"Bad Wolf Corporation \",\n        \"FirstName\": \"Rose\",\n        \"LastName\": \"Tyler\",\n        \"Id\": 94659\n    }, {\n        \"Company\": \"\",\n        \"FirstName\": \"Sarah Jane\",\n        \"LastName\": \"Smith\",\n        \"Id\": 94660\n    }]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Meta": {
                      "type": "object",
                      "properties": {
                        "Errors": {},
                        "HttpStatus": {
                          "type": "string",
                          "example": "OK"
                        },
                        "HttpStatusCode": {
                          "type": "integer",
                          "example": 200,
                          "default": 0
                        },
                        "PagingDetails": {
                          "type": "object",
                          "properties": {
                            "TotalItems": {
                              "type": "integer",
                              "example": 138,
                              "default": 0
                            },
                            "Page": {
                              "type": "integer",
                              "example": 3,
                              "default": 0
                            },
                            "ItemsPerPage": {
                              "type": "integer",
                              "example": 2,
                              "default": 0
                            }
                          }
                        }
                      }
                    },
                    "Response": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Company": {
                            "type": "string",
                            "example": "Bad Wolf Corporation "
                          },
                          "FirstName": {
                            "type": "string",
                            "example": "Rose"
                          },
                          "LastName": {
                            "type": "string",
                            "example": "Tyler"
                          },
                          "Id": {
                            "type": "integer",
                            "example": 94659,
                            "default": 0
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```