GET Webhook Logs

To get all webhook logs with pagination.

HTTP Request
GET
https://access.way2order.com/api/v1/getwebhooklogs
Request Header
Content-Type: application/json
Authorization: Bearer {access_token}
Query Parameters

The following query parameters are available

Parameter Description
page Page Number Default 1
per_page Records per Page Default 25, Maximum 100
Sort Field

The webhook logs are sorted by 'dt_create' in DESC order.

Request Response
{
    "data": [
        {
            "_id": "5b630118a8b17871571c43d1",
            "orderno": "ARCSMFG-00001",
            "orderobj": "5c110920208ab40b3945e688",
            "webhookid": "2289482c-eb7b-416f-818b-667c4dd5a969-0",
            "webhookevent": "NEW",
            "webhookurl": "https://www.your-server-url.com/webhook/endpoint", 
            "retobj": { Object Returned from Your Server }, 
            "duration": 377, 
            "status": "Complete", 
            "dt_create": "2019-03-05T13:03:20.998Z",
            "id": "5b630118a8b17871571c43d1"
        },
        ...
    ],
    "pagination": {
        "page": 1,
        "per_page": 25,
        "total_pages": 2,
        "total_elements": 32
    }
}
Attribute Details
Attribute Type Description
_id String ID of Webhook Log
orderno String Order Number
orderobj String Order ID
webhookid String Webhook ID
webhookevent String Webhook Event (NEW, CONFIRMED, ON-HOLD, IN-PROCESS, COMPLETE or CANCELLED)
webhookurl String Webhook URL (As defined by you)
retobj Object Object Returned by Your Server
duration Integer Duration of the Webhook Call in Milliseconds
status String Webhook Status (Pending, Complete or Error)
dt_create Date Creation Date
id String ID of Webhook Log