Payment webhook
Receive signed payment event notifications.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Example
3f62fc97-907a-4212-af02-8c30f1ea1927Unique identifier for this webhook delivery
Example
1674087231Unix timestamp when the webhook was sent
Example
v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4= v1a,hnO3f9T8Ytu9HwrXslvumlUpqtNVqkhqw/enGzPCXe5BdqzCInXqYXFymVJaA7AZdpXwVLPo3mNl8EM+m7TBAg==Signatures used to verify the webhook
Request Bodyrequired
Section titled “Request Bodyrequired”object
Unique identifier for the webhook event
Example
3f62fc97-907a-4212-af02-8c30f1ea1927Timestamp when the webhook was generated
Example
2025-04-24T13:45:10ZType of notification - original webhook or a retry
The data sent when the payload type field has the
value payment_callback or payment_callback_retry.
object
Key of the content associated with this payment
Example
1691677075a9813e08f783496382b0bff743ec34aeDate when the payment was due
Example
2025-05-01Date when the payment was made
Example
2025-04-24Type of destination account
Destination account number
Example
12345-6789Type of remittance information
Reference string used for the payment
Example
426523791Title of the payment option if multiple options were available
Example
Full paymentIdentifier of the selected payment option
Example
option_1Type of payment method used
The payment event that triggered this webhook
Time when the payment event occurred
Example
2025-04-24T13:44:58ZSwish alias used for the payment, if applicable
Example
1234567890Swish payment reference, if applicable
Example
652ED6A2BCDE4BA8AD11D7334E9567B7Payment amount as a string
Example
123.50Currency code for the payment
Example
SEKThe data sent when the payload type field has the value
invoice_declined or invoice_declined_retry. In all
cases below where some information is specified as
coming from the invoice, it more precisely comes from
the first fixed option of the invoice.
object
The Kivra key for the invoice that was declined.
Example
1708693835ca2a6459d02d4c7fb50b19acaffcb624Due date from the invoice.
Example
2025-05-01Type of remittance information.
Reference string from the invoice.
Example
426523791Time when the declining event occurred.
Example
2025-04-24T13:44:58ZThe type of the content that was declined.
Responses
Section titled “Responses”Return a 200 status to acknowledge receipt of the webhook. Any other response will cause Kivra to retry the delivery, which will happen up to 10 times with increasing intervals.