Sale completed
This webhook event is triggered when a financial transaction is processed and completed.
Headers
-
x-fsk-wh-chksm
string Required The SHA-256 hash signature of the webhook payload, encoded in base64.
Body
The request body for the sale.completed
webhook event.
-
event
object Required Webhook event details.
-
originalResponse
object Required Represents the response to a sale or authorization transaction.
Request example
{
"event": {
"id": "evt_01JS21X856RR8R69GV5F17XK9C",
"type": "sale.completed",
"timestamp": "2025-04-16T14:30:00Z"
},
"originalResponse": {
"id": "trx_01J2F0EKHC7HY2R93C8ENBD1FG",
"type": "Sale",
"timestamp": "2025-05-27T18:49:31Z",
"resultCode": 0,
"resultText": "Successful transaction request",
"orderNumber": "order_number_1234",
"referenceId": "ref_s192i49i",
"balanceAmount": 0,
"invoiceNumber": "inv_12345678",
"paymentMethod": {
"id": "pmt_trm_01JRZPTMTBN41PC3VPQNZ5T3HF",
"type": "Physical",
"currency": "USD",
"description": "Main Store Terminal"
},
"approvedAmount": 1000,
"requestedAmount": 1000,
"transactionResponses": [
{
"receipt": {
"lines": [
" Test Merchant ",
" 300 S Wacker ",
" Loop, ",
" ",
" ",
"TERM # 11000367",
"RECORD # 0656191",
"HOST INVOICE # 000038",
"HOST SEQ # 1720656191",
"MERCH INVOICE. fgj24344",
"------------------------",
"CARD ************0011",
"VISA Contact",
"07/10/2024 20:03:05",
"------------------------",
"Purchase USD $10.00",
"Tip USD $0.00",
"Cashback USD $0.00",
" ",
"TOTAL USD $10.00",
"------------------------",
"AUTH#:000AAA B:171",
" Sale ",
" APPROVED 00 ",
" THANK YOU ",
" ",
" Visa Credit ",
"AID: A0000000031010",
"TC: 43F4ACF64B07551A",
"TVR: 8000008000",
"TSI: 7800",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" MERCHANT COPY ",
" Test Merchant ",
" 300 S Wacker ",
" Loop, ",
" ",
" ",
"TERM # 11000367",
"RECORD # 0656191",
"HOST INVOICE # 000038",
"HOST SEQ # 1720656191",
"MERCH INVOICE. fgj24344",
"------------------------",
"CARD ************0011",
"VISA Contact",
"07/10/2024 20:03:05",
"------------------------",
"Purchase USD $10.00",
"Tip USD $0.00",
"Cashback USD $0.00",
" ",
"TOTAL USD $10.00",
"------------------------",
"AUTH#:000AAA B:171",
" Sale ",
" APPROVED 00 ",
" THANK YOU ",
" ",
" Visa Credit ",
"AID: A0000000031010",
"TC: 43F4ACF64B07551A",
"TVR: 8000008000",
"TSI: 7800",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" CUSTOMER COPY "
]
},
"authCode": "000AAA",
"cardType": "VISA",
"avsResult": "Y",
"cvvResult": "M",
"accountType": "Credit",
"responseCode": 1,
"paymentMethod": {
"id": "pmt_tkn_01JRZPRGFF4J2SZC3HMDBYEN2J",
"type": "Token",
"cardType": "VISA",
"currency": "USD",
"cardExpDate": "1225",
"description": "Token for John Doe's Visa",
"maskedCardNumber": "************0011"
},
"amountApproved": 1000,
"hostResponseText": "APPROVED 00",
"approvedAmountBreakdown": {
"tax": 100,
"tip": 0,
"cashback": 0,
"amountGoodsAndServices": 900
}
}
]
}
}
Response examples (200)
{
"value": {}
}