New API call: app_markup_statistics

Dear developers,

We’ve added a new API call, app_markup_statistics. This will return your markup earnings for all your applications, organised by app_id.

You can choose to see your earnings for up to the last 3 months, based on the API token that you registered your apps with.

An example of the request

{
  "app_markup_statistics": 1,
  "date_from": "2022-01-01 00:00:00",
  "date_to": "2022-01-31 23:59:59"
}

An example of the response

{
    "app_markup_statistics": {
        "breakdown": [
            {
                "app_id": 123,
                "app_markup_usd": 0.24,
                "app_markup_value": 0.24,
                "dev_currcode": "USD",
                "transactions_count": 2
            }
        ],
        "total_app_markup_usd": 0.24,
        "total_transactions_count": 2
    },
    "msg_type": "app_markup_statistics"
}

You’ll be able to use this API call to keep track of your earnings on a regular basis easily.
If you have any questions, write to us at api-support@deriv.com.

Sign In or Register to comment.