Download OpenAPI specification:Download
Determine if a customer already has a Klarna account based on the customer's phone number/email address.
Successful response
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.
Forbidden, insufficient privileges to perform the requested operation on the resource.
Resource customer token does not exist.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
Service Temporarily Unavailable, the system is temporarily unavailable to process the request.
Check if a customer exists using a phone number
{- "phone": "+18445527621"
}
{- "exists": true
}
Introspect a customer token issued in the account linking flow to obtain more information regarding the token.
Successful response
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.
Unauthorized access to the resource customer token.
Resource customer token does not exist.
Resource customer token has been revoked.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
Service Temporarily Unavailable, the system is temporarily unavailable to process the request.
{- "status": "ACTIVE",
- "scopes": [
- "payment:customer_present",
- "customer:login"
], - "issued_at": 1723791546323,
- "customer_token_reference": "partner_customer_token_1234"
}
Revoke a customer token issued in the account linking flow, so that any subsequent payment requests using the token are rejected.
Successful response
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.
Unauthorized access to the resource customer token.
Resource customer token does not exist.
Resource customer token has been revoked.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
Service Temporarily Unavailable, the system is temporarily unavailable to process the request.
{- "customer_token_reference": "partner_customer_token_1234"
}
{- "metadata": {
- "event_type": "identity.customer-token.state-change.revoked",
- "event_id": "7f1ff389-7792-4cc5-8ec5-cb2ed6e1f19c",
- "event_version": "v2",
- "occurred_at": "2024-01-12T13:00:00Z",
- "correlation_id": "2d1557e8-17c3-466c-924a-bbc3e91c2a02",
- "subject_account_id": "krn:partner:global:account:live:HGBY07TR",
- "recipient_account_id": "krn:partner:global:account:live:LWT2XJSE",
- "webhook_id": "krn:partner:global:notification:webhook:120e5b7e-abcd-4def-8a90-dca726e639b5",
- "live": true
}, - "payload": {
- "customer_token": "krn:partner:us1:live:identity:customer-token:vVQGmYzlfsQ16dko3jcwY5lV8hBgKs9a",
- "customer_token_reference": "partner-token-reference-1234"
}
}