Skip to main content

Fetch Orders

This API is used to retrieve statistical data related to orders, billing, and click-through rates.

/api/affiliate/order/stat

Method: GET

Parameters

  • needStatClicks
    Indicates whether statistical data for click-through rates needs to be included in the response.

  • needStatEarnedHistory
    Indicates whether historical statistical data for billing needs to be included in the response.

  • needStatOrder
    Indicates whether statistical data for orders needs to be included in the response.

Response

{
"data": {
"clickCountHistories": [
{
"count": 0,
"statDate": "2024-04-16T10:49:36.353Z"
}
],
"clickCountOfToday": 0,
"earnedAmountHistories": [
{
"amount": 0,
"statDate": "2024-04-16T10:49:36.353Z"
}
],
"earnedAmountOfToday": 0,
"minWithdrawalAmount": 0,
"orderCountHistories": [
{
"count": 0,
"statDate": "2024-04-16T10:49:36.353Z"
}
],
"orderCountOfToday": 0,
"percentageOfClickPerDay": 0,
"percentageOfClickPerWeek": 0,
"totalClicks": 0,
"totalEarnedAmount": 0,
"totalOrderCount": 0,
"totalPendingAmount": 0,
"totalWithdrawableAmount": 0
},
"message": "string",
"params": [
{}
],
"requestId": "string",
"status": 0
}