Error logs

List all errors

GET /fast-events/v1/admin/logs

List all errors.

Optional query parameters

_fields

A comma separated string of fields included in the response. For example id,event_id.

Example request

$ curl \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/logs

Example response

[
    {
        "id": 141,
        "event_id": 2,
        "order_id": 1,
        "created_at": "2023-09-21 13:35:34",
        "log_type": "REST API",
        "description": "Mollie API: [2023-09-21T11:35:34+0000] Invalid payment ID: ''. A payment ID should start with 'tr_'.",
        "_links": {
            "self": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs/141"
                }
            ],
            "collection": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs"
                }
            ]
        }
    },
    {
        "id": 140,
        "event_id": 2,
        "order_id": 32,
        "created_at": "2023-09-21 11:40:00",
        "log_type": "REST API",
        "description": "Mollie API: [2023-09-21T09:40:00+0000] Invalid API key: ''. An API key must start with 'test_' or 'live_' and must be at least 30 characters long.",
        "_links": {
            "self": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs/140"
                }
            ],
            "collection": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs"
                }
            ]
        }
    }
]

Changelog

Version

Description

2.0

Introduced.


List all errors of a single order

GET /fast-events/v1/admin/logs/order/(integer: id)

List all errors of a single order.

Optional query parameters

_fields

A comma separated string of fields included in the response. For example id,event_id.

Example request

$ curl \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/logs/order/32

Example response

[
    {
        "id": 141,
        "event_id": 2,
        "order_id": 32,
        "created_at": "2023-09-21 13:35:34",
        "log_type": "REST API",
        "description": "Mollie API: [2023-09-21T11:35:34+0000] Invalid payment ID: ''. A payment ID should start with 'tr_'.",
        "_links": {
            "self": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs/141"
                }
            ],
            "collection": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs/order/32"
                }
            ]
        }
    },
    {
        "id": 140,
        "event_id": 2,
        "order_id": 32,
        "created_at": "2023-09-21 11:40:00",
        "log_type": "REST API",
        "description": "Mollie API: [2023-09-21T09:40:00+0000] Invalid API key: ''. An API key must start with 'test_' or 'live_' and must be at least 30 characters long.",
        "_links": {
            "self": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs/140"
                }
            ],
            "collection": [
                {
                    "href": "https://debug.fast-events.eu/wordpress/wp-json/fast-events/v1/admin/logs/order/32"
                }
            ]
        }
    }
]

Changelog

Version

Description

2.0

Introduced.


Delete log entry

DELETE /fast-events/v1/admin/logs/(integer: id)

Delete a single log entry.

Example request

$ curl \
  -X DELETE \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/logs/144

Example response

{
    "deleted": true,
    "previous": {
        "id": 138,
        "event_id": 2,
        "order_id": 32,
        "created_at": "2023-09-21 11:32:53",
        "log_type": "REST API",
        "description": "Mollie API: [2023-09-21T09:32:53+0000] Invalid API key: ''. An API key must start with 'test_' or 'live_' and must be at least 30 characters long."
    }
}

Changelog

Version

Description

2.0

Introduced.