Notifications are sent as a JSON object via POST and have the following form:
{
"payment": {
"id": "53a97f55-81af-46fa-921b-0a6eaf184c30",
"title": "43",
"amount": 100,
"status": "settled",
"created": 1689938459,
"orderId": "43",
"currency": "PLN",
"modified": 1689938483,
"serviceId": "3283bb82-1203-4064-86ad-27868f985769",
"notificationUrl": "https://domain.com/",
"amountPaid": 100,
"amountRefunded": 0,
"amountSubmittedRefund": 0,
"transactions": [
{
"id": "ab163b2e-0cf5-4478-a673-a1afb22c9535",
"type": "sale",
"status": "settled",
"source": "web",
"created": 1689938476,
"modified": 1689938483,
"notificationUrl": "https://domain.com/",
"serviceId": "3283bb82-1203-4064-86ad-27868f985769",
"amount": 100,
"currency": "PLN",
"title": "43",
"orderId": "43",
"paymentMethod": "blik",
"paymentMethodChannel": "blik"
}
],
"notifyTransactionData": {
"id": "ab163b2e-0cf5-4478-a673-a1afb22c9535",
"type": "sale"
}
}
}
A notification may consist of the following objects:
payment- contains information about the created payment link,transaction- contains information about transactions if they were created for a given payment link,notifyTransactionData- specifies which exact transaction the notification refers to. This object is helpful when there is more than one payment method for a single payment.