Overview
- Delivery: HTTP POST requests to your configured endpoint
- Retry Logic: Automatic retries with exponential backoff
- Supported Events: Prescription lifecycle events
How Webhooks Work
- An event occurs in Parchment (e.g., a prescription is created)
- Parchment sends an HTTPS POST request to your webhook endpoint
- Your application processes the event
- Your endpoint returns a 2xx status code to confirm receipt
How to Activate Webhooks
Provide your webhook endpoint
Contact Parchment support at hello@parchment.health with:
- Your webhook endpoint URL (must be HTTPS)
- Your partner ID
Receive your webhook secret
Parchment registers your endpoint and provides a confirmation with your webhook secret. This secret is shown only once — store it securely.
Implement your webhook handler
Build an endpoint that verifies the signature and routes events by type. Here’s a complete Node.js example:See Webhook Signature Verification for Python examples and more details.
Webhook Endpoint Requirements
Your webhook endpoint must:- Use HTTPS with a valid SSL certificate
- Return a
2xxresponse within 10 seconds — process events asynchronously if needed - Handle retries idempotently — use the
event_idto prevent duplicate processing
Event Types
Parchment sends webhooks for these event types:| Event Type | Description | Status |
|---|---|---|
prescription.created | A new prescription was created | Live |
prescription.updated | A prescription was modified | Coming Soon |
prescription.ceased | A prescription was ceased | Coming Soon |
prescription.reissued | A prescription was reissued | Coming Soon |

