Skip to main content

Create Dropship Webhook

POST 

/api/admin/portal/accounts/:customer/webhooks

Register a webhook endpoint for the account. Requires the portal.manage permission. Returns 201 with the subscription plus its signing secret — the only time the secret is returned; store it now (use Rotate Dropship Webhook Secret if it is lost).

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Request fields

  • url (string, required, max 1024): full https:// URL that resolves to a public address.
  • events (array of strings, optional): any of dropship_order.created, dropship_order.shipped, dropship_order.cancelled, dropship_order.on_hold. Omitted or empty subscribes to all of them.
  • active (boolean, optional, default true).

Errors. 422 when the URL is not HTTPS, malformed, or resolves to a private/internal address, or an event name is unknown.

Request​

Responses​

Created

Response Headers
    Content-Type