api/v1/customer/manufacturers/earning-history

GET

api/v1/customer/manufacturers/earning-history

This API method will grab an earning history of the customer, filterable by the customer, campaign or manufacturer.

Request Parameters

ParameterValue / TypeRequired
per_pageINTEGER (DEFAULT 50)false
pageINTEGER (DEFAULT 1)false
customer_idSTRINGfalse
campaign_idSTRINGfalse
manufacturer_idSTRINGfalse
dateDATE (Y-m-d)false

Sample Response

{
    "status": true,
    "items": [
        {
            "id": "bZ6xBGP2mdPm3R8VX17L",
            "account_id": "l6yYk1WOeo7e2b78dD4j",
            "store_name": "A",
            "customer_id": "G2D3wn94m41zrAOKPvM6",
            "customer_name": "Maryluz Rivera",
            "campaign_id": "bZ6xBGP2mdPm3R8VX17L",
            "campaign_name": "Campaign2",
            "reference_customer_id": null,
            "reference_customer_name": null,
            "reference_customer_avatar": null,
            "balance_type": "new balance",
            "location_id": null,
            "bonus_type": null,
            "balance_added": "150.00",
            "created_at": "2019-04-25 18:36:34"
        },
        {
            "id": "LZWBJx0PmYkEwjGdr2vO",
            "account_id": "l6yYk1WOeo7e2b78dD4j",
            "store_name": "FasTaxPOS",
            "customer_id": "G2D3wn94m41zrAOKPvM6",
            "customer_name": "Maryluz Rivera",
            "campaign_id": "LZWBJx0PmYkEwjGdr2vO",
            "campaign_name": "TestCampaign",
            "reference_customer_id": null,
            "reference_customer_name": null,
            "reference_customer_avatar": null,
            "balance_type": "Manufacturer Balance Type 1",
            "location_id": null,
            "bonus_type": null,
            "balance_added": "50.00",
            "created_at": "2019-04-25 18:36:34"
        }
    ]
}
{
  "status": false,
  "message": "No manufacturer found"
}