Download Sales as JSON
GET/users/:id/sales/download/json
Gets the sales data for the user in JSON format
Request
Path Parameters
A User ID
Query Parameters
The user ID of the user making the request
Optional receiving user ID for email decryption
Header Parameters
The data that was signed by the user for signature recovery
The signature of data, used for signature recovery
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
sales
object[]
Title of the content (track/album/playlist)
Full URL link to the content
Name of the buyer
User ID of the buyer
ISO format date string of when the sale occurred
Base sale price in USDC
Network fee deducted from sale in USDC
Extra amount paid by buyer in USDC
Total amount received by seller in USDC
Country code where purchase was made
Encrypted email of buyer if available
Encrypted key for decrypting the buyer's email
Whether this is an initial encryption from the backfill
Base64 encoded public key of the buyer
{
"data": {
"sales": [
{
"title": "string",
"link": "string",
"purchased_by": "string",
"buyer_user_id": 0,
"date": "string",
"sale_price": 0,
"network_fee": 0,
"pay_extra": 0,
"total": 0,
"country": "string",
"encrypted_email": "string",
"encrypted_key": "string",
"is_initial": true,
"pubkey_base64": "string"
}
]
}
}