QR PH Webhooks
Get Webhooks
Retrieve all registered webhook endpoints for your merchant account
GET
Overview
The Get Webhooks endpoint returns a list of all webhook endpoints you’ve registered. Use this to view your webhook configurations, check their status, and retrieve webhook IDs for updates or deletions.Endpoint
Authentication
This endpoint requires HTTP Basic Authentication using your Secret Key.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Basic {base64(secret_key:)} | Yes |
accept | application/json | No |
Parameters
This endpoint does not accept any query parameters or request body.Response
Success Response
Status Code:200 OK
Returns an array of webhook objects.
Array of all registered webhooks for your merchant account. Returns an empty array
[] if no webhooks are registered.Each webhook object contains:Response Examples
Error Responses
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Status Code:
403Cause: Account disabled or API access revokedSolution:- Contact Modulus Labs support
- Verify your account status
500 Internal Server Error
500 Internal Server Error
Status Code:
500Cause: Unexpected server errorSolution:- Retry the request
- If the issue persists, contact Modulus Labs support
Use Cases
Audit Webhook Configuration
Audit Webhook Configuration
Verify which webhooks are active and what events they receive:
Find Webhook ID for Update
Find Webhook ID for Update
Retrieve the webhook ID before updating or deleting:
Monitor Webhook Status
Monitor Webhook Status
Check if your webhooks are enabled in health checks:
Prevent Duplicate Webhooks
Prevent Duplicate Webhooks
Check if a webhook URL is already registered before creating:
Sync Webhook Configuration
Sync Webhook Configuration
Compare current webhooks with expected configuration:
Best Practices
Cache Webhook Configuration
Cache webhook IDs in your application to avoid repeated API calls:
Regular Health Checks
Periodically verify webhooks are enabled and configured correctly:
Log Webhook Changes
Track webhook configuration changes for audit purposes:
Validate Expected Configuration
Ensure critical webhooks are present and enabled:
Filtering and Processing Webhooks
Troubleshooting
Empty Webhooks Array
Empty Webhooks Array
Symptom: Response returns
{"webhooks": []}Possible Causes:- No webhooks have been created yet
- Using wrong secret key (different merchant account)
- Webhooks were deleted
- Verify you’re using the correct secret key
- Create a webhook using the Create Webhook API
- Check if you’re in the right environment (sandbox vs production)
Missing Expected Webhook
Missing Expected Webhook
Symptom: Webhook you created is not in the listPossible Causes:
- Wrong secret key (different merchant account)
- Webhook was deleted
- API cache delay (rare)
- Verify secret key matches the one used to create the webhook
- Check if webhook was accidentally deleted
- Retry the request after a few seconds
Outdated Webhook Information
Outdated Webhook Information
Symptom: Webhook status or URL doesn’t match recent updatesPossible Causes:
- Application caching old data
- Race condition with concurrent updates
- Clear application cache
- Call Get Webhooks API again to refresh data
- Implement cache invalidation after updates
Next Steps
Create Webhook
Register a new webhook endpoint
Update Webhook
Modify existing webhook configuration
Delete Webhook
Remove a webhook endpoint
Webhooks Overview
Learn about the Webhook API
Authorizations
HTTP Basic Authentication using your Secret Key as the username and an empty password
Response
List of webhooks retrieved successfully
Unique identifier for the webhook
List of transaction events this webhook receives
Available options:
QRPH_SUCCESS, QRPH_DECLINED Current status of the webhook
Available options:
ENABLED, DISABLED The HTTPS URL where notifications are sent