GETGet customer details
Get method to get customer's information. User's data can be obtained by user's ID and shows different customer-related data that is defined in the fields parameter. If fields parameter is undefined, all customer's data will be obtained.
https://api.minerstat.com/v2/customer
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"
}