v1
latestOpenAPI 3.0.12026-08-0688138402.2 KBWebhooks
Create a webhook
Creates a new webhook with the specified information and activates it.
Webhooks create an event when an action that is subscribed to is performed in Shipmondo. The event is then sent to the specified endpoint containing the current data of the affected object.
Endpoint must be set up to receive messages before creating the webhook.
Accepted values for action depends on the resource_name used.
Available actions for [**Shipments**](shipment_get) resource:
- create
- cancel
Available actions for [**Orders**](sales_order_get) resource:
- create
- status_update
- create_fulfillment
- create_shipment
- payment_captured
- payment_voided
- delete
Available actions for [**Drafts**](draft_shipment_get) (Draft shipments) resource:
- create
- create_shipment
- delete
Available actions for **Shipment Monitor** resource:
- latest
- delivered
post/webhooks
Request body
Example request
{
"name": "Example Name",
"endpoint": "https://example.com/webhook",
"key": "example_key_123",
"action": "create",
"resource_name": "Shipments"
}Response
Successful.
Example response
[
{
"id": 1,
"endpoint": "https://example.com/webhook",
"created_at": "2017-06-16T06:25:44.557Z",
"updated_at": "2017-06-16T06:25:44.557Z",
"name": "Example Name",
"action": "create",
"resource_name": "Shipments"
}
]