Download OpenAPI specification:Download
fabric OMS webhooks APIs For multi tenant service
These endpoints help in performing CRUD operations on webhook subscriptions
This endpoint lets you manually re-trigger a webhook event.
required | object (XSiteContext) x-site-context value |
OK
Bad Request
Internal Server Error
{- "orderNumber": "oms_234322",
- "channel": "WHBM",
- "tenant": "5ef879t578f89",
- "apiVersion": "1.0.0",
- "event": "ORDER_CREATED",
- "payload": "{\n \"orderId\":\"4fr4g45frew-24f54vre-3fre\"\n }",
- "eventRequestId": "5ef879t5-78f89"
}
[- "{\n\n \"statusCodeValue\": 200,\n \"statusCode\": \"OK\"\n }"
]
Lets you query log of webhook events based on the filter criteria.
required | object (XSiteContext) x-site-context value |
OK
Bad Request
Internal Server Error
{- "limit": 10,
- "offset": 0,
- "sortBy": "updatedAt",
- "sortDirection": "desc",
- "filters": {
- "retail": {
- "locationNum": 12
}, - "orderSubTotal": {
- "gte": 1300,
- "lt": 1400
}, - "orderNumber": "order-*Z",
- "statusCode": [
- "ORDER_CREATED"
], - "createdAt": {
- "lt": "2022-09-11T23:12:00.123Z"
}, - "shipInfo": {
- "shipToId": [
- "23434",
- "23436"
]
}
}
}
{- "count": 100,
- "limit": 10,
- "offset": 1,
- "webhookEventLogs": [
- "{\n \"eventRequestId\": \"81bb-3bs09-ae-5f791-06a22bf2dcd3\",\n \"channel\": \"12\",\n \"tenantId\": \"5f689caa4216e7000750d1ef\",\n \"event\": \"ORDER_CANCELLED_RETRY\",\n \"payload\": {\n \"orderId\": \"63bd0e187bf29a11d1773191\"\n },\n \"firstEventTriggeredAt\": \"2023-01-17T06:33:45.083+00:00\",\n \"lastEventTriggeredAt\": \"2023-01-17T06:33:48.758+00:00\",\n \"status\": \"FAILED\",\n \"retryCount\": 0,\n \"automaticRetryEnabled\": true,\n \"logs\": [\n {\n \"webhookId\": \"63c1661635431d2150956e8e\",\n \"status\": \"SUCCESS\",\n \"responseInfo\": [\n {\n \"statusCode\": 204,\n \"triggeredStatus\": \"SUCCESS\",\n \"triggeredAt\": \"2023-01-17T06:33:48.752+00:00\",\n \"messageId\": \"36b9c53c-a12b-4091-8d71-e2b64ce69163\",\n \"errorMessage\": null\n }\n ]\n },\n {\n \"webhookId\": \"63c525b935431d2150956f1c\",\n \"status\": \"FAILED\",\n \"responseInfo\": [\n {\n \"statusCode\": 404,\n \"triggeredStatus\": \"FAILED\",\n \"triggeredAt\": \"2023-01-17T06:33:49.029+00:00\",\n \"messageId\": \"bd0a7597-9daa-4d9c-ac02-2d611f96c08e\",\n \"errorMessage\": \"{\\\"success\\\":false,\\\"error\\\":{\\\"id\\\":null,\\\"message\\\":\\\"HTTP error 404\\\"}}\"\n }\n ]\n }\n ]\n }"
]
}
Retrieves all webhook definitions for give tenant-Id, offset and limit.
List of webhook definitions
Bad Request
Internal Server Error
[- {
- "webhookId": "string",
- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}
]
Creates webhook definition with the given target, events, request type, and other values as passed in the request body.
required | object (XSiteContext) x-site-context value |
Returns Webhook Definition that is successfully created
Webhook Definition with target, tenantId, protocol, source, apiVersion already exists!
Internal Server Error
{- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}
{- "webhookId": "string",
- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}
Retrieves webhook definition for a given webhook ID
Returns Webhook Definition that is successfully updated
Not Found
Internal Server Error
{- "webhookId": "string",
- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}
Deletes webhook definition of a given webhook ID
Returns webhook definition that is successfully deleted
Not Found
Internal Server Error
{- "webhookId": "string",
- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}
Updates webhook definition for a given webhook ID
required | object (XSiteContext) x-site-context value |
Returns Webhook Definition that is successfully updated
Not Found
Webhook Definition with target, tenantId, protocol, source, apiVersion already exists!
Internal Server Error
{- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}
{- "webhookId": "string",
- "tenantId": "string",
- "targetApiKey": "adfasdWdsaQFSsdf",
- "protocol": "HTTP",
- "source": "OMS",
- "apiVersion": "string",
- "format": "application/json",
- "callbackUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "events": "[ORDER_CREATED]",
- "requestType": "POST"
}