Logo sunbit

Please enter the password to view.

Voided & Refunded Transactions

Overview

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

Transactions: Voided, Refunded

 

Body

{

  “eventType”: “TRANSACTION_REFUNDED”,

  “payload”: {

    “purchaseId”: “938”,

    “location”: “retailer”,

    “purchaseAmount”: “140.0”,

    “netPurchaseAmount”: “139.0”,

    “purchaseDate”: “2024-03-12 23:27:06”,

    “modificationDate”: “2024-03-14 01:42:51”,

    “referral”: “123881”,

    “representativeEmail”: null, 

    “representativeName”: null,

    “merchantFeeAmount”: 5

 

  }

}

Definitions

Attribute Type Description
eventType text The type of event triggered by the customer action:
TRANSACTION_VOIDED
TRANSACTION_REFUNDED
purchaseId text The 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
location text The same Location which was sent in the API
purchaseAmount number Original total amount of the transaction.
netPurchaseAmount number Net Purchase Amount after any price adjustments or refunds. When no price adjustments take place then netPurchaseAmount = purchaseAmount. For VOIDED transactions, the net purchase amount = 0. For REFUNDED transactions, the net purchase amount reflects the new adjusted purchase amount.
purchaseDate text Date of original purchase. Format: YYYY-MM-DD HH:MM:SS
modificationDate text Date the transaction was last modified. For voided or refunded purchases, this date will be the modification date. Format: YYYY-MM-DD HH:MM:SS
referral text An external transaction identifier sent by the integrator and used to match the webhook to the request.
merchantFeeAmount number The amount that was deducted as merchant fees from the total purchase amount.