Creates a new webhook for the given account. Webhook will trigger for the declared events and send notifications to the provided URL.
Webhook created successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
The webhook configuration already exists
{- "event_types": [
- "payment.request.state-change.submitted",
- "payment.request.state-change.authorized",
- "payment.request.state-change.expired"
], - "event_version": "v1",
- "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "status": "ENABLED"
}
{- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "event_types": [
- "payment.request.state-change.submitted",
- "payment.request.state-change.authorized",
- "payment.request.state-change.expired"
], - "event_version": "v1",
- "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "created_at": "2024-01-01T12:00:00Z",
- "status": "ENABLED"
}
Retrieves all webhooks for the given account.
Webhooks returned successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
{- "webhooks": [
- {
- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "event_types": [
- "payment.request.state-change.submitted",
- "payment.request.state-change.authorized",
- "payment.request.state-change.expired"
], - "event_version": "v1",
- "signing_key_id": "krn:partner:global:notification:signing-key:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "status": "ENABLED",
- "created_at": "2021-01-01T00:00:00Z"
}
]
}
Retrieves details of a specific webhook for the given account.
Webhook returned successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
{- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "event_types": [
- "payment.request.state-change.submitted",
- "payment.request.state-change.authorized",
- "payment.request.state-change.expired"
], - "event_version": "v1",
- "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "created_at": "2024-01-01T12:00:00Z",
- "status": "ENABLED"
}
Updates a specific webhook for the given account. Webhook will remain intact for the fields not mentioned in the request.
Webhook updated successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
{- "event_types": [
- "payment.request.state-change.submitted",
- "payment.request.state-change.authorized",
- "payment.request.state-change.expired"
], - "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "status": "ENABLED"
}
{- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "event_types": [
- "payment.request.state-change.submitted",
- "payment.request.state-change.authorized",
- "payment.request.state-change.expired"
], - "event_version": "v1",
- "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "created_at": "2024-01-01T12:00:00Z",
- "status": "ENABLED"
}
Deletes a specific webhook for the given account.
Webhook deleted successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
The request contained a validation error.
{- "error_id": "4e2f6b5e-df81-40e6-83d5-f34f68d4e2f4",
- "error_type": "INPUT_ERROR",
- "error_code": "VALIDATION_ERROR",
- "errors": [
- {
- "parameter": "webhook_id",
- "reason": "Webhook ID is required",
}
]
}
Simulates a webhook notification by using webhook id for given event type and event version.
Webhook notification simulated successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
{- "event_type": "payment.request.state-change.authorized",
- "event_version": "v1"
}
{- "metadata": {
- "event_type": "payment.request.state-change.authorized",
- "event_id": "d9f9b1a0-5b1a-4b0e-9b0a-9e9b1a0d5b1a",
- "event_version": "v1",
- "occurred_at": "2024-01-01T12:00:00Z",
- "correlation_id": "2d1557e8-17c3-466c-924a-bbc3e91c2a02",
- "account_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "product_instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "live": false
}, - "payload": {
- "payment_request_id": "krn:payment:eu1:request:552603c0-fe8b-4ab1-aacb-41d55fafbdb4",
- "payment_reference": "partner-payref-1234",
- "merchant_reference": "order-5678",
- "state": "AUTHORIZED",
- "previous_state": "PENDING_CONFIRMATION",
- "payment_transaction_id": "krn:payment:eu1:transaction:6debe89e-98c0-486e-b7a5-08a4f6df94b0"
}
}
Creates a new signing key for the given account. Webhook notifications can be verified with the signing key generated.
Signing key created successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Operation forbidden
{- "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "signing_key": "b040893b9e02f6445b205ae2102e3e9e1d0aa9035e61cdebde39b5c230a7bc5a",
- "created_at": "2024-01-01T12:00:00Z"
}
Retrieves all signing keys for the given account.
Signing keys returned successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
{- "signing_keys": [
- {
- "signing_key_id": "krn:partner:global:notification:signing-key:120e5b7e-dee8-43ca-9858-dca726e639b5",
- "in_use": true,
- "created_at": "2021-01-01T00:00:00Z"
}
]
}
Retrieves details of a specific signing key for the given account.
Signing key returned successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
{- "signing_key_id": "krn:partner:global:notification:signing-key:49bcd37b-79a7-4e6e-b067-2903b45fef42",
- "in_use": false,
- "created_at": "2024-01-01T12:00:00Z"
}
Deletes a specific signing key for the given account.
Signing key deleted successfully.
Bad Request, there was an error in the input of the request.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Conflict, there was a conflict in using the resource. Idempotency violation or concurrent updates to a resource occurred.
The request contained a validation error.
{- "error_id": "4e2f6b5e-df81-40e6-83d5-f34f68d4e2f4",
- "error_type": "INPUT_ERROR",
- "error_code": "VALIDATION_ERROR",
- "errors": [
- {
- "parameter": "signing_key_id",
- "reason": "Signing key ID is required",
}
]
}