Skip to main content

Event types

View as Markdown (opens in a new tab)
Install AI tools

Give your assistant up-to-date guidance for our APIs, with our plugin or without it.

The plugin is still under development. See the AI tools page for details.

Run both commands, in order.

claude plugin marketplace add vippsas/agent-toolkit
claude plugin install vipps-developer@agent-toolkit

For troubleshooting, see the full instructions.

ePayment API event types​

We support up to 30 webhook registrations per event per MSN. For more details, see webhook limits.

NameEvent Type
Createdepayments.payment.created.v1
Abortedepayments.payment.aborted.v1
Expiredepayments.payment.expired.v1
Cancelledepayments.payment.cancelled.v1
Capturedepayments.payment.captured.v1
Refundedepayments.payment.refunded.v1
Authorizedepayments.payment.authorized.v1
Terminatedepayments.payment.terminated.v1

The payload format is:

msn
required
string (MSNType) [ 4 .. 10 ] characters ^[0-9]{4,10}$

The merchant serial number (MSN) for the sales unit.

reference
required
string (ReferenceType) [ 8 .. 64 ] characters ^[a-zA-Z0-9-]{8,64}$

The reference is the unique identifier for the payment, specified when initiating the payment. The reference must be unique for the sales unit (MSN), but is not globally unique, so several MSNs may use the same reference. See the recommendations.

pspReference
required
string (PspReference)

Each payment operation (i.e., create, capture, refund, cancel) will have a unique pspReference, defined by Vipps MobilePay. One of:

  • The Get event log response contains each event and its unique pspReference value.
  • The Get payment response contains the PSP-supplied reference when available; otherwise, the payment creation reference.
  • The Adjustment response, returned by Cancel, Capture, and Refund requests, contains the pspReference for the payment creation event.
name
required
string (PaymentEventName)
Enum: "CREATED" "ABORTED" "EXPIRED" "CANCELLED" "CAPTURED" "REFUNDED" "AUTHORIZED" "TERMINATED"

The name of the payment event. Possible values are:

  • CREATED
  • AUTHORIZED
  • CAPTURED
  • CANCELLED
  • REFUNDED
  • ABORTED
  • EXPIRED
  • TERMINATED
required
object (Amount)

Amount object, containing a value and a currency.

timestamp
required
string <date-time>
idempotencyKey
string or null

A unique key that prevents duplicate requests from being processed more than once. See idempotency

success
required
boolean

The outcome of this payment operation: true means that the operation was successful.

object (Shipping Details)

Shipping details for the order.

object (User Details)

User details for the payment.

sub
string

If profile.scope was requested in createPayment, this value will be populated once state is AUTHORIZED. This can be used towards the Userinfo endpoint to fetch required user data.

captureGuaranteedUntil
string <date-time>

The merchant is guaranteed to be able to capture the payment until this timestamp.

networkTransactionReference
string

The card network transaction reference from the successful authorization. For CARD_PASSTHROUGH payments this is the value the PSP returned in its card callback response. Present on the AUTHORIZED event only, and omitted when no reference is available.

For more details, see ePayment webhooks.

Login API event types​

We support up to 30 webhook registrations per event per MSN.

NameEvent Type
Pinglogin.merchant-initiated.ping.v1

The payload will contain:

NameTypeDescription
auth_req_idStringThe auth_req_id that identifies the login.

For more details, see Login webhooks.

QR API event types​

We support up to one webhook registration per event per MSN. For more about these limits, see webhook limits.

NameEvent Type
CheckedInuser.checked-in.v1

The payload format is:

NameTypeDescription
customerTokenBase64 stringA reference to the customer. Should be used when initiating a payment through the ePayment API. Token is valid for 15 minutes.
merchantQrIdstringThe ID of the QR code that has been scanned, which is defined by the merchant when the QR was created.
msnstringMerchant serial number. A unique ID of the sales unit to which the scanned QR belongs.
initiatedAtUTC Timestamp in ISO 8601 formatThe timestamp of when the customer scanned the QR.

For more details, see QR webhooks.

Recurring API event types​

We support up to 30 webhook registrations per event type per MSN. For more about these limits, see webhook limits.

Agreement webhook event types​

NameEvent Type
Agreement acceptedrecurring.agreement-activated.v1
Agreement rejectedrecurring.agreement-rejected.v1
Agreement stoppedrecurring.agreement-stopped.v1
Agreement expiredrecurring.agreement-expired.v1

Payload properties may include:

Field nameTypeDescriptionPossible values
agreementIdstringID of an agreementagr_kFW4chk
agreementUUIDUUIDID of an agreement82ce990f-d08a-448c-bd26-ee6be8418d06
agreementExternalIdnullable stringMerchant-provided external ID of agreementExtId123
eventTypeenumIndicates what has happened to an agreementValues provided in a table above
occurredISO 8601 UTC dateWhen change has occurred2023-10-10T13:30:36.0690000Z
actornullable enumIndicates who has initiated action. Applicable only for recurring.agreement-stopped.v1 webhook.MERCHANT, USER, ADMIN
msnstringMerchant Serial Number (MSN)119145

Charge webhook event types​

NameEvent Type
Charge reservedrecurring.charge-reserved.v1
Charge capturedrecurring.charge-captured.v1
Charge cancelledrecurring.charge-canceled.v1
Charge refundedrecurring.charge-refunded.v1
Charge failedrecurring.charge-failed.v1
Charge failed on creationrecurring.charge-creation-failed.v1

Payload properties may include:

Field nameTypeDescriptionPossible values
agreementIdstringID of an agreementagr_kFW4chk
chargeIdstringID of a charge82ce990f-d08a-448c-bd26-ee6be8418d06
chargeExternalIdnullable stringMerchant-provided external ID of chargeExtId123
transactionIdnullable stringID for a specific payment operation on a charge2893200077
amountnumberAmount of charge in ΓΈre (NOK, DKK) or cents (EUR)300
chargeTypeenumIndicates type of chargeRECURRING, INITIAL, UNSCHEDULED
eventTypeenumIndicates what has happened to a chargeValues provided in a table above
currencyenumCurrency of chargeDKK, NOK, EUR
occurredISO 8601 UTC dateWhen change has occurred2026-01-02T10:36:43.4880000Z
amountCapturednumberAmount of payment that was captured100
amountCancelednumberAmount of charge that was canceled200
amountRefundednumberAmount of charge that was refunded100
failureCodenullable numberCode of an error during async creationListed below
failureText (deprecated)nullable stringExplanation of an error during async creationListed below
failureReasonnullable stringExplanation of an errorListed below
msnstringMerchant Serial Number (MSN)119145

Possible failureCode values with explanation. This field is only present if the charge has failed async validation and was created using the multiple charge creation endpoint: POST:/recurring/v3/agreements/charges.

Failure codeExplanation
50003Charge is requested for non-active agreement
50004Trying to create charge with same idempotency key more than once
50005Charge is requested for agreement that does not exist
50006Unspecified exception during charge creation
70001Charge amount is 5 times higher than fixed amount agreement's amount
70003Trying to create charge of type not allowed by merchant
70004Due date is too far in the future
70005Due date is too soon

Possible failureReason values

Failure reasonExplanation
user_action_requiredThe user has to fix something on their agreement, e.g. their payment source
charge_amount_too_highCharge amount exceeds the user's allowed max amount
technical_errorSomething went wrong
non_technical_errorE.g. user no longer exists

For more details, see: Recurring webhooks.

Donations API event types​

We support up to 30 webhook registrations per event per merchant. Partners can register donations.* webhooks too, with an independent partner-level quota. See webhook limits and Partner webhooks.

Event typeDescription
donations.agreement.started.v1Donation agreement has been started
donations.agreement.stopped.v1Donation agreement has been stopped
donations.agreement.withdrawal-day-changed.v1Donation agreement withdrawal day has been changed
donations.agreement.amount-changed.v1Donation agreement amount has been changed

Started event payload​

When a donation agreement is started, you will receive the following payload:

Field nameTypeDescriptionExample
agreementIdstringID of the donation agreement2518f497-bfad-43a6-8914-fd0168a6c221
startedAtISO 8601 UTC dateWhen the agreement was started2026-01-31T17:26:50.8789251+00:00

Example payload:

{
"agreementId": "2518f497-bfad-43a6-8914-fd0168a6c221",
"startedAt": "2026-01-31T17:26:50.8789251+00:00"
}

Stopped event payload​

When a donation agreement is stopped, you will receive the following payload:

Field nameTypeDescriptionExample
agreementIdstringID of the donation agreement2518f497-bfad-43a6-8914-fd0168a6c221
stoppedAtISO 8601 UTC dateWhen the agreement was stopped2026-01-31T17:26:50.8789251+00:00

Example payload:

{
"agreementId": "2518f497-bfad-43a6-8914-fd0168a6c221",
"stoppedAt": "2026-01-31T17:26:50.8789251+00:00"
}

Withdrawal day changed event payload​

When the withdrawal day of a donation agreement is changed, you will receive the following payload:

Field nameTypeDescriptionExample
agreementIdstringID of the donation agreement34580d79-0628-4ed5-bb0a-75a6f2a6fae1
changedAtISO 8601 UTC dateWhen the withdrawal day was changed2026-02-15T17:00:22.1234567Z
withdrawalDayintegerNew withdrawal day (1–28)12
nextPeriodKeystring (optional)Billing period key for the next withdrawal. Format: YYYY-MM (e.g. March 2026 is 2026-03). Omitted or null when the next billing period is not yet determined (e.g. before the first schedule has been initialized).2026-03

Example payload (when next period is known):

{
"agreementId": "34580d79-0628-4ed5-bb0a-75a6f2a6fae1",
"changedAt": "2026-02-15T17:00:22.1234567Z",
"withdrawalDay": 12,
"nextPeriodKey": "2026-03"
}

When the next billing period is not yet determined, nextPeriodKey may be omitted or null.

Amount changed event payload​

When the amount of a donation agreement is changed, you will receive the following payload:

Field nameTypeDescriptionExample
agreementIdstringID of the donation agreement34580d79-0628-4ed5-bb0a-75a6f2a6fae1
changedAtISO 8601 UTC dateWhen the amount was changed2026-02-15T17:00:22.1234567Z
amountobjectNew amountSee below
amount.valueintegerAmount in minor units (e.g. ΓΈre/cents)20000
amount.currencystringISO 4217 currency codeDKK
requestIdstring (optional)Your requestId from the amount change request that the donor approved. Omitted when the donor changed the amount themselves.crm-upgrade-42

Example payload:

{
"agreementId": "34580d79-0628-4ed5-bb0a-75a6f2a6fae1",
"changedAt": "2026-02-15T17:00:22.1234567Z",
"amount": {
"value": 20000,
"currency": "DKK"
}
}

Example payload, if the origin of the change is a change request:

{
"agreementId": "34580d79-0628-4ed5-bb0a-75a6f2a6fae1",
"changedAt": "2026-02-15T17:00:22.1234567Z",
"amount": {
"value": 20000,
"currency": "DKK"
},
"requestId": "crm-upgrade-42"
}

For more details, see Donations webhooks.

Wallet API event types​

Wallet emits the following events when a user adds or removes a loyalty item:

NameEvent typePayload eventType
Wallet item addedwallet.item.added.v1Added
Wallet item removedwallet.item.removed.v1Removed

Subscribe to both events in one webhook registration to receive additions and removals at the same callback URL across classes and objects:

{
"url": "https://example.com/webhooks/wallet",
"events": ["wallet.item.added.v1", "wallet.item.removed.v1"]
}

Delivery currently covers loyalty items. Wallet stores the sales unit from the Merchant-Serial-Number header when the class is created and routes events to webhook registrations for that sales unit, across its classes and objects. Classes without a stored MSN do not emit events. Including a class only in a signed Wallet JWT does not assign an MSN.

Both events use the same payload structure. Example payload for an added item:

{
"classId": "issuer.class",
"objectId": "issuer.object",
"expTimeMillis": 1794908535000,
"eventType": "Added",
"eventId": "e03fc4ef-7d6c-4cca-9129-3e607972b88b",
"occurredAt": "2026-11-10T09:42:15+00:00"
}
FieldTypeDescription
classIdStringFully qualified class ID in issuerId.classId format.
objectIdStringFully qualified object ID in issuerId.objectId format.
expTimeMillisIntegerMessage expiration time in milliseconds since the Unix epoch.
eventTypeStringAdded when the user adds an item to their wallet; Removed when they remove it.
eventIdStringUnique event identifier used to detect duplicate deliveries.
occurredAtStringUTC date-time in ISO 8601 format when the Wallet backend recorded the addition or removal.

Use eventId to deduplicate deliveries and discard messages after expTimeMillis. The expiration applies to the message, not the wallet item, and is seven days after occurredAt. The webhook service retries delivery for up to seven days after receiving the event. Wallet publishes after the item change is saved. If enqueueing fails, the item change is not rolled back, but the event can be lost. Retrying an add for an item already in that wallet does not emit another added event. Use occurredAt to recognize older events that arrive later. Delivery retries preserve both eventId and occurredAt. The timestamp helps compare events but does not guarantee delivery order.