Logs

The logs resource can be used to inspect requests and see their respective status.

The log model

Properties

  • Name
    count
    Type
    integer
    Description
  • Name
    next
    Type
    string
    Description
  • Name
    previous
    Type
    string
    Description
  • Name
    results
    Type
    array
    Description

GET/wms/logs/

List all logs

Retrieves a collection of customers

Optional attributes

  • Name
    limit
    Type
    integer
    Description
    Limits the amount of results.
  • Name
    page
    Type
    integer
    Description
    Only works in combination with the limit attribute.
  • Name
    from
    Type
    date
    Description
    Accepts date format %Y-%m-%d. IE: 2022-10-22
  • Name
    to
    Type
    date
    Description
    Accepts date format %Y-%m-%d. IE: 2022-10-22
  • Name
    direction
    Type
    string
    Description
    Sort direction. Options: asc | desc

Request

GET
/wms/logs/
curl https://eu-dev.middleware.ewarehousing-solutions.com/wms/logs/

Response

{
    "count": 1655,
    "next": "https://eu-dev.middleware.ewarehousing-solutions.com/wms/logs?page=2",
    "previous": null,
    "results": [
        {
            "id": "cc6c80d6-6c6d-4ebc-a141-61b8c0408ad4",
            "customer": "be62c27e-2aac-4ac1-902e-f770d64f8dce",
            "path": "documents/33a59408-c708-4da4-9f1f-50e87c968928",
            "error": null,
            "status_code": "404",
            "method": "delete",
            "payload": null,
            "response": {
                "type": "https://tools.ietf.org/html/rfc2616#section-10",
                "title": "An error occurred",
                "detail": "Not Found",
                "status": 404
            },
            "requested_at": "2022-09-05T19:00:37.942032",
            "request_time": 0.021228999999948428
        },
        {
            "id": "bae0cb9f-ef97-4208-8106-8e9200efa092",
            "customer": "be62c27e-2aac-4ac1-902e-f770d64f8dce",
            "path": "stock",
            "error": null,
            "status_code": "200",
            "method": "get",
            "payload": null,
            "response": [
                {
                    "id": "5060691c-2812-48e2-bd07-82ff3fd19382",
                    "ean": "1337",
                    "sku": null,
                    "variant": {
                        "id": "5060691c-2812-48e2-bd07-82ff3fd19382",
                        "ean": "1337",
                        "sku": null,
                        "name": "1337",
                        "depth": null,
                        "value": 0.0,
                        "width": null,
                        "height": null,
                        "weight": null,
                        "expirable": false,
                        "description": null,
                        "article_code": "1337",
                        "hs_tariff_code": null,
                        "country_of_origin": null,
                        "using_serial_numbers": false
                    },
                    "modified_at": "2022-07-18T09:55:49+00:00",
                    "article_code": "1337",
                    "stock_salable": 94,
                    "stock_physical": 100,
                    "stock_pickable": 97,
                    "stock_available": 94,
                    "stock_quarantine": 0
                }
            ],
            "requested_at": "2022-09-05T18:58:32.244406",
            "request_time": 0.017088000000001102
        }
    ]
}