# Introduction to Online Payment IPN Notifications

## What Are Notifications?

Notifications (Instant Payment Notification), commonly called **Webhooks**, are the fastest and most secure
way for automatic communication between SimPay and your system. Instead of continuously, manually polling our API
to check whether the customer has paid for the order (so-called polling), the SimPay system proactively informs you as soon as
any change occurs in the status of a transaction, refund, subscription, or BLIK alias.

## How Do We Send Notifications?

Notifications are sent as asynchronous HTTP requests with the `POST` method directly to your IPN URL,
which you previously configure in the SimPay Partner Panel.
All event data is sent in the request body in the universal **JSON** format.

## What Do We Expect in Response?

When we send you a notification, we expect immediate confirmation that it has been received.

Your server must return a response with a status code from the **HTTP 2XX** group.
When returning code 200, you must additionally return `OK` in the body.
When returning codes 202 or 204, you do not need to return any content in the body.

Any other response (e.g., error codes `4xx`, `5xx`) or no response (timeout exceeded) will be
treated by us as a delivery failure.

Best Practice
Return status `200 OK` immediately after receiving and authorizing the notification. If handling
the order (e.g., generating an invoice, communicating with the warehouse) takes more time, pass this task to a background queue
in your application. This way, you will avoid situations where SimPay terminates the connection due to waiting too long
for a response.

## How Many Times and How Often Do We Retry?

Network failures or temporary server downtimes are normal. If your endpoint does not return a valid
`2XX` status, our system does not abandon the notification right away. It will be queued and sent again.

*In case of an error, subsequent delivery attempts of the IPN notification are usually carried out according to the following
schedule:*

1. Retries 1-11: **every minute**
2. Retries 12-16: **every 5 minutes**
3. Retries 17-21: **every 30 minutes**
4. Retries 22-30: **every hour**


If after exhausting all attempts your server still does not respond correctly, the notification will be permanently marked
as undelivered.

## What's Next? Take Care of Structure and Security

To properly integrate IPN notification reception, you need to know what data to expect and how to make sure
that the request 100% comes from SimPay, and not from a fraudster.

We have prepared three dedicated sections for this:

👉 **[Check: IPN Notification Structure](/notifications/payment/structure)** – find out exactly what the JSON we send looks like
and what objects it contains.

👉 **[Check: Signature Verification and Security](/notifications/payment/signature)** – see how to easily
verify the cryptographic signature attached to each notification to protect your system from attacks.

👉 **[Check: IP Address Verification](/notifications/payment/ip-validation)** – validate the IP address from which the
IPN arrives to avoid fraud and unauthorized access attempts to your IPN.