All illustrated on this page is not officially from Nets-Nexi and should never be treated as such, but only a site for reference. All code and/or reference should only be treated and used as proof of concept and with you as responsible, if any code is determined used by you or other parties 😊
Nicolai's Test Environment
Create payment
Webhooks
  • Charge payment

    Refund payment

    Cancel payment

    Webhooks
    payment.cancel.created
  • Timestamp: 2026-05-29T11:43:58.0398+00:00
  • merchantId: 100037304
  • Event: payment.cancel.created
  • paymentId: 7b571afeddc34d8dbe7966d7a6e63d59
  • amount: 173331 EUR
  • surchargeAmount: 0
  • Webhook response:
    {
        "id": "95d07a0958f84f858096450fdfe0dce2",
        "merchantId": 100037304,
        "timestamp": "2026-05-29T11:43:58.0398+00:00",
        "event": "payment.cancel.created",
        "data": {
            "cancelId": "95d07a0958f84f858096450fdfe0dce2",
            "orderItems": [
                {
                    "grossTotalAmount": 68355,
                    "name": "Phone 1 - Best in test",
                    "netTotalAmount": 54684,
                    "quantity": 9,
                    "reference": "421244223",
                    "taxRate": 2500,
                    "taxAmount": 13671,
                    "unit": "stk",
                    "unitPrice": 6076
                },
                {
                    "grossTotalAmount": 63980,
                    "name": "Classic style - For when you need to switch off",
                    "netTotalAmount": 51184,
                    "quantity": 4,
                    "reference": "522331194",
                    "taxRate": 2500,
                    "taxAmount": 12796,
                    "unit": "stk",
                    "unitPrice": 12796
                },
                {
                    "grossTotalAmount": 39996,
                    "name": "A phone for... well prestige",
                    "netTotalAmount": 31997,
                    "quantity": 4,
                    "reference": "99999991",
                    "taxRate": 2500,
                    "taxAmount": 7999,
                    "unit": "stk",
                    "unitPrice": 7999
                },
                {
                    "grossTotalAmount": 1000,
                    "name": "Nets-Nexi shipping",
                    "netTotalAmount": 1000,
                    "quantity": 1,
                    "reference": "shipping",
                    "taxRate": 0,
                    "taxAmount": 0,
                    "unit": "stk",
                    "unitPrice": 1000
                }
            ],
            "amount": {
                "amount": 173331,
                "currency": "EUR"
            },
            "surchargeAmount": 0,
            "paymentId": "7b571afeddc34d8dbe7966d7a6e63d59"
        }
    }