Customers

getCustomers

GET
/customers

Query customers. Each Customer record stores data about a particular customer of a Merchant and can be used to associate payment data to the Customer and for other API features.

Authorization

APIKEY<token>

In: header

Query Parameters

page[number]?integer

Set this path parameter to request a specific page of records. For example, set ?page[number]=2 to retrieve the second page of records for this request.

page[limit]?integer

Set this path parameter to request up to a specific amount of records. By default 30 records are retrieved per page. The maximum limit that can be set is 100. For example, set ?page[limit]=50 to retrieve up to 50 records for this request.

embed?string

Use the embed query parameter to include full object(s) of related resource(s) directly within the API response. This allows retrieval of associated resources in a single request, reducing the need for multiple round-trips. Format: GET https://{server}.payrix.com/{endpoint}?embed={relatedObject}

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

search?string

Set this header to filter or sort the list of resources that the method returns. See Searches for detailed information and examples on how to use search header.

totals?string

To configure a request to return a total for all instances of a field in a result set, use the totals header in the format totals={operator}[]={key}. This will calculate the desired total and return it in the details > totals object of the response. For instance, if you want to sum the total field of all transactions, you would use the sum operator. The response will include the result set, along with the calculated total in the details section. See Collection Operators for detailed information and examples on how to use totals header.

Response Body

application/json

application/json

curl -X GET "https://example.com/customers"
{  "response": {    "data": [      {        "id": "t1_cus_67a527f32862c3e51bcce51",        "created": "2025-02-06 16:21:55.1821",        "modified": "2025-02-06 16:21:55.1821",        "creator": "t1_log_62fd0aa37c3d8ec3a9dcea8",        "modifier": "t1_log_62fd0aa37c3d8ec3a9dcea8",        "login": "t1_log_6789616d2294ec86ba6076c",        "merchant": "t1_mer_64415e924c58c616f8a119b",        "first": "John",        "middle": "M",        "last": "Doe",        "company": "Doe Enterprises",        "email": "somename@emaol.com",        "fax": "+11234567845",        "phone": "+11324567845",        "country": "USA",        "zip": "75001",        "state": "TX",        "city": "Shelbyville",        "address2": "Apt 4B",        "address1": "456 Secondary Ave",        "inactive": 0,        "frozen": 0,        "shippingFirst": "John",        "shippingMiddle": "M",        "shippingLast": "Doe",        "shippingCompany": "Doe Shipping Co.",        "shippingAddress1": "123 Main st.",        "shippingAddress2": "Suite 100",        "shippingCity": "Springfield",        "shippingState": "TX",        "shippingZip": "62701",        "shippingCountry": "USA",        "shippingPhone": "+11234567845",        "shippingFax": "+11234567845",        "custom": "Customer's custom data",        "authTokenCustomer": "912ae8b2f7e868eb6abb8b1a23b967ff",        "entity": "t1_ent_64415e922e9000ef8bf3c1d"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}