Payment Acknowledgement of One Inc Payment

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

This endpoint serves as a Webhook target that OneInc calls after a customer submits or updates their payment method (bank account details) through OneInc's hosted form.

Trigger: OneInc sends an HTTP POST to this endpoint. Always. The trigger is never a user action in Origami or an internal Origami call. Origami only receives this webhook.

What happens before this endpoint is called:

  1. Earlier, through a separate process, Origami asked OneInc to collect a payment method from a customer
  2. OneInc emailed the customer a link to a hosted payment form
  3. The customer clicked the link and submitted their bank account details
  4. Now OneInc calls this endpoint to notify Origami that the customer has provided their payment method

What this endpoint does when called:

  1. Reads ClientReferenceData1 from the webhook payload to determine context and performs one of two actions:
    1. Saves the payment token (from OneInc) to the customer's wallet in Origami
    2. If the context indicates a pending payout order: automatically initiates the bank credit
  2. Returns acknowledgment response to OneInc

How ClientReferenceData1 works:

When Origami originally asked OneInc to collect a payment method (step 1 above), it included a ClientReferenceData1 value in that request. OneInc stored it and now echoes it back in this webhook. The value isn't a routing choice — it's a record of why the payment method was requested in the first place. This endpoint reads it to know what context it's operating in:

ClientReferenceData1 valueWhat it meansWhat this endpoint does
"ManualSavePaymentMethod"An admin requested payment method collection with no associated order.Saves token. Done.
"OnlineOrderID:{id}"A payout order triggered payment method collection because the customer had no saved token.Saves token, then initiates bank credit for the referenced order.

When to Use This Endpoint

This endpoint is a webhook target. You don't call it directly. You configure its URL in OneInc's dashboard so OneInc knows where to send notifications.

Prerequisites for this webhook to be called:

  • OneInc integration configured in Origami (OnlinePaymentProvider = "OneInc")
  • Origami has already made a prior API call to OneInc requesting payment method collection
  • OnlineCustomer record exists for the customer
  • Customer has completed OneInc's hosted payment method form
Body Params
json
required
Defaults to { "Id": "evt_abc123def456", "SessionId": "session_xyz789", "Type": "payment_method.submitted", "Timestamp": "2026-06-15T14:30:25Z", "Data": { "SubmitPaymentMethodsDetails": [ { "CustomerId": "cust_12345", "ExternalCustomerId": "EXT-67890", "AccountId": "acct_98765", "CustomerName": "John Doe", "TokenId": "tok_abc123xyz789", "PaymentMethod": { "Type": "BankAccount", "CardType": "Chase Bank", "HolderZip": "02134", "CardExpirationMonth": 1, "CardExpirationYear": 2024, "LastFourDigits": "1234" }, "ClientReferenceData": { "ClientReferenceData1": "OnlineOrderID:456", "ClientReferenceData2": "PolicyID:789", "ClientReferenceData3": null, "ClientReferenceData4": null, "ClientReferenceData5": null }, "ExtendedParameters": {} } ], "UpdatePaymentMethodsDetails": null } }

Important Context: This request body is constructed and sent by OneInc, not by your application. You don't need to build this request - you only need to receive and process it. The example schema provided here is a reference of what to expect in the webhook payload.

What You Need to Know:

  • OneInc sends this webhook automatically after customer submits payment method
  • Your application receives it at the configured webhook URL
  • The key field is ClientReferenceData1 which determines processing logic
  • You should validate the payload structure and extract the necessary fields
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json