Dashboard Stats
The following API return you the the balance stats & Daily order stats .
Daily Order Stats:
- Amount Processed: Total sales amount for current day
- Keys Processed: Total keys sold today
- Orders Processed: Total orders processed today
- Products Sold: Number of unique products sold today
Balance Data:
- totalEarnings: Total Earnings (Withdrawable balance + Balance on hold + Refunds + Total Withdrawn)
- onHoldBalance: Amount on hold for +7 days after the sale.
- withdrawalBal: Amount available for withdrawal
- refundedBal: Amount refunded so far
- totalWithdrawn: Amount withdrawn so far
info
All the stats are calculated as per GMT timezone and this might be different from the stats in your dashboard, since on the dashboard it is calculated taking the User's local timezone as reference.
GET https://services.driffle.com/api/seller/legacy/dashboard
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Authorization token in Bearer <token> format. Example: Bearer dvakycjgw8liyd278y |
Responses (application/json)
- 200
- 400
- 401
- 403
- 500
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | |
statusCode | number | No | |
data | object | No | |
data.dailyOrdersData | array of object | No | |
data.dailyOrdersData[].day | string | No | |
data.dailyOrdersData[].amountProcessed | number | No | |
data.dailyOrdersData[].keysProcessed | number | No | |
data.dailyOrdersData[].ordersProcessed | number | No | |
data.dailyOrdersData[].productsSold | number | No | |
data.balanceData | object | No | |
data.balanceData.totalBal | number | No | |
data.balanceData.onHoldBal | number | No | |
data.balanceData.withdrawalBal | number | No | |
data.balanceData.refundedBal | number | No | |
data.balanceData.totalWithdrawn | number | No | |
data.balanceData.totalEarnings | number | No | |
data.balanceData.totalVatAmount | number | No | |
data.balanceData.totalUnfulfilledSaleFee | number | No |
Bad Request. Wrong/Invalid params format.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
UnAuthorized request. Invalid/Expired token
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
Forbidden Request. Action not allowed or Rate Limit exhausted.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
Server Error.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
Sample request
GET /api/seller/legacy/dashboard HTTP/1.1
Host: services.driffle.com
Authorization: text
Accept: */*
Sample response (200)
{
"message": "text",
"statusCode": 1,
"data": {
"dailyOrdersData": [
{
"day": "text",
"amountProcessed": 1,
"keysProcessed": 1,
"ordersProcessed": 1,
"productsSold": 1
}
],
"balanceData": {
"totalBal": 1,
"onHoldBal": 1,
"withdrawalBal": 1,
"refundedBal": 1,
"totalWithdrawn": 1,
"totalEarnings": 1,
"totalVatAmount": 1,
"totalUnfulfilledSaleFee": 1
}
}
}
GET /dashboard
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Response
- 200
- 400
- 401
- 403
- 500
{
"message": "string",
"statusCode": 200,
"data": {
"dailyOrdersData": [
{
"day": "string",
"amountProcessed": 0,
"keysProcessed": 0,
"ordersProcessed": 0,
"productsSold": 0
}
],
"balanceData": {
"totalBal": 0,
"onHoldBal": 0,
"withdrawalBal": 0,
"refundedBal": 0,
"totalWithdrawn": 0,
"totalEarnings": 0,
"totalVatAmount": 0,
"totalUnfulfilledSaleFee": 0
}
}
}
{
"message": "Bad Request. Wrong/Invalid params format.",
"statusCode": 400
}
{
"message": "UnAuthorized request. Invalid/Expired token",
"statusCode": 401
}
{
"message": "Forbidden Request. Action not allowed or Rate Limit exhausted.",
"statusCode": 403
}
{
"message": "Internal Server Error",
"statusCode": 500
}
Last updated 14 May 2024