Menu
Generate a customer token
Generate a customer token
POST
/payments/v1/authorizations/{authorizationToken}/customer-tokenUse it in a workflow
- Add a step and choose the Klarna connector.
- Pick the Generate a customer token action (under Payments).
- Fill in the fields below, then reference the result from later steps as
{{generateACustomerToken.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"description": "string",
"intended_use": "SUBSCRIPTION",
"locale": "en-US",
"purchase_country": "US",
"purchase_currency": "USD",
"billing_address": null,
"customer": null
}
Response
Returns 200 with an object. Read it in later steps with {{generateACustomerToken.response.data.<field>}}.
{
"token_id": "0b1d9815-165e-42e2-8867-35bc03789e00",
"billing_address": null,
"customer": null,
"payment_method_reference": "0b1d9815-165e-42e2-8867-35bc03789e00",
"redirect_url": "https://credit.klarna.com/v1/sessions/0b1d9815-165e-42e2-8867-35bc03789e00/redirect"
}
Need more? See the Klarna guide for connection setup and behaviour shared by every action.
Was this page helpful?