Skip to main content

Download Sales as JSON

GET 

/users/:id/sales/download/json

Gets the sales data for the user in JSON format

Request

Path Parameters

    id stringrequired

    A User ID

Query Parameters

    user_id string

    The user ID of the user making the request

    grantee_user_id string

    Optional receiving user ID for email decryption

Header Parameters

    Encoded-Data-Message string

    The data that was signed by the user for signature recovery

    Encoded-Data-Signature string

    The signature of data, used for signature recovery

Responses

Success

Schema

    data

    object

    sales

    object[]

  • Array [

  • title string

    Title of the content (track/album/playlist)

    link string

    Full URL link to the content

    purchased_by string

    Name of the buyer

    buyer_user_id integer

    User ID of the buyer

    date string

    ISO format date string of when the sale occurred

    sale_price number

    Base sale price in USDC

    network_fee number

    Network fee deducted from sale in USDC

    pay_extra number

    Extra amount paid by buyer in USDC

    total number

    Total amount received by seller in USDC

    country string

    Country code where purchase was made

    encrypted_email string

    Encrypted email of buyer if available

    encrypted_key string

    Encrypted key for decrypting the buyer's email

    is_initial boolean

    Whether this is an initial encryption from the backfill

    pubkey_base64 string

    Base64 encoded public key of the buyer

  • ]

Loading...