Create a new credential
Credential created
Bad Request
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "description": "Test Client Credentials",
- "type": "CLIENT",
- "environment": "TEST"
}
{- "credential_id": "376e67bb-8171-4dba-b330-9130dd0798e4",
- "description": "Test Client Credentials",
- "type": "CLIENT",
- "environment": "TEST",
- "client_id": "klarna_test_client_cADfmmYgMtpcgVi9toAaPXeCktHS2TKS7UrWxvxtWdCVq3uLpQXZVSPZNWEcLACDpvHZVmCWeFVD44fygezrVNU4ta9jdAR4H3evwjCKTTaRAs2sQDHSpN2TMzWVwrVpoZPacgTTVhXiWrNsXp23aEvdiLi"
}
List all credentials associated with the current account
Credentials found
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "credentials": [
- {
- "credential_id": "376e67bb-8171-4dba-b330-9130dd0798e4",
- "description": "Test Client Credentials",
- "type": "CLIENT",
- "environment": "TEST",
- "client_id": "klarna_test_client_cADfmmYgMtpcgVi9toAaPXeCktHS2TKS7UrWxvxtWdCVq3uLpQXZVSPZNWEcLACDpvHZVmCWeFVD44fygezrVNU4ta9jdAR4H3evwjCKTTaRAs2sQDHSpN2TMzWVwrVpoZPacgTTVhXiWrNsXp23aEvdiLi"
}, - {
- "credential_id": "54d136f6-e224-4e89-9c99-a2c904b7adb2",
- "description": "Test API Credentials",
- "type": "API",
- "environment": "TEST"
}
]
}
Disable a Credential.
No Content
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "error_id": "1653c9db-454b-4222-8265-4c7ca209f630",
- "error_type": "ACCESS_ERROR",
- "error_code": "UNAUTHORIZED",
- "error_message": "The presented credentials failed authentication"
}
A Payment Distribution has a set of pre-defined profiles that can be used when handling Payment Products. An account onboarded to a Payment Product needs to have one Distribution Profile associated with it.
Fetches all payments distribution product profile, which can be selected to be used on a new Payment Product onboarding.
Payment Distribution Profiles retrieved
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
[- {
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "price_plan_id": "krn:partner:global:pricing:payments:price-plan:171080e7-2637-4675-a224-ec032723ebdf"
}
]
The onboard API allows the authenticated Account to create a fully functional account with associated business entity, product, websites etc.
Onboard a new merchant. This request creates all necessary entries to have a fully functional account for the merchant.
Merchant account created
Bad Request
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "account_reference": "M123786123412",
- "account_name": "John Doe Stakehouse",
- "account_owner": {
- "given_name": "John",
- "family_name": "Doe",
- "email": "john.doe@example.com",
- "phone": "+18445527621"
}, - "products": [
- {
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "type": "PAYMENT",
- "merchant_category_code": "5411"
}
],
}
{- "account_id": "krn:partner:global:account:live:LWT2XJSE",
- "account_reference": "M123786123412",
- "account_name": "Merchant ABC US",
- "state": "PARTIALLY_OPERATIONAL",
- "state_reason": "INITIAL_SETUP"
}
The webhook is triggered once the distribution partner's account state changes.
{- "metadata": {
- "event_type": "partner.account.state-change.operational",
- "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:account:live:2AIMNWR6IYZVD",
- "product_instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-abcd-4def-8a90-dca726e639b5",
- "live": true
}, - "payload": {
- "account_reference": "M123786123412",
- "state": "OPERATIONAL",
- "previous_state": "PARTIALLY_OPERATIONAL"
}
}
The Accounts API allows the authenticated Partner to create, read, manage the different Accounts it has access to.
Read all details from a Account which the acting Account has read access on.
Optionally, include additional sub-resources in the response by using the expand
query parameter. The expand
parameter accepts a comma-separated list of supported sub-resource names. Each specified sub-resource will be included in the response if available. Maximum of 10 sub-resources can be expanded per request.
Account details
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "account_id": "krn:partner:global:account:live:LWT2XJSE",
- "account_reference": "M123786123412",
- "account_name": "John Doe Stakehouse",
- "account_group_reference": "all-john-doe-restaurants",
- "account_group_id": "krn:partner:global:account:group:b0ac4fb5-2975-4417-ae76-f2ac86fb6c6d",
- "account_owner": {
- "given_name": "John",
- "family_name": "Doe",
- "email": "john.doe@example.com",
- "phone": "+18445527621"
}, - "state": "OPERATIONAL",
- "state_reason": "SETUP_COMPLETE"
}
Update details from an Account which the acting Account has write access on.
Account details
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "account_reference": "M123786123412",
- "account_name": "John Doe Stakehouse",
- "account_owner": {
- "given_name": "John",
- "family_name": "Doe",
- "email": "john.doe@example.com",
- "phone": "+18445527621"
}
}
{- "account_id": "krn:partner:global:account:live:LWT2XJSE",
- "account_reference": "M123786123412",
- "account_name": "John Doe Stakehouse",
- "account_group_reference": "all-john-doe-restaurants",
- "account_group_id": "krn:partner:global:account:group:b0ac4fb5-2975-4417-ae76-f2ac86fb6c6d",
- "account_owner": {
- "given_name": "John",
- "family_name": "Doe",
- "email": "john.doe@example.com",
- "phone": "+18445527621"
}, - "state": "OPERATIONAL",
- "state_reason": "SETUP_COMPLETE"
}
The Accounts API allows the authenticated Partner to create, read, manage the Payment Products on an Account.
Obtains a list of all payment products associated with the account
List of payment products
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
[- {
- "product_id": "krn:partner:global:account:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "type": "PAYMENT",
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "merchant_category_code": "5411",
- "state": "ENABLED",
- "state_reason": "APPROVED"
}
]
Update information from a given payment product associated with the account.
Payment product information updated successfully.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "merchant_category_code": "5411"
}
{- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "type": "PAYMENT",
- "merchant_category_code": "5411"
}
Suspends the Payment Product on an account for the given reason
.
Sub account suspended
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "reason": "FRAUD",
- "reason_details": "Fraudulent activity detected"
}
{- "product_id": "krn:partner:global:account:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "type": "PAYMENT",
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "merchant_category_code": "5411",
- "state": "DISABLED",
- "state_reason": "FRAUD_BY_PARTNER",
- "state_context": {
- "reason_details": "string"
}
}
The webhook is triggered once the distribution partner's account payment product is disabled.
{- "metadata": {
- "event_type": "partner.account.change.created",
- "event_id": "19ffd78b-935c-455b-aa0d-aa907641f1a3",
- "event_version": "v1",
- "occurred_at": "2024-02-01T12:00:00Z",
- "correlation_id": "6f28d289-31dc-40de-b222-bd037ccc439c",
- "subject_account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "recipient_account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "product_instance_id": "krn:partner:product:payment:0842e683-97d5-462d-99a9-c8e450deb98f",
- "webhook_id": "krn:partner:global:notification:webhook:66afe5c0-3660-45a4-9ef8-08e84f0d0aa2",
- "live": true
}, - "payload": {
- "account_reference": "M123786123412",
- "change_id": "krn:partner:global:account:change:206bbb83-9b6e-46fa-940d-337153c04a58",
- "changes": [
- {
- "field": "state",
- "previous_value": "ENABLED",
- "new_value": "DISABLED"
}
], - "created_at": "2024-01-01T12:00:00Z",
- "created_by_account_id": "krn:partner:account:live:2AIMNWR6IYZVD"
}
}
Revert suspension of the Payment Product on an account.
Sub account suspension reverted
Bad Request
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "product_id": "krn:partner:global:account:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "type": "PAYMENT",
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "merchant_category_code": "5411",
- "state": "ENABLED",
- "state_reason": "APPROVED"
}
The webhook is triggered once the distribution partner's account payment product is enabled.
{- "metadata": {
- "event_type": "partner.account.change.created",
- "event_id": "baddd96c-c753-4864-a164-e3f9698fe703",
- "event_version": "v1",
- "occurred_at": "2024-02-01T12:00:00Z",
- "correlation_id": "d625539d-808b-4dc7-bbc7-f9df28248b63",
- "subject_account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "recipient_account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "product_instance_id": "krn:partner:product:payment:0842e683-97d5-462d-99a9-c8e450deb98f",
- "webhook_id": "krn:partner:global:notification:webhook:e708ffdf-3ae3-4e39-831b-c7affd12f897",
- "live": true
}, - "payload": {
- "account_reference": "M123786123412",
- "change_id": "krn:partner:global:account:change:206bbb83-9b6e-46fa-940d-337153c04a58",
- "changes": [
- {
- "field": "state",
- "previous_value": "DISABLED",
- "new_value": "ENABLED"
}
], - "created_at": "2024-01-01T12:00:00Z",
- "created_by_account_id": "krn:partner:account:live:2AIMNWR6IYZVD"
}
}
Suspends the Payment Product on an account for the given reason
.
Sub account suspended
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "reason": "FRAUD",
- "reason_details": "Fraudulent activity detected"
}
{- "product_id": "krn:partner:global:account:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "type": "PAYMENT",
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "merchant_category_code": "5411",
- "state": "DISABLED",
- "state_reason": "FRAUD_BY_PARTNER",
- "state_context": {
- "reason_details": "string"
}
}
The webhook is triggered once the distribution partner's account payment product is disabled.
{- "metadata": {
- "event_type": "partner.account.product.payment.state-change.disabled",
- "event_id": "ca26e2cf-3a82-4f28-94b7-c8152c253e69",
- "event_version": "v1",
- "occurred_at": "2024-02-01T12:00:00Z",
- "correlation_id": "9395886a-ee2a-4d98-8e9f-29f56a8333c4",
- "account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "product_instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "webhook_id": "krn:partner:global:notification:webhook:0a6f5f86-55bc-49ca-9fdc-ae981e09a76b",
- "live": true
}, - "payload": {
- "account_reference": "M123786123412",
- "state": "DISABLED",
- "previous_state": "ENABLED"
}
}
Revert suspension of the Payment Product on an account.
Sub account suspension reverted
Bad Request
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "product_id": "krn:partner:global:account:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "type": "PAYMENT",
- "distribution_profile_id": "krn:partner:global:account:distribution-profile:206bbb83-9b6e-46fa-940d-337153c04a58",
- "merchant_category_code": "5411",
- "state": "ENABLED",
- "state_reason": "APPROVED"
}
The webhook is triggered once the distribution partner's account payment product is enabled.
{- "metadata": {
- "event_type": "partner.account.product.payment.state-change.enabled",
- "event_id": "097c5096-30ca-4ea2-b1c9-471af9faa75c",
- "event_version": "v1",
- "occurred_at": "2024-02-01T12:00:00Z",
- "correlation_id": "1d2b7048-d57f-4d33-befd-35afc770d087",
- "account_id": "krn:partner:account:live:2AIMNWR6IYZVD",
- "product_instance_id": "krn:partner:product:payment:1c68af3c-5436-4344-bd98-67b708de7662",
- "webhook_id": "krn:partner:global:notification:webhook:d7e6d320-5efc-4562-b050-5c719764ec66",
- "live": true
}, - "payload": {
- "account_reference": "M123786123412",
- "state": "ENABLED",
- "previous_state": "DISABLED"
}
}
Onboard an existing merchant to Management API. This request overwrites all existing data with the new data provided.
Merchant account created
Bad Request
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "account_reference": "M123786123412",
- "account_name": "John Doe Stakehouse",
- "account_owner": {
- "given_name": "John",
- "family_name": "Doe",
- "email": "john.doe@example.com",
- "phone": "+18445527621"
}, - "products": [
- {
- "merchant_id": "K123456",
- "type": "PAYMENT",
- "merchant_category_code": "5411"
}
],
}
{- "account_id": "krn:partner:global:account:live:LWT2XJSE",
- "account_reference": "M123786123412",
- "account_name": "Merchant ABC US",
- "state": "PARTIALLY_OPERATIONAL",
- "state_reason": "INITIAL_SETUP"
}
The webhook is triggered once the distribution partner's account state changes.
{- "metadata": {
- "event_type": "partner.account.state-change.operational",
- "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:account:live:2AIMNWR6IYZVD",
- "product_instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-abcd-4def-8a90-dca726e639b5",
- "live": true
}, - "payload": {
- "account_reference": "M123786123412",
- "state": "OPERATIONAL",
- "previous_state": "PARTIALLY_OPERATIONAL"
}
}
The Accounts API allows the authenticated Partner to create, read, manage the Web Domains channel on an Account.
Fetch all website channels of an account
Website channel found
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
[- {
- "website_id": "krn:partner:global:account:channel:website:206bbb83-9b6e-46fa-940d-337153c04a58",
- "website_name": "John Doe Stakehouse",
- "website_reference": "999888777",
- "channel_collection_reference": "online-stores",
- "channel_collection_id": "krn:partner:global:account:channel:collection:cad7a851-8f59-47ed-8b1f-e1d61a0e817c"
}
]
Update a website channel from an account
Website channel updated
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "website_name": "John Doe Stakehouse",
- "website_reference": "999888777",
- "channel_collection_reference": "online-stores",
- "channel_collection_id": "krn:partner:global:account:channel:collection:cad7a851-8f59-47ed-8b1f-e1d61a0e817c"
}
{- "website_id": "krn:partner:global:account:channel:website:206bbb83-9b6e-46fa-940d-337153c04a58",
- "website_name": "John Doe Stakehouse",
- "website_reference": "999888777",
- "channel_collection_reference": "online-stores",
- "channel_collection_id": "krn:partner:global:account:channel:collection:cad7a851-8f59-47ed-8b1f-e1d61a0e817c"
}
The Accounts API allows the authenticated Partner to create, read, manage the Collections channel on an Account.
Fetch all collection channels of an account
Collection channel found
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
[- {
- "collection_id": "krn:partner:global:account:channel:collection:cad7a851-8f59-47ed-8b1f-e1d61a0e817c",
- "collection_reference": "online-stores",
- "branding": {
- "element": {
}
}, - "support_contact": {
- "email": "john.doe@example.com",
- "phone": "+18445527621",
}, - "social_media_links": [
]
}
]
Update a collection channel from an account
Collection channel updated
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Internal Server Error, there was an unexpected error in the API.
{- "collection_reference": "online-stores",
- "branding": {
- "element": {
}
}, - "support_contact": {
- "email": "john.doe@example.com",
- "phone": "+18445527621",
}, - "social_media_links": [
]
}
{- "collection_id": "krn:partner:global:account:channel:collection:cad7a851-8f59-47ed-8b1f-e1d61a0e817c",
- "collection_reference": "online-stores",
- "branding": {
- "element": {
}
}, - "support_contact": {
- "email": "john.doe@example.com",
- "phone": "+18445527621",
}, - "social_media_links": [
]
}
The Deep-Links API allows the authenticated Account to create a deep-link for logging in to the Merchant Portal. This allows users to access the Merchant Portal temporarily, without the need for creating a new account.
Creates a deep-link to access the Merchant Portal. The link will be valid for 60 seconds and can only be used once. The user will have the access specified by the role parameter to the given Partner Account.
Deep-link successfully created.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
{- "subject": "john.doe@example.com",
- "roles": [
- "merchant:admin"
]
}
{- "deep_link_id": "krn:network:eu1:live:portal:deep-link:0e716c0d-529c-4b9c-a413-badf5cc97294",
}
The deep-link will become invalid and cannot be used anymore.
Deep-link successfully deleted.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Not Found, the requested resource was not found.
{- "error_id": "5a3f6b9c-9b3b-4b7e-8f9d-9b9a4b9a4b9a",
- "error_type": "INPUT_ERROR",
- "error_code": "INVALID_CONTENT_TYPE",
- "error_message": "The received input is not valid JSON.\nUnterminated string at 19 [character 20 line 1].\n"
}
The User Access API allows the authenticated Account to create, update or delete user access to the Merchant Portal.
Create or update access to the Portal for a user.
Access successfully created.
Access successfully updated.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
{- "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
{- "error_id": "5a3f6b9c-9b3b-4b7e-8f9d-9b9a4b9a4b9a",
- "error_type": "INPUT_ERROR",
- "error_code": "INVALID_CONTENT_TYPE",
- "error_message": "The received input is not valid JSON.\nUnterminated string at 19 [character 20 line 1].\n"
}
Deletes all user access, scoped by account and/or principal.
Access successfully deleted
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
{- "error_id": "5a3f6b9c-9b3b-4b7e-8f9d-9b9a4b9a4b9a",
- "error_type": "INPUT_ERROR",
- "error_code": "INVALID_CONTENT_TYPE",
- "error_message": "The received input is not valid JSON.\nUnterminated string at 19 [character 20 line 1].\n"
}