Skip to main content

Prequal

Overview#

You can use Sunbit's webhooks to do anything from getting notified when a customer makes a payment, to incorporating customer actions into your reporting, customer outreach, and/or marketing automation workflows. The following customer events are currently available:

Pre-qualification: Completed, aborted, failed

Body#

{  "eventType": "PREQUAL_COMPLETED",  "payload": {    "purchaseId": "123",    "location": "retailer",    "approvalAmount": 1000.0,    "purchaseAmountEntered": 500.0,    "referral": "referral",    "validUntil": "2021-09-01",    "representativeEMail": "jason@email.com",    "merchantFeeAmount": 5  }}

Definitions#

AttributeTypeDescription
eventTypetextThe type of event triggered by the customer action:
PREQUAL_COMPLETED
PREQUAL_FAILED
PREQUAL_ABORTED
PREQUAL_APPROVED
purchaseIdtextThe purchase Id that is generated by Sunbit and returned after a successful Sunbit flow. This purchase ID should be used for transaction management -Lookup, Void and refund (add URL for each).
locationtextThe same Location which was sent in the API.
approvalAmountnumberThe max amount the customer was approved for.
purchaseAmountEnterednumberThe purchase amount entered by the customer.
referraltextAn external transaction identifier sent by the integrator for Pre-Qualification or Text to Pay-Over-Time and used to match the webhook to the request.
validUntiltextThe date the offer expires. Format : YYYY-MM-DD.
representativeEmailtextThe email of the representative/advisor which was sent in the API.
merchantFeeAmountnumberThe amount that was deducted as merchant fees from the total purchase amount.