Webhooks API (v1)
Download OpenAPI specification:Download
The Webhooks API enables you to get HTTP notifications for subscribed events. See the Webhooks API guide for more details.
Get all registered webhooks
Authorizations:
header Parameters
Ocp-Apim-Subscription-Key required | string Example: da7d5b0e18a84aeda961c0c31b75c2a9 The subscription key |
Merchant-Serial-Number | string Example: 654321 The Merchant Serial Number (MSN) is a unique ID for the sale unit that this payment is made for. This is a required parameter if you are a partner making payments on behalf of a merchant. The partner must use the merchant's MSN (not the partner's MSN). This parameter is optional, and recommended, for regular Vipps merchants making payments for themselves. |
Vipps-System-Name | string <= 30 characters Example: woocommerce The name of the ecommerce solution. One word in lowercase letters is good. See HTTP headers. |
Vipps-System-Version | string <= 30 characters Example: 5.4.0 The version number of the ecommerce solution. See HTTP headers. |
Vipps-System-Plugin-Name | string <= 30 characters Example: vipps-woocommerce The name of the ecommerce plugin (if applicable). One word in lowercase letters is good. See HTTP headers. |
Vipps-System-Plugin-Version | string <= 30 characters Example: 1.2.1 The version number of the ecommerce plugin (if applicable). See HTTP headers. |
Responses
Response samples
- 200
- 400
{- "webhooks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "events": [
- "service.payment.captured.v1",
- "service.payment.created.v2"
]
}
]
}
Register webhook
Register a new webhook. There is a limit to the number of webhooks that can be registered per event, see the API guide for more information.
Authorizations:
header Parameters
Ocp-Apim-Subscription-Key required | |
Merchant-Serial-Number | string Example: 654321 The Merchant Serial Number (MSN) is a unique ID for the sale unit that this payment is made for. This is a required parameter if you are a partner making payments on behalf of a merchant. The partner must use the merchant's MSN (not the partner's MSN). This parameter is optional, and recommended, for regular Vipps merchants making payments for themselves. |
Vipps-System-Name | string <= 30 characters Example: woocommerce The name of the ecommerce solution. One word in lowercase letters is good. See HTTP headers. |
Vipps-System-Version | string <= 30 characters Example: 5.4.0 The version number of the ecommerce solution. See HTTP headers. |
Vipps-System-Plugin-Name | string <= 30 characters Example: vipps-woocommerce The name of the ecommerce plugin (if applicable). One word in lowercase letters is good. See HTTP headers. |
Vipps-System-Plugin-Version | string <= 30 characters Example: 1.2.1 The version number of the ecommerce plugin (if applicable). See HTTP headers. |
Request Body schema: application/jsonrequired
url required | string <uri> The URL that updates should be sent to.
Must be a valid, world-reachable URL.
The URL must use HTTPS.
The URL must respond with a 2XX HTTP status code, like |
events required | Array of strings See Webhooks API Events for details. |
Responses
Request samples
- Payload
{- "events": [
- "epayments.payment.captured.v1",
- "epayments.payment.created.v1"
]
}
Response samples
- 201
- 400
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "secret": "090a478d-37ff-4e77-970e-d457aeb26a3a"
}
Delete a webhook
Authorizations:
path Parameters
id required | string <uuid> |
header Parameters
Ocp-Apim-Subscription-Key required | string Example: da7d5b0e18a84aeda961c0c31b75c2a9 The subscription key |
Merchant-Serial-Number | string Example: 654321 The Merchant Serial Number (MSN) is a unique ID for the sale unit that this payment is made for. This is a required parameter if you are a partner making payments on behalf of a merchant. The partner must use the merchant's MSN (not the partner's MSN). This parameter is optional, and recommended, for regular Vipps merchants making payments for themselves. |
Vipps-System-Name | string <= 30 characters Example: woocommerce The name of the ecommerce solution. One word in lowercase letters is good. See HTTP headers. |
Vipps-System-Version | string <= 30 characters Example: 5.4.0 The version number of the ecommerce solution. See HTTP headers. |
Vipps-System-Plugin-Name | string <= 30 characters Example: vipps-woocommerce The name of the ecommerce plugin (if applicable). One word in lowercase letters is good. See HTTP headers. |
Vipps-System-Plugin-Version | string <= 30 characters Example: 1.2.1 The version number of the ecommerce plugin (if applicable). See HTTP headers. |
Responses
Response samples
- 400
{- "type": "00-bb841c551513e233de8a01472013fa9f-542c71e40916a6ce-00",
- "title": "Bad Request",
- "status": 400,
- "detail": "One or more validation errors occurred.",
- "instance": "/v1/webhooks",
- "traceId": "00-bb841c551513e233de8a01472013fa9f-542c71e40916a6ce-00",
- "extraDetails": [
- {
- "name": "url",
- "reason": "The property is required and cannot be null or empty."
}
]
}