Webhooks

List of Webhook events

Retrieve webhook types

Fetches a list of available webhook types based on search criteria.

Request
query Parameters
searchCriteria[filterGroups][0][filters][0][field]
string

Field by which to filter.

searchCriteria[filterGroups][0][filters][0][value]
string

Value for the field.

searchCriteria[filterGroups][0][filters][0][conditionType]
string

Condition type for the filter.

searchCriteria[sortOrders][0][field]
string

Field by which to sort results.

searchCriteria[sortOrders][0][direction]
string

Direction of sort (ASC or DESC).

searchCriteria[pageSize]
integer

Number of results to return per page.

searchCriteria[currentPage]
integer

The page number to retrieve.

Responses
200

A JSON object containing the webhook types

401

Unauthorized

get/rest/V1/omnyfy/webhook_types
Response samples
application/json
{
  • "items": [
    ],
  • "search_criteria": {
    },
  • "total_count": 0
}

Retrieve webhooks

Fetches a list of webhooks based on search criteria.

Request
path Parameters
store-id
required
string

The ID of the store for which to retrieve webhooks.

query Parameters
searchCriteria[filterGroups][0][filters][0][field]
string

Field by which to filter.

searchCriteria[filterGroups][0][filters][0][value]
string

Value for the field.

searchCriteria[filterGroups][0][filters][0][conditionType]
string

Condition type for the filter.

searchCriteria[sortOrders][0][field]
string

Field by which to sort results.

searchCriteria[sortOrders][0][direction]
string

Direction of sort (ASC or DESC).

searchCriteria[pageSize]
integer

Number of results to return per page.

searchCriteria[currentPage]
integer

The page number to retrieve.

Responses
200

An array of webhooks

401

Unauthorized

get/rest/V1/omnyfy/{store-id}/webhooks
Response samples
application/json
{
  • "items": [],
  • "search_criteria": {
    },
  • "total_count": 0
}

Create a webhook

Sends data to create or update a webhook configuration.

Request
Request Body schema: application/json
required
status
integer

The status of the webhook.

store_id
integer

The store identifier associated with the webhook.

webhook_type_id
integer

The webhook type identifier.

method
string

The HTTP method used by the webhook.

endpoint_url
string <uri>

The endpoint URL to which the webhook sends data.

content_type
string

The content type of the data sent to the endpoint.

Responses
200

Webhook configuration response

400

Unexpected error

401

Unauthorized

post/rest/V1/omnyfy/webhook
Request samples
application/json
{}
Response samples
application/json
{}

Update an existing webhook

Updates an existing webhook configuration based on the provided ID.

Request
Request Body schema: application/json
required
status
integer

The status of the webhook.

store_id
integer

The store identifier associated with the webhook.

webhook_type_id
integer

The webhook type identifier.

method
string

The HTTP method used by the webhook.

endpoint_url
string <uri>

The endpoint URL to which the webhook sends data.

content_type
string

The content type of the data sent to the endpoint.

id
integer

The unique identifier for the webhook.

Responses
200

Webhook configuration response

400

Unexpected error

401

Unauthorized

put/rest/V1/omnyfy/webhook
Request samples
application/json
{}
Response samples
application/json
{}

Delete a webhook

Deletes a specific webhook given its unique identifier.

Request
path Parameters
webhookId
required
integer

The unique identifier of the webhook to be deleted.

Responses
200

Returns true if the webhook was successfully deleted.

400

Unexpected error

401

Unauthorized

delete/rest/V1/omnyfy/webhook/{webhookId}
Response samples
application/json
true

vendor.approved

Request
Request Body schema: application/json

Omnyfy webhook event for vendor.approved

event_id
string

A unique identifier for the event.

event_type
string

Type of the event.

created_utc
integer

The Unix timestamp representing the creation time of the event.

object (event-vendor-approved-data)
Responses
200

Return a 200 status to indicate that the data was received successfully

post/vendor.approved
Request samples
application/json
{
  • "event_id": "5f2b18d6c28eca001334c576",
  • "event_type": "vendor.approved",
  • "created_utc": 1614556800,
  • "data": {
    }
}

order.updated

Request
Request Body schema: application/json

Omnyfy webhook event for order.updated

event_id
string
event_type
string
object (event-order-updated-data)
Responses
200

Return a 200 status to indicate that the data was received successfully

post/order.updated
Request samples
application/json
{
  • "event_id": "string",
  • "event_type": "string",
  • "data": {
    }
}

cart.updated

Request
Request Body schema: application/json

Omnyfy webhook event for cart.updated

event_id
string
event_type
string
object
Responses
200

Return a 200 status to indicate that the data was received successfully

post/cart.updated
Request samples
application/json
{
  • "event_id": "string",
  • "event_type": "string",
  • "data": {
    }
}

product.updated

Request
Request Body schema: application/json

Omnyfy webhook event for product.updated

event_id
string
event_type
string
object
Responses
200

Return a 200 status to indicate that the data was received successfully

post/product.updated
Request samples
application/json
{
  • "event_id": "string",
  • "event_type": "string",
  • "data": {
    }
}

shipment.updated

Request
Request Body schema: application/json

Omnyfy webhook event for shipment.updated

event_id
string
event_type
string
object (event-shipment-updated-data)
Responses
200

Return a 200 status to indicate that the data was received successfully

post/shipment.updated
Request samples
application/json
{
  • "event_id": "string",
  • "event_type": "string",
  • "data": {
    }
}