API report publisher

Base URL (develop enviroment) : https://pub-be-dev.mp.directsale.vn/api/v1

ENDPOINT: /report/overview

METHOD: POST

PARAMETERS: NONE

BODY:

{
    "from_date": "2020-09-10",
    "to_date": "2020-10-09",
    "campaigns": ""
}

RESPONSE:

1.Status: Error

{
    "status": "error",
    "message": "Something went wrong!"
}

1.Status: Success

{
    "status": "success",
    "data": {
        "report": {
            "current": {
                "status": "all",
                "from_date": "2020\/09\/10",
                "to_date": "2020\/10\/09",
                "total_count": 89,
                "group_by": "day",
                "data_group": [
                    {
                        "unit": "1599670800000",
                        "value": 0
                    },
                    {
                        "unit": "1599757200000",
                        "value": 0
                    },
                    {
                        "unit": "1599843600000",
                        "value": 0
                    },
                    {
                        "unit": "1599930000000",
                        "value": 0
                    },
                    {
                        "unit": "1600016400000",
                        "value": 1880
                    },
                    {
                        "unit": "1600102800000",
                        "value": 5200
                    },
                    {
                        "unit": "1600189200000",
                        "value": 0
                    },
                    {
                        "unit": "1600275600000",
                        "value": 0
                    },
                    {
                        "unit": "1600362000000",
                        "value": 259000
                    },
                    {
                        "unit": "1600448400000",
                        "value": 0
                    },
                    {
                        "unit": "1600534800000",
                        "value": 0
                    },
                    {
                        "unit": "1600621200000",
                        "value": 0
                    },
                    {
                        "unit": "1600707600000",
                        "value": 0
                    },
                    {
                        "unit": "1600794000000",
                        "value": 520000
                    },
                    {
                        "unit": "1600880400000",
                        "value": 3450000
                    },
                    {
                        "unit": "1600966800000",
                        "value": 0
                    },
                    {
                        "unit": "1601053200000",
                        "value": 0
                    },
                    {
                        "unit": "1601139600000",
                        "value": 0
                    },
                    {
                        "unit": "1601226000000",
                        "value": 7500
                    },
                    {
                        "unit": "1601312400000",
                        "value": 0
                    },
                    {
                        "unit": "1601398800000",
                        "value": 0
                    },
                    {
                        "unit": "1601485200000",
                        "value": 240000
                    },
                    {
                        "unit": "1601571600000",
                        "value": 10000
                    },
                    {
                        "unit": "1601658000000",
                        "value": 0
                    },
                    {
                        "unit": "1601744400000",
                        "value": 14060
                    },
                    {
                        "unit": "1601830800000",
                        "value": 0
                    },
                    {
                        "unit": "1601917200000",
                        "value": 0
                    },
                    {
                        "unit": "1602003600000",
                        "value": 10000
                    },
                    {
                        "unit": "1602090000000",
                        "value": 0
                    },
                    {
                        "unit": "1602176400000",
                        "value": 0
                    }
                ],
                "meta": {
                    "page": 0,
                    "page_size": 0,
                    "total": 0,
                    "total_sale_amount": null,
                    "total_pub_commission": null,
                    "total_agent_commission": null,
                    "total_at_commission": null,
                    "total_commission": null,
                    "total_conversion_part_quantity": null,
                    "conversion": {
                        "total": 34,
                        "approved": 0,
                        "pre_approved": 13,
                        "pending": 16,
                        "rejected": 5,
                        "hold": 0
                    },
                    "sale_amount": {
                        "total": 30280000,
                        "approved": 0,
                        "pre_approved": 7350000,
                        "pending": 16410000,
                        "rejected": 6520000,
                        "hold": 0
                    },
                    "pub_commission": {
                        "total": 4517640,
                        "approved": 0,
                        "pre_approved": 416140,
                        "pending": 3974500,
                        "rejected": 127000,
                        "hold": 0
                    }
                }
            },
            "compare": {
                "status": "all",
                "from_date": "2020\/08\/11",
                "to_date": "2020\/09\/09",
                "total_count": 20,
                "group_by": "day",
                "data_group": [
                    {
                        "unit": "1597078800000",
                        "value": 205000
                    },
                    {
                        "unit": "1597165200000",
                        "value": 80000
                    },
                    {
                        "unit": "1597251600000",
                        "value": 0
                    },
                    {
                        "unit": "1597338000000",
                        "value": 0
                    },
                    {
                        "unit": "1597424400000",
                        "value": 0
                    },
                    {
                        "unit": "1597510800000",
                        "value": 0
                    },
                    {
                        "unit": "1597597200000",
                        "value": 0
                    },
                    {
                        "unit": "1597683600000",
                        "value": 1468800
                    },
                    {
                        "unit": "1597770000000",
                        "value": 0
                    },
                    {
                        "unit": "1597856400000",
                        "value": 0
                    },
                    {
                        "unit": "1597942800000",
                        "value": 0
                    },
                    {
                        "unit": "1598029200000",
                        "value": 0
                    },
                    {
                        "unit": "1598115600000",
                        "value": 0
                    },
                    {
                        "unit": "1598202000000",
                        "value": 0
                    },
                    {
                        "unit": "1598288400000",
                        "value": 0
                    },
                    {
                        "unit": "1598374800000",
                        "value": 0
                    },
                    {
                        "unit": "1598461200000",
                        "value": 0
                    },
                    {
                        "unit": "1598547600000",
                        "value": 0
                    },
                    {
                        "unit": "1598634000000",
                        "value": 0
                    },
                    {
                        "unit": "1598720400000",
                        "value": 0
                    },
                    {
                        "unit": "1598806800000",
                        "value": 0
                    },
                    {
                        "unit": "1598893200000",
                        "value": 0
                    },
                    {
                        "unit": "1598979600000",
                        "value": 0
                    },
                    {
                        "unit": "1599066000000",
                        "value": 0
                    },
                    {
                        "unit": "1599152400000",
                        "value": 0
                    },
                    {
                        "unit": "1599238800000",
                        "value": 0
                    },
                    {
                        "unit": "1599325200000",
                        "value": 0
                    },
                    {
                        "unit": "1599411600000",
                        "value": 0
                    },
                    {
                        "unit": "1599498000000",
                        "value": 0
                    },
                    {
                        "unit": "1599584400000",
                        "value": 0
                    }
                ],
                "meta": {
                    "page": 0,
                    "page_size": 0,
                    "total": 0,
                    "total_sale_amount": null,
                    "total_pub_commission": null,
                    "total_agent_commission": null,
                    "total_at_commission": null,
                    "total_commission": null,
                    "total_conversion_part_quantity": null,
                    "conversion": {
                        "total": 20,
                        "approved": 0,
                        "pre_approved": 0,
                        "pending": 15,
                        "rejected": 5,
                        "hold": 0
                    },
                    "sale_amount": {
                        "total": 20790000,
                        "approved": 0,
                        "pre_approved": 0,
                        "pending": 5790000,
                        "rejected": 15000000,
                        "hold": 0
                    },
                    "pub_commission": {
                        "total": 1753800,
                        "approved": 0,
                        "pre_approved": 0,
                        "pending": 1708800,
                        "rejected": 45000,
                        "hold": 0
                    }
                }
            }
        }
    }
}

Last updated

Was this helpful?