Customers

List Customers

Returns a list of customers in your account:

GET /customers

Parameters

  • email - Customer email address. Does a “startswith” match. Not case sensitive.

  • first_name - Customer first name. Does a “startswith” match. Not case sensitive.

  • last_name - Customer last name. Does a “startswith” match. Not case sensitive.

  • product_id - Product ID that the customer has purchased.

  • receives_newsletters - Boolean on whether your customer recieves email from your product updates.

  • date_min - Customer created after. Accepts any format that PHP’s strtotime accepts.

  • date_max - Customer created before. Accepts any format that PHP’s strtotime accepts.

Response:

[{"id":1,"status":"...",...},{"id":2,"status":"...",...}]

Get Customer

Returns information about a single purchase.:

GET /customers/:id

The response is a JSON hash with the following attributes:

  • id (integer) - Unique ID

  • firstname (string) - Customer’s first name.

  • lastname (string) - Customer’s last name.

  • email (string) - Customer’s email address.

  • receives_email (boolean) - Boolean on whether your customer recieves email from your product updates.

  • created_at (UNIX timestamp) - When the purchase was created.

  • updated_at (UNIX timestamp) - When the purchase was last updated.