minerstat for developersversion 2.0

GET
Get customer details

Get method to get customer's information.

/v2/customer

Returns the information about the customer(s) that match the parameter(s).

Parameters

Parameter
Type
Description
user
int
User's ID.
fields
array[]
The array of information you need about the customer.
 fields[i]
string
Information you are requesting. Possible values: created accessKey name email packageName packageWorkers packageExpiry

Example call

{"user":1337}

Example response

{
 "data": {
  "1337": {
   "created": "2019-03-05 16:00:00",
   "accessKey": "4cc355k3y",
   "name": "John Doe",
   "email": "hello@minerstat.com",
   "packageName": "Tier W1",
   "packageWorkers": "5",
   "packageExpiry": "0000-00-00 00:00:00"
  }
 },
 "message": "Results found"
}