webhooks

Create a Webhook

Create a webook for specific events in the environment.

post/v1/environment/webhooks

Request body

event'batch' | 'carrier_connected' | 'order_source_refresh_complete' | 'rate' | 'report_complete' | 'sales_orders_imported' | 'track' required

The possible webook event values

urlstring url required

A URL

Example request

{
  "url": "http://api.shipengine.com/v1/labels/se-28529731",
  "headers": [
    {
      "key": "custom-key",
      "value": "custom-value"
    }
  ]
}

Response

The request was a success.

webhook_idstring

A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.

urlstring url

A URL

event'batch' | 'carrier_connected' | 'order_source_refresh_complete' | 'rate' | 'report_complete' | 'sales_orders_imported' | 'track'

The possible webook event values

Example response

{
  "webhook_id": "se-28529731",
  "url": "http://api.shipengine.com/v1/labels/se-28529731",
  "headers": [
    {
      "key": "custom-key",
      "value": "custom-value"
    }
  ]
}

Changes