Skip to main content

Callback Notification

Ninjapay provides payment status notifications using callbacks. Callback URL is defined during payment initialization.

Callback uses JSON format and HTTP POST method.

POST /{provided_callback_url}

{
"id": "cb27456c-d6ee-4de9-b6eb-9970c485aa64",
"orderId": "ord_123456",
"amount": {
"amount": "10000",
"currency": "EUR"
},
"receivedAmount": {
"amount": "10000",
"currency": "EUR"
},
"status": "approved",
"createdAt": "2024-02-28T17:27:32+00:00"
}

warning

Ninjapay will perform 3 attempts to notify callback URL with 10 minutes interval.