Skip to main content
GET
Get Machine Earnings

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

user_id
integer
required

The ID of the user.

Query Parameters

sday
integer

Start day for the earnings report.

eday
integer

End day for the earnings report.

machid
integer

Optional machine ID to filter earnings.

last_days
integer

Number of days to look back from today.

Response

Success; returns {sday, eday, summary, per_day, per_machine, username, email, fullname, address fields, current balance}

sday
integer

Start day index (days since Unix epoch).

eday
integer

End day index (days since Unix epoch).

summary
object

Aggregate totals across all machines and days in the window.

username
string

Account username.

email
string

Account email address.

fullname
string

Account full name.

address1
string

Billing address line 1.

address2
string

Billing address line 2.

city
string

Billing city.

zip
string

Billing ZIP/postal code.

country
string

Billing country.

taxinfo
string

Tax identification information.

current
object

Current account balance and fee snapshot.

per_machine
object[]

Earnings delta per machine over the window.

per_day
object[]

Earnings broken down by day.