v2 can call you. Register an HTTPS endpoint, subscribe it to the events you care about, and we POST a signed JSON body when they happen — so you can stop polling for state changes you didn’t cause.
This has no v1 equivalent. Managing endpoints needs the webhooks:manage scope.

Registering an endpoint

POST /webhook-endpoints with your URL and the events you want. The response carries the signing secret, in plaintext, once.
Store the secret when you create the endpoint. It is never shown in full again — later reads return only a whsec_…last4 hint. If you lose it, rotate to get a new one.

Verifying the signature

Every delivery carries an X-InStockRx-Signature header:
Compute HMAC-SHA256 over the exact string "<t>.<raw request body>" using your signing secret, hex-encode it, and compare against v1.
Sign the raw body bytes, before any JSON parse or re-serialise. Re-encoding changes whitespace and key order, and the HMAC will not match.

Accept any v1 present

During a secret rotation we sign with both secrets and send two values:
Your check must accept the delivery if it matches any v1 value. A verifier that reads only the first — or assumes there is only one — breaks the moment anyone rotates. That is the whole point of the overlap: it lets you redeploy without dropping deliveries. POST /webhook-endpoints/{id}/rotate-secret takes gracePeriodSeconds — default 24 hours, maximum 7 days, 0 for an immediate hard swap. The old secret is erased once the window closes.

What we send

16 event types. Names are snake_case with a dotted resource prefix — the one place on the v2 surface that isn’t PascalCase.
marketplace_listing.updated is defined but never fires. Subscribing to it is accepted and delivers nothing. Don’t build on it.
marketplace_listing.cancelled can arrive on a listing you have already marked shipped. Either pharmacy can cancel a sale until the carrier accepts the parcel, so a buyer cancel after your shipment confirmation is normal rather than an error. On an InStockRx label the window closes at the carrier’s first scan; where the buyer arranged their own shipping it closes when you confirm shipment.If you are the seller, handle this event on a shipped listing and don’t hand the parcel over — and note that a cancel after shipment never auto-relists, so you have to list the item again yourself.
Events fire for activity in the portal as well as through the API, so you see a pharmacy’s own actions, not just your integration’s.

Retries, and how an endpoint gets switched off

Any non-2xx is retried on a fixed backoff: 30s → 5min → 30min → 2h → 12h → 24h → 48h — seven retries after the first attempt, about four days of cover.
When every retry for a single event is exhausted, the endpoint is deactivated — status DeactivatedAfterFailures — and stops receiving everything, not just that event. We email the group’s admins when it happens.Re-enable it by PUTting the status back to Active, then use POST /webhook-endpoints/{id}/replay to collect what you missed. Replay takes event ids or a time range, and only sends types you are currently subscribed to.
Return a 2xx as soon as you have durably accepted the body, and do your processing after. Slow handlers burn into the retry schedule.

Reading the status

The distinction is deliberate: a pause you chose and a shutdown we imposed mean very different things when you are debugging missing events.
failureCount is a live count, not a running total. It counts deliveries currently awaiting a retry, so it falls back to zero on its own once they land. It is a “something is wrong right now” signal. For the permanent case, read status.

Two things that surprise people

DELETE /webhook-endpoints/{id} sets the status to Disabled. The endpoint still comes back from GET and the list. If you replay your configuration from a template, take care not to resurrect something you meant to remove.
Endpoints belong to the group, not to the key that created them. Any key holding webhooks:manage can edit, disable or re-enable any of the group’s endpoints. This keeps key rotation working, and every change is attributed to the key that made it in our audit log.