The HTTP 404 / Bad Request error when deleting/patching webhook subscriptions via BC v2.0 API, despite successful creation, often points to:
- Incorrect
@odata.etag format in If-Match header: Ensure it's exact, including quotes (e.g., "W/\"...").
subscriptionId formatting in URL: Verify no extra characters or incorrect encoding.
- API Version Inconsistency/Bug: Consider trying the v1.0 webhook endpoint for DELETE/PATCH if v2.0 fails consistently, as there are known inconsistencies.
The "Error in query syntax" strongly suggests a formatting issue with the ID or ETag.
✅ Mark this answer as verified if it helps you.