Skip to main content

Webhooks

Webhooks are a means of getting notified of events in the Kopo Kopo application. To receive webhooks, you need to create a webhook subscription. See developer guide

Create a webhook subscription​

POST https://sandbox.kopokopo.com/api/v2/webhook_subscriptions
Accept: application/json
Content-Type: application/json
Authorization: Bearer 0Sn0W6kzNicvoWhDbQcVSKLRUpGjIdlPSEYyrHqrDDoRnQwE7Q
User-Agent: "< product >/< product-version > < comment >"
{
"event_type": "buygoods_transaction_received",
"url": "https://myapplication.com/webhooks",
"scope": "till",
"scope_reference": "555555",
"enable_daraja_payload": false
}

HTTP Request​

POST https://sandbox.kopokopo.com/api/v2/webhook_subscriptions

Request Parameters (JSON)​

ParameterRequiredTypeDescription
event_typeyesstringThe type of event you are subscribing to. Should be one of: buygoods_transaction_received, buygoods_transaction_reversed, b2b_transaction_received, b2b_transaction_reversed,settlement_transfer_completed, card_transaction_received, card_transaction_voided, card_transaction_reversed
urlyesstringThe HTTPS end point to send the webhook. MUST be secured with HTTPS (TLS)
scopeyesstringThe scope of the webhook subscription. Could be either company or till
scope_referenceyesstringIf the scope is till the scope reference is required and it should be your till number
enable_daraja_payloadnoBooleanConfiguration used to determine the payload structure that the webhook notifications will use. Either the Daraja API payload structure (true) or the K2Connect API payload structure (false). Defaulted to false.
info

Daraja payload is only applicable for buygoods_transaction_received and b2b_transaction_received event types.

HTTP Response​

Successful Response​

Upon successful creation of the webhook subscription, HTTP Status Code 201 with the URL of the subscription in the Location Header of the HTTP Response.

HTTP/1.1 201 Created Location: https://sandbox.kopokopo.com/api/v2/webhook_subscriptions/d76265cd-0951-e511-80da-0aa34a9b2388

Error Response​

This will have a HTTP Status code indicating the error and it might have a json that contains the error code and an error message specifying the error that occured. Please note that the error response might not be present depending on the type of error that occured.

If the error json response is present, it will look as follows:

HTTP/1.1 400 Bad Request

{ "error_code": 400, "error_message": "Invalid scope reference" }

Validating webhooks​

webhook_test = K2Client.new(ENV["API_KEY"])
webhook_test.parse_request(request)
webhook_payload = webhook_test.hash_body
processed_payload = K2ProcessWebhook.process(webhook_payload, secret, webhook_test.k2_signature)

Before processing webhook events, make sure that they originated from Kopo Kopo.Each request is signed with the api_key you got when creating an oauth application on the platform.

The signature is contained in the X-KopoKopo-Signature header and is a SHA256 HMAC hash of the request body with the key being your API Key.

Buygoods Transaction Received​

Notifies your application when a Buygoods Transaction has been received.

Buygoods Transaction Received webhook notifications are in two formats:

  • K2Connect Payload structure

  • Daraja Payload structure

POST https://www.your-application.com/payments/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "buygoods_transaction_received",
"id": "2133dbfb-24b9-40fc-ae57-2d7559785760",
"created_at": "2026-05-01T10:43:20+03:00",
"event": {
"type": "Buygoods Transaction",
"resource": {
"id": "458712f-gr76y-24b9-40fc-ae57-2d35785760",
"amount": "100.0",
"status": "Received",
"system": "Lipa Na M-PESA",
"currency": "KES",
"reference": "OJM6Q1W84K",
"till_number": "000000",
"sender_phone_number": "+254999999999",
"hashed_sender_phone" : "cbc504704d2c654f8bf08de98945980b77567d8c611d355ca3aef480c960ad9c",
"origination_time": "2026-05-01T10:43:19+03:00",
"sender_first_name": "Jane",
"sender_last_name": null,
"sender_middle_name": null
}
},
"_links": {
"self": "https://sandbox.kopokopo.com/webhook_events/2133dbfb-24b9-40fc-ae57-2d7559785760",
"resource": "https://sandbox.kopokopo.com/financial_transaction/458712f-gr76y-24b9-40fc-ae57-2d35785760"
}
}

K2Connect Webhook Parameters (JSON)​

Parameters contained in a buygoods_transaction_received webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. buygoods_transaction_received in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Buygoods Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (Buygoods Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a Buygoods Transaction

Resource (Buygoods Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe mpesa reference
statusStringThe status of the transaction
origination_timeStringThe transaction timestamp
sender_phone_numberStringThe phone number that sent the payment
hashed_sender_phoneStringThe hashed phone number that sent the payment
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number to which the payment was made
systemStringThe mobile money system
sender_first_nameStringFirst name of payer
sender_middle_nameStringMiddle name of payer
sender_last_nameStringLast name of payer

Daraja Webhook Parameters (JSON)​

POST https://www.your-application.com/payments/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"TransactionType": "Buygoods",
"TransID": "OJM6Q1W84K",
"TransTime": "20260501191515",
"TransAmount": "100.0",
"BusinessShortCode": "000000",
"BillRefNumber": "",
"InvoiceNumber": "",
"OrgAccountBalance": "",
"ThirdPartyTransId": "",
"MSISDN": "rbFvT0GstruVPN/B68z6yWD973VhweR31G8fhM5bxo=",
"FirstName": "Jane",
"MiddleName": null,
"LastName": null
}

Parameters contained in a buygoods_transaction_received daraja webhook;

ParameterTypeDescription
TransactionTypeStringThe type of transaction (Buygoods in this instance)
TransIDStringThe transaction reference.
TransTimeStringThe timestamp in the format YYYYMMDDhhmmss of when the transaction occurred.
TransAmountFloatThe amount of the transaction
BusinessShortCodeStringThe till number to which the payment was made to
BillRefNumberStringEmpty
InvoiceNumberStringEmpty
OrgAccountBalanceStringEmpty
ThirdPartyTransIdStringEmpty
MSISDNStringThe hashed phone number that sent the payment
FirstNameStringFirst name for customer who sent the payment
MiddleNameStringEmpty
LastNameStringEmpty
info

Values are displayed in accordance with data protection rules, hence MiddleName and LastName will not be available.

B2B Transaction Received​

Notifies your application when a B2B (External Till to Till transaction) has been received. These are payments received from other tills and not subscribers.

B2B Transaction Received webhook notifications are in two formats:

  • K2Connect Payload structure

  • Daraja Payload structure

POST https://www.your-application.com/payments/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "b2b_transaction_received",
"id": "bcfb7175-bc7f-46e8-9727-eb46e6f88ef1",
"created_at": "2020-10-29T08:18:45+03:00",
"event": {
"type": "External Till to Till Transaction",
"resource": {
"id": "fbygwu7175-bc7f-46e8-9727-f88edyy",
"amount": "313",
"status": "Complete",
"system": "Lipa Na Mpesa",
"currency": "KES",
"reference": "OJQ8USH5XK",
"till_number": "000000",
"sending_till": "890642",
"origination_time": "2020-10-29T08:18:45+03:00"
}
},
"_links": {
"self": "https://sandbox.kopokopo.com/webhook_events/bcfb7175-bc7f-46e8-9727-eb46e6f88ef1",
"resource": "https://sandbox.kopokopo.com/financial_transaction/fbygwu7175-bc7f-46e8-9727-f88edyy"
}
}

Notifies your application when a B2b (External Till to Till transaction) has been received. These are payments recieved from other tills and not subscribers.

K2Connect Webhook Parameters (JSON)​

Parameters contained in a b2b_transaction_received webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. b2b_transaction_received in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding B2B Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (B2B Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a Buygoods Transaction

Resource (Buygoods Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe mpesa reference
origination_timeStringThe transaction timestamp
sending_tillStringThe till number of the sender
statusStringThe status of the transaction
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number to which the payment was made
systemStringThe mobile money system

Daraja Webhook Parameters (JSON)​

POST https://www.your-application.com/payments/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"TransactionType": "Organization To Organization Transfer",
"TransID": "OJM6Q1W84K",
"TransTime": "20260501191515",
"TransAmount": "100.0",
"BusinessShortCode": "000000",
"BillRefNumber": "",
"InvoiceNumber": "",
"OrgAccountBalance": "",
"ThirdPartyTransId": "",
"MSISDN": "112233",
"FirstName": "Organization name",
"MiddleName": null,
"LastName": null
}

Parameters contained in a b2b_transaction_received webhook;

ParameterTypeDescription
TransactionTypeStringThe type of transaction (Organization To Organization Transfer in this instance)
TransIDStringThe transaction reference.
TransTimeStringThe timestamp in the format YYYYMMDDhhmmss of when the transaction occurred.
TransAmountFloatThe amount of the transaction
BusinessShortCodeStringThe till number to which the payment was made to
BillRefNumberStringEmpty
InvoiceNumberStringEmpty
OrgAccountBalanceStringEmpty
ThirdPartyTransIdStringEmpty
MSISDNStringTill number or paybill number that sent the payment
FirstNameStringOrganization name for till or paybill that sent payment
MiddleNameStringEmpty
LastNameStringEmpty

Buygoods Transaction Reversed​

POST https://www.your-application.com/payments/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "buygoods_transaction_reversed",
"id": "98adf21e-5721-476a-8643-609b4a6513a2",
"created_at": "2020-10-29T08:06:49+03:00",
"event": {
"type": "Buygoods Transaction",
"resource": {
"id": "86345adf21e-5721-476a-8643-609b4a863",
"amount": "233",
"status": "Reversed",
"system": "Lipa Na Mpesa",
"currency": "KES",
"reference": "OJM6Q1W84K",
"till_number": "000000",
"origination_time": "2020-10-29T08:06:49+03:00",
"sender_last_name": "Doe",
"sender_first_name": "Jane",
"sender_middle_name": "",
"sender_phone_number": "+254999999999"
}
},
"_links": {
"self": "https://sandbox.kopokopo.com/webhook_events/98adf21e-5721-476a-8643-609b4a6513a2",
"resource": "https://sandbox.kopokopo.com/financial_transaction/86345adf21e-5721-476a-8643-609b4a863"
}
}

Notifies your application when a Buygoods Transaction has been reversed

Buygoods Transaction Reversed Webhook Parameters (JSON)​

Parameters contained in a buygoods_transaction_reversed webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. buygoods_transaction_reversed in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Buygoods Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (Buygoods Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a Buygoods Transaction

Resource (Buygoods Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe mpesa reference
statusStringThe status of the transaction
origination_timeStringThe transaction timestamp
sender_phone_numberStringThe phone number that sent the payment
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number to which the payment was made
systemStringThe mobile money system
sender_first_nameStringFirst name of payer
sender_middle_nameStringMiddle name of payer
sender_last_nameStringLast name of payer

B2B Transaction Reversed​

POST https://www.your-application.com/payments/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "b2b_transaction_reversed",
"id": "98adf21e-5721-476a-8643-609b4a6513a2",
"created_at": "2020-10-29T08:06:49+03:00",
"event": {
"type": "External Till To Till Reversal Transaction",
"resource": {
"id": "86345adf21e-5721-476a-8643-609b4a863",
"reference": "OJM6Q1W84K",
"origination_time": "2020-10-29T08:06:49+03:00",
"sending_till": "Sending till",
"amount": "233",
"currency": "KES",
"till_number": "000000",
"system": "M-PESA",
"status": "Reversed"
}
},
"_links": {
"self": "https://sandbox.kopokopo.com/webhook_events/98adf21e-5721-476a-8643-609b4a6513a2",
"resource": "https://sandbox.kopokopo.com/financial_transaction/86345adf21e-5721-476a-8643-609b4a863"
}
}

Notifies your application when a B2B Transaction has been reversed

B2B Transaction Reversed Webhook Parameters (JSON)​

Parameters contained in a b2b_transaction_reversed webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. b2b_transaction_reversed in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Buygoods Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (External Till To Till Reversal Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a B2B Transaction Reversal

Resource (Buygoods Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe mpesa reference
statusStringThe status of the transaction
origination_timeStringThe transaction timestamp
sending_tillStringThe till number that sent the payment
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number to which the payment was made
systemStringThe mobile money system

Settlement Transfer Completed​

POST https://www.your-application.com/settlement_transfers/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "settlement_transfer_completed",
"id": "052b7b2a-745b-4ca1-866b-b92d4a1418c3",
"created_at": "2021-01-27T11:00:08+03:00",
"event": {
"type": "Settlement Transfer",
"resource": {
"id": "270b7b2a-745b-6735752-b92d4a141847-5d33",
"amount": "49452.0",
"status": "Transferred",
"currency": "KES",
"destination": {
"type": "Bank Account",
"resource": {
"reference": "34a273d1-fedc-4610-8ab6-a1ba4828f317",
"account_name": "Test Account",
"account_number": "1234",
"bank_branch_ref": "ea2e79f7-35a1-486e-9e18-fe06589a9d7d",
"settlement_method": "EFT"
}
},
"disbursements": [
{
"amount": "24452.0",
"status": "Transferred",
"origination_time": "2021-01-27T10:57:58.623+03:00",
"transaction_reference": null
},
{
"amount": "25000.0",
"status": "Transferred",
"origination_time": "2021-01-27T10:57:58.627+03:00",
"transaction_reference": null
}
],
"origination_time": "2021-01-27T10:57:58.444+03:00"
}
},
"_links": {
"self": "https://sandbox.kopokopo.com/webhook_events/052b7b2a-745b-4ca1-866b-b92d4a1418c3",
"resource": "https://sandbox.kopokopo.com/transfer_batch/270b7b2a-745b-6735752-b92d4a141847-5d33"
}
}

Settlement Transfer Completed Webhook Parameters (JSON)​

Parameters contained in a settlement_transfer_completed webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. settlement_transfer_completed in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Transfer Batch resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (Settlement Transfer)
resourceJSONThe resource corresponding to the event. In this case this is a Settlement Transfer

Resource (Buygoods Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
statusStringThe status of the transaction
amountFloatThe total amount of the transaction
currencyStringCurrency
destinationJSONThe destination of the settlement transfer
disbursementsJSONThese are the disbursements in that particular transfer batch

Destination JSON

ParameterTypeDescription
typeStringThe destination type
resourceJSONThe destination resource

Destination Resource (Mobile Wallet) JSON​

ParameterTypeDescription
referenceStringThe destination reference
first_nameStringFirst name of the recipient
last_nameStringLast name of recipient
emailStringEmail of recipient
phone_numberStringPhone number
networkStringThe mobile network to which the phone number belongs

Destination Resource (Bank Account) JSON​

ParameterTypeDescription
referenceStringThe destination reference
account_nameStringThe name as indicated on the bank account
bank_branch_refStringAn identifier identifying the destination bank branch
account_numberStringThe bank account number. Details on bank account number validation rules are here
settlement_methodStringEFT or RTS

Disbursements JSON(Could be multiple)

ParameterTypeDescription
statusStringThe status of the disbursement
amountStringThe amount of the disbursement
origination_timeStringTimestamp of when the transaction took place
transaction_referenceStringThe reference from the transaction. i.e mpesa reference It is null for eft transactions

Card Transaction Received​

POST https://www.your-application.com/customers/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "card_transaction_received",
"id": "4b981325-abf8-4f6e-ba2c-f1bf682687ca",
"created_at": "2025-06-19T15:18:03+03:00",
"event": {
"type": "Card Transaction",
"resource": {
"id": "00f5311d-8b93-433f-987e-08278a64e1a9",
"amount": "1000.0",
"status": "Received",
"system": "LittlePay",
"settled": false,
"currency": "KES",
"reference": "PENDINGCARD-1750335484",
"till_number": "7600314301",
"origination_time": "2025-06-19T15:18:03+03:00",
"customer_cc_number": "450875XXXXXX1019"
}
},
"_links": {
"self": "https://api.kopokopo.com/webhook_events/4b981325-abf8-4f6e-ba2c-f1bf682687ca",
"resource": "https://api.kopokopo.com/financial_transaction/00f5311d-8b93-433f-987e-08278a64e1a9"
}
}

Notifies your application when a Card Transaction has been received.

Card Transaction Received Webhook Parameters (JSON)​

Parameters contained in a card_transaction_received webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. card_transaction_received in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Card Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (Card Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a Card Transaction

Resource (Card Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe card transaction reference
statusStringThe status of the transaction
origination_timeStringThe transaction timestamp
customer_cc_numberStringThe customer's card number that sent the payment
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number/terminal to which the payment was made
systemStringThe card system
settledStringFlag indicating whether or not the card payment was settled
warning

Processing of card_transaction_received webhooks are to be integrated into K2Connect SDKs in the near future.

Card Transaction Voided​

POST https://www.your-application.com/customers/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "card_transaction_voided",
"id": "4b981325-abf8-4f6e-ba2c-f1bf682687ca",
"created_at": "2025-06-19T15:18:03+03:00",
"event": {
"type": "Card Void Transaction",
"resource": {
"id": "00f5311d-8b93-433f-987e-08278a64e1a9",
"amount": "1000.0",
"status": "Complete",
"system": "LittlePay",
"currency": "KES",
"reference": "PENDINGCARD-1750335484",
"till_number": "7600314301",
"origination_time": "2025-06-19T15:18:03+03:00",
"customer_cc_number": "450875XXXXXX1019"
}
},
"_links": {
"self": "https://api.kopokopo.com/webhook_events/4b981325-abf8-4f6e-ba2c-f1bf682687ca",
"resource": "https://api.kopokopo.com/financial_transaction/00f5311d-8b93-433f-987e-08278a64e1a9"
}
}

Notifies your application when a Card Transaction has been voided.

Card Void Transaction Webhook Parameters (JSON)​

Parameters contained in a card_transaction_voided webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. card_transaction_voided in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Card Void Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (Card Void Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a Card Void Transaction

Resource (Card Void Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe card transaction reference
statusStringThe status of the transaction
origination_timeStringThe transaction timestamp
customer_cc_numberStringThe customer's card number that sent the original payment
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number/terminal to which the original payment was made
systemStringThe card system
warning

Processing of card_transaction_voided webhooks are to be integrated into K2Connect SDKs in the near future.

Card Transaction Reversed​

POST https://www.your-application.com/customers/webhook
Content-Type: application/json
User-Agent: < product >/< product-version > < comment >
X-KopoKopo-Signature: a5d74a17a55554edc4e9999c59e460c61aa7f81a
{
"topic": "card_transaction_reversed",
"id": "4b981325-abf8-4f6e-ba2c-f1bf682687ca",
"created_at": "2025-06-19T15:18:03+03:00",
"event": {
"type": "Card Reversal Transaction",
"resource": {
"id": "00f5311d-8b93-433f-987e-08278a64e1a9",
"amount": "1000.0",
"status": "Complete",
"system": "LittlePay",
"currency": "KES",
"reference": "PENDINGCARD-1750335484",
"till_number": "7600314301",
"origination_time": "2025-06-19T15:18:03+03:00",
"customer_cc_number": "450875XXXXXX1019"
}
},
"_links": {
"self": "https://api.kopokopo.com/webhook_events/4b981325-abf8-4f6e-ba2c-f1bf682687ca",
"resource": "https://api.kopokopo.com/financial_transaction/00f5311d-8b93-433f-987e-08278a64e1a9"
}
}

Notifies your application when a Card Transaction has been reversed.

Card Reversal Transaction Webhook Parameters (JSON)​

Parameters contained in a card_transaction_reversed webhook;

ParameterTypeDescription
idStringThe ID of the Webhook Event
topicStringThe topic of the webhook. card_transaction_reversed in this instance.
created_atStringThe timestamp of when the webhook event was created.
_linksJSONA JSON object containing links to the Webhook Event and the corresponding Card Reversal Transaction resource

Event JSON

ParameterTypeDescription
typeStringThe type of transaction (Card Reversal Transaction)
resourceJSONThe resource corresponding to the event. In this case this is a Card Reversal Transaction

Resource (Card Reversal Transaction) JSON

ParameterTypeDescription
idStringThe api reference of the transaction
referenceStringThe card transaction reference
statusStringThe status of the transaction
origination_timeStringThe transaction timestamp
customer_cc_numberStringThe customer's card number that had sent the original payment
amountFloatThe amount of the transaction
currencyStringCurrency
till_numberStringThe till number/terminal to which the original payment was made
systemStringThe card system
warning

Processing of card_transaction_reversed webhooks are to be integrated into K2Connect SDKs in the near future.