Create a webhook subscription
Webhooks are only available for certain clients. Contact your Rush Order representative to have them enabled. Creating or changing subscriptions with an API key must also be enabled for your account; otherwise this returns 403.
Creates an active subscription and returns its signing secret. The secret is shown only this once, so store it right away. To check the destination, send a test delivery with POST /webhooks/subscriptions/{id}/test.
Authentication
Basic authentication of the form Basic <base64(username:password)>.
Headers
Request
Where deliveries are sent. Must use https on port 443, have a public host name that resolves only to public IP addresses, contain no user name or password, and be at most 2048 characters.
Event codes to deliver, such as order.shipped. At least one is required. See GET /webhooks/event-types for the list.
Response
The signing secret, beginning with whsec_. This is the only time it is returned, so store it right away.
