Authentication v1
- Identity APIs
- User
- Address
- Auth
User Self Service APIs
- Introduction
- User Self Service APIs
- Authentication APIs
Experiences v2 (XM v2)
- XM
- Pages
- Global Components
- Menu
Experiences v1 (XM v1)
- XM
- Pages
- Global Components
- Menu
Product Catalog
- Product Catalog
- Category
- Product
- Attributes
- Bulk Import
Orders v2 (OMS v2)
- Order Management System
- Order
- Order Attribute
- Developer Guide
- Order Return
- Payment Status
- Package Tracking
- Cross Border
- Order Cancellation
- Appeasement
- Allocation
- Configuration
- Fraud Configuration
- Target Configuration
- Location
- Location Attribute
- Inventory Network
- Inventory
- Inventory Counter
- Inventory Bulk Operation
- Inventory Attribute
- Inventory Upload Log
- Shipment
- Shipping Method
- Webhook
- Notification
- Export
- Invoice
- Fraud
- Backorder Preorder Reservation
- List
Orders v1 (OMS v1)
- Order Management System
- Cart
- Bill To
- Ship To
- Wishlist
- Cart Decoupled
- Warehouse
- Inventory
- Attributes
- List
- Tax/Address Validate
- Shipping
- Payments
- Order
Offers v2
- Offers
- Developer Guide
- Promotion
- Price Kind
- Dynamic Pricing Engine
- Segment
- Coupon
- Coupon Codes
- Product
- Price List
- Attributes
- Item
- Price Guard
- Global Exclusion
- Upload Price CSV
- Pricing
- Redemption
- Exports
Offers v1
- Offers
- Login API
- Promotions
- Pricing
Subscriptions (SMT API)
- Subscriptions API
- Cancellation Reasons
- Subscription Discounts
- Subscriptions
- Subscribers
- Orders
Loyalty (Member)
- Member APIs
- Inquire
- Discounts
- Redeem
- Earn
- Members
Dropship
- Dropship API
- Shipments
- Products
- Invoices
- Connections
- Inventory
- Developer Guide
- Returns
- Orders
Cart API
- Cart
- Order Draft
- Attribute
- Adjustments
- Shipping
- Cart
Checkout API
- Checkout
- Checkout
Customer
- Core Concepts
- Customer Service
- Organization
- User Party
- Organization Group Addresses
- User Internal Party
- Organization Contracts
- Party
- Party Contracts
- Contracts
- User
- Search
- User Trait
- Organization Users
- Address
- User Address
- Trait
- Party Address
- Party Trait
- Organization Group Users
- Internal Party
- Contract Pricelist
- Internal Parties Party
- Account
- Party Account
- Organization Addresses
- Organization Groups
- Individual Addresses
- Users Organization
- Individual
Query webhook event log
Lets you query log of webhook events based on the filter criteria.
curl --request POST \
--url https://prod01.oms.fabric.inc/api/v2/webhook/event/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '{
"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 }"
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
Body
LibQuery Model
JSON to do filtration of records. to filter records json structure should be similar to target entity structure i.e order, shipment etc
JSON to do filtration of records. to filter records json structure should be similar to target entity structure i.e order, shipment etc
Numbers of records to be returned.
Number of records to skipped.
Item property on which data needed to be sorted on.
Direction of sorting i.e ascending or descending
asc
, desc
Was this page helpful?
curl --request POST \
--url https://prod01.oms.fabric.inc/api/v2/webhook/event/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '{
"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 }"
]
}