Morning Trigger
AI-generatedSummary
Receive and process HTTP POST webhooks from the Morning (Green Invoice) service triggered by a /payments/form call, optionally verifying requests by a token query parameter and outputting either parsed JSON with normalized keys or the raw form-urlencoded body.
Inputs
- Verification Token (Query Param) — Optional token value appended as ?token=
to the webhook URL to verify incoming requests. Requests without this matching token are rejected with a 403 status. - Output Format (required) — Choose between 'Parsed' to normalize and camelCase keys the form-urlencoded webhook body into a clean JSON object, or 'Raw' to pass through the original form-urlencoded body unchanged.
Output shape
a single JSON object per request
If 'Parsed' format is chosen, outputs a JSON object with fields like documentId, documentNumber, documentType, externalData, transactionId, pdfUrl, originalDocUrl, copyDocUrl, and correlationId, plus the raw original body under 'raw'. If 'Raw' format is chosen, outputs the raw form-urlencoded body along with correlationId. The node returns immediately when receiving a webhook POST. If token verification fails, the webhook responds with 403 status and no data is passed on.
Examples
Example 1: Webhook triggers when Morning service calls the configured notifyUrl on a /payments/form event, passing form-urlencoded data about the document payment.
Set the webhook URL in Morning with optional ?token=XYZ if using Verification Token. In n8n, choose outputFormat 'Parsed' to get normalized data or 'Raw' for unprocessed form body.