| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Overview
Webhook endpoint that OneInc calls when a customer enrolls in, or cancels, autopay (recurring payment) for a policy or billing account. This endpoint updates the IsRecurringPayment flag on the corresponding Policy or BillingAccount record in Origami.
Trigger: OneInc sends an HTTP POST to this endpoint after a customer's autopay enrollment status changes. Origami does not call this endpoint — it only receives it.
What this endpoint does when called:
- Reads
ClientReferenceData1(PolicyID) andClientReferenceData2(BillingAccountID) from the webhook payload - Reads
InstallmentPlanStatusto determine whether autopay is being activated or deactivated - Updates
IsRecurringPaymenton the appropriate record:- If PolicyID is nonzero: updates the Policy
- If PolicyID is zero: updates the BillingAccount using the BillingAccountID
- Returns acknowledgment string to OneInc
How it determines which record to update:
ClientReferenceData1 (PolicyID) | ClientReferenceData2 (BillingAccountID) | Record updated |
|---|---|---|
Nonzero (e.g., "42") | Ignored | Policy with that ID |
"0" | Valid ID (e.g., "15") | BillingAccount with that ID |
How it determines the new value:
IsRecurringPayment is set to true if InstallmentPlanStatus == "Active", false otherwise.
Separate flow from payout webhooks: This endpoint is not part of the payout sequence (OneIncAcknowledgePaymentMethod → OneIncPaymentFeedback). It handles a completely independent concern — recurring payment enrollment.
When to Use This Endpoint
This endpoint is a webhook target. You don't call it — you configure its URL in OneInc's dashboard so OneInc knows where to send autopay enrollment notifications.
Prerequisites for this webhook to be called:
- OneInc integration configured in Origami (
OnlinePaymentProvider="OneInc") - Customer has enrolled in or canceled autopay through OneInc's interface
- The autopay plan was set up with
ClientReferenceData1= PolicyID andClientReferenceData2= BillingAccountID
200