Invoice

GET /report/invoice

This API is to get invoice report. This is an authendicated API so we need to pass bearer token in request header to access the data.

Query parameters

  • region number

    Id of the region to filter report

  • client number

    Id of the client to filter report

  • start_date string(date) Required

    The planned day to get report from

  • end_date string(date) Required

    The planned day to get report till

  • Id of the business unit to filter report

  • Name of business unit name to filter

  • per_page number

    Minimum value is 1 and maximum value is 100

    Default value is 100.

  • Filter invoice report using date created or by using from and to date, default will be created_date

    Values are created_date or from_to_date. Default value is created_date.

Responses

GET /report/invoice
curl \
 -X GET https://api-console.logezy.co/v1/report/invoice?start_date=Y-m-d&end_date=Y-m-d \
 -H "Authorization: Bearer your-access-token" \
 -H "Accept: application/json"
Response examples (200)
{
  "status": "success",
  "data": {
    "current_page": 1,
    "data": [
      {
        "invoice_number": "INVNO-227",
        "from": "2022-10-31",
        "to": "2022-11-06",
        "created_on": "2022-11-02 09:58:14",
        "due_date": "2022-11-07",
        "total_amount": "536.12",
        "vat_amount": "0.00",
        "grand_total": "536.12",
        "expenses_amount": "0.00",
        "paid_amount": "0.00",
        "status": "over due",
        "created_by": 13827,
        "client_name": "A Care",
        "business_unit": "A Care Weekly - Normal Rate",
        "business_unit_ref_code": "BU73DE212"
      }
    ],
    "first_page_url": "https://api.logezydev.co.uk/v1/report/invoice?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://api.logezydev.co.uk/v1/report/invoice?page=1",
    "next_page_url": null,
    "path": "https://api.logezydev.co.uk/v1/report/invoice",
    "per_page": 100,
    "prev_page_url": null,
    "to": 3,
    "total": 3
  },
  "message": "Invoice report retrieved successfully."
}