Klarna
klarnaKlarna provides merchant APIs for payments, checkout, order management, settlements, customer tokens, and hosted payment pages.
Acciones disponibles (58)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Abort Checkout OrderKLARNA_ABORT_CHECKOUT_ORDERAcciónIrreversibly abort an incomplete legacy Klarna Checkout order.
KLARNA_ABORT_CHECKOUT_ORDERAcciónIrreversibly abort an incomplete legacy Klarna Checkout order.
Parámetros de entrada
order_idstringObligatorioKlarna Checkout order ID to abort.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Accept Dispute LossKLARNA_ACCEPT_DISPUTE_LOSSAcciónIrreversibly request acceptance of the financial loss for a Klarna dispute. HTTP 202 means Klarna accepted the request for processing; use GET_DISPUTE to verify that the dispute closed and the chargeback was activated.
KLARNA_ACCEPT_DISPUTE_LOSSAcciónIrreversibly request acceptance of the financial loss for a Klarna dispute. HTTP 202 means Klarna accepted the request for processing; use GET_DISPUTE to verify that the dispute closed and the chargeback was activated.
Parámetros de entrada
payment_dispute_idstringObligatorioKlarna payment dispute ID whose loss will be irreversibly accepted.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Acknowledge OrderKLARNA_ACKNOWLEDGE_ORDERAcciónAcknowledge receipt of a Klarna order so order processing can continue.
KLARNA_ACKNOWLEDGE_ORDERAcciónAcknowledge receipt of a Klarna order so order processing can continue.
Parámetros de entrada
order_idstringObligatorioKlarna order ID to acknowledge.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add Capture Shipping InfoKLARNA_ADD_CAPTURE_SHIPPING_INFOAcciónAppend shipping carrier and tracking information to a Klarna capture.
KLARNA_ADD_CAPTURE_SHIPPING_INFOAcciónAppend shipping carrier and tracking information to a Klarna capture.
Parámetros de entrada
order_idstringObligatorioKlarna order ID containing the capture.
capture_idstringObligatorioKlarna capture ID to update.
shipping_infoobject[]ObligatorioShipping carrier and tracking records to append to the capture.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add Order Shipping InfoKLARNA_ADD_ORDER_SHIPPING_INFOAcciónAppend shipping carrier and tracking information to a Klarna order.
KLARNA_ADD_ORDER_SHIPPING_INFOAcciónAppend shipping carrier and tracking information to a Klarna order.
Parámetros de entrada
order_idstringObligatorioKlarna order ID to which shipping information will be appended.
shipping_infoobject[]ObligatorioShipping carrier and tracking records to append to the order.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel AuthorizationKLARNA_CANCEL_AUTHORIZATIONAcciónIrreversibly cancel a Klarna payment authorization before an order is created from it.
KLARNA_CANCEL_AUTHORIZATIONAcciónIrreversibly cancel a Klarna payment authorization before an order is created from it.
Parámetros de entrada
authorization_tokenstringObligatorioAuthorization token returned by the Klarna client-side authorization flow.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel OrderKLARNA_CANCEL_ORDERAcciónIrreversibly cancel an uncaptured Klarna order that is not closed. Cancellation cannot be undone.
KLARNA_CANCEL_ORDERAcciónIrreversibly cancel an uncaptured Klarna order that is not closed. Cancellation cannot be undone.
Parámetros de entrada
order_idstringObligatorioKlarna order ID to cancel. The order must be uncaptured and not closed; cancellation cannot be undone.
idempotency_keystringUnique key for this logical cancellation, preferably a UUID v4. Reuse the same key only when retrying that cancellation after a network error or timeout.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Capture OrderKLARNA_CAPTURE_ORDERAcciónIrreversibly capture all or part of an authorized Klarna order and return the created capture ID.
KLARNA_CAPTURE_ORDERAcciónIrreversibly capture all or part of an authorized Klarna order and return the created capture ID.
Parámetros de entrada
captureobjectObligatorioCapture amount, line items, and shipping details.
order_idstringObligatorioKlarna order ID to capture.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Card PromiseKLARNA_CREATE_CARD_PROMISEAcciónCreate a Klarna card promise for an order. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement. Creating a new promise irreversibly invalidates the previous promise for the same order.
KLARNA_CREATE_CARD_PROMISEAcciónCreate a Klarna card promise for an order. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement. Creating a new promise irreversibly invalidates the previous promise for the same order.
Parámetros de entrada
cardsobject[]ObligatorioCard specifications to include in the promise.
order_idstringObligatorioKlarna order ID for which to create the card promise.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Card SettlementKLARNA_CREATE_CARD_SETTLEMENTAcciónCreate a Klarna settlement for a completed order and issue its encrypted virtual cards. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement and commits a new settlement, an irreversible effect.
KLARNA_CREATE_CARD_SETTLEMENTAcciónCreate a Klarna settlement for a completed order and issue its encrypted virtual cards. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement and commits a new settlement, an irreversible effect.
Parámetros de entrada
order_idstringObligatorioCompleted Klarna order ID to settle.
promise_idstringCard promise identifier associated with the settlement.
card_data_encryption_key_idstringObligatorioPublic-key identifier Klarna must use to encrypt the card data.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Checkout OrderKLARNA_CREATE_CHECKOUT_ORDERAcciónCreate a legacy Klarna Checkout V3 order and return its checkout details.
KLARNA_CREATE_CHECKOUT_ORDERAcciónCreate a legacy Klarna Checkout V3 order and return its checkout details.
Parámetros de entrada
checkout_orderobjectObligatorioComplete structured Klarna Checkout V3 order request.
klarna_partnerstringOptional Klarna partner identifier.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Customer Token From AuthorizationKLARNA_CREATE_CUSTOMER_TOKEN_FROM_AUTHORIZATIONAcciónCreate a reusable Klarna customer token from a payment authorization token for subscription purchases.
KLARNA_CREATE_CUSTOMER_TOKEN_FROM_AUTHORIZATIONAcciónCreate a reusable Klarna customer token from a payment authorization token for subscription purchases.
Parámetros de entrada
token_requestobjectObligatorioCustomer token creation details required by Klarna.
authorization_tokenstringObligatorioAuthorization token returned by the Klarna client-side authorization flow.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create HPP SessionKLARNA_CREATE_HPP_SESSIONAcciónCreate a Hosted Payment Page session from an existing Klarna Payments session or Checkout order URL. The returned distribution-module token is sensitive and must not be logged or persisted.
KLARNA_CREATE_HPP_SESSIONAcciónCreate a Hosted Payment Page session from an existing Klarna Payments session or Checkout order URL. The returned distribution-module token is sensitive and must not be logged or persisted.
Parámetros de entrada
hpp_sessionobjectObligatorioComplete Hosted Payment Page session creation body.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Order From AuthorizationKLARNA_CREATE_ORDER_FROM_AUTHORIZATIONAcciónCreate a Klarna order from a customer authorization token. When order.auto_capture is true, Klarna also captures payment automatically.
KLARNA_CREATE_ORDER_FROM_AUTHORIZATIONAcciónCreate a Klarna order from a customer authorization token. When order.auto_capture is true, Klarna also captures payment automatically.
Parámetros de entrada
orderobjectObligatorioStructured order request matching Klarna's create-order schema.
authorization_tokenstringObligatorioAuthorization token returned by the Klarna client-side authorization flow.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Order From Customer TokenKLARNA_CREATE_ORDER_FROM_CUSTOMER_TOKENAcciónCreate a Klarna order using a reusable customer token. Setting auto_capture to true captures the payment automatically.
KLARNA_CREATE_ORDER_FROM_CUSTOMER_TOKENAcciónCreate a Klarna order using a reusable customer token. Setting auto_capture to true captures the payment automatically.
Parámetros de entrada
orderobjectObligatorioStructured customer-token order request with all documented fields.
customer_tokenstringObligatorioReusable Klarna customer token.
idempotency_keystringFresh UUID v4 for this logical operation. Reuse the same value only when retrying that identical operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Payment SessionKLARNA_CREATE_PAYMENT_SESSIONAcciónCreate a Klarna Payments session and return its session ID, sensitive client token, and available payment method categories.
KLARNA_CREATE_PAYMENT_SESSIONAcciónCreate a Klarna Payments session and return its session ID, sensitive client token, and available payment method categories.
Parámetros de entrada
payment_sessionobjectObligatorioThe complete Klarna payment session request.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Disable HPP SessionKLARNA_DISABLE_HPP_SESSIONAcciónIrreversibly disable a Klarna Hosted Payment Page session that has not completed.
KLARNA_DISABLE_HPP_SESSIONAcciónIrreversibly disable a Klarna Hosted Payment Page session that has not completed.
Parámetros de entrada
session_idstringObligatorioID of the Klarna Hosted Payment Page session to disable.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Distribute HPP SessionKLARNA_DISTRIBUTE_HPP_SESSIONAcciónDistribute a Klarna Hosted Payment Page link by email, SMS, or a documented token access ID. Warning: choosing email or SMS immediately sends a message to the specified external recipient; confirm the destination before calling.
KLARNA_DISTRIBUTE_HPP_SESSIONAcciónDistribute a Klarna Hosted Payment Page link by email, SMS, or a documented token access ID. Warning: choosing email or SMS immediately sends a message to the specified external recipient; confirm the destination before calling.
Parámetros de entrada
session_idstringObligatorioID of the Klarna Hosted Payment Page session whose link will be distributed.
distributionanyObligatorioDistribution parameters. The email and SMS variants immediately send the HPP link to the specified external recipient.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Dispute AttachmentKLARNA_DOWNLOAD_DISPUTE_ATTACHMENTAcciónDownload a merchant or customer evidence attachment from a Klarna payment dispute as a bounded file reference.
KLARNA_DOWNLOAD_DISPUTE_ATTACHMENTAcciónDownload a merchant or customer evidence attachment from a Klarna payment dispute as a bounded file reference.
Parámetros de entrada
payment_dispute_idstringObligatorioID of the Klarna payment dispute that owns the attachment.
payment_dispute_attachment_idstringObligatorioID of the merchant or customer evidence attachment to download.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Payout PDFKLARNA_DOWNLOAD_PAYOUT_PDFAcciónDownload the PDF settlement report for one payout.
KLARNA_DOWNLOAD_PAYOUT_PDFAcciónDownload the PDF settlement report for one payout.
Parámetros de entrada
payment_referencestringObligatorioReference ID of the payout.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Payouts Summary PDFKLARNA_DOWNLOAD_PAYOUTS_SUMMARY_PDFAcciónDownload a PDF payout summary for a payout date-time range.
KLARNA_DOWNLOAD_PAYOUTS_SUMMARY_PDFAcciónDownload a PDF payout summary for a payout date-time range.
Parámetros de entrada
end_datestringObligatorioInclusive payout-range end as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use 23:59:59 for the full final day.
start_datestringObligatorioInclusive payout-range start as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use a full timestamp to avoid ambiguity.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Payouts Summary Transactions CSVKLARNA_DOWNLOAD_PAYOUTS_SUMMARY_TRANSACTIONS_CSVAcciónDownload a CSV summary of Klarna payouts and transactions for an inclusive payout date-time range.
KLARNA_DOWNLOAD_PAYOUTS_SUMMARY_TRANSACTIONS_CSVAcciónDownload a CSV summary of Klarna payouts and transactions for an inclusive payout date-time range.
Parámetros de entrada
end_datestringObligatorioInclusive payout-range end as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use 23:59:59 for the full final day.
start_datestringObligatorioInclusive payout-range start as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use a full timestamp to avoid ambiguity.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Payout Transactions CSVKLARNA_DOWNLOAD_PAYOUT_TRANSACTIONS_CSVAcciónDownload a CSV report containing one payout and its transactions.
KLARNA_DOWNLOAD_PAYOUT_TRANSACTIONS_CSVAcciónDownload a CSV report containing one payout and its transactions.
Parámetros de entrada
payment_referencestringObligatorioReference ID of the payout to include in the CSV report.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Enroll Dispute MerchantKLARNA_ENROLL_DISPUTE_MERCHANTAcciónIrreversibly activate Disputes v3 handling for one direct Klarna merchant account. This account onboarding cannot be undone through the API. Partners cannot use this operation to enroll individual merchants; HTTP 204 also means the merchant was already enrolled.
KLARNA_ENROLL_DISPUTE_MERCHANTAcciónIrreversibly activate Disputes v3 handling for one direct Klarna merchant account. This account onboarding cannot be undone through the API. Partners cannot use this operation to enroll individual merchants; HTTP 204 also means the merchant was already enrolled.
Parámetros de entrada
merchant_idstringObligatorioDirect Klarna merchant account ID to irreversibly enroll.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Enroll Dispute PartnerKLARNA_ENROLL_DISPUTE_PARTNERAcciónIrreversibly activate Disputes v3 handling for one Klarna partner account. This account onboarding cannot be undone through the API. partner_id identifies the partner account and client_id supplies the merchant OAuth2 client ID in the request body. Merchants cannot use this operation to enroll a partner; HTTP 204 also means the partner was already enrolled.
KLARNA_ENROLL_DISPUTE_PARTNERAcciónIrreversibly activate Disputes v3 handling for one Klarna partner account. This account onboarding cannot be undone through the API. partner_id identifies the partner account and client_id supplies the merchant OAuth2 client ID in the request body. Merchants cannot use this operation to enroll a partner; HTTP 204 also means the partner was already enrolled.
Parámetros de entrada
client_idstringObligatorioMerchant OAuth2 client ID used for partner onboarding. Must contain only ASCII letters and digits and be 1-64 characters long.
partner_idstringObligatorioKlarna partner account ID to irreversibly enroll.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Extend Capture Due DateKLARNA_EXTEND_CAPTURE_DUE_DATEAcciónFirst call KLARNA_LIST_CAPTURE_DUE_DATE_OPTIONS for this order and capture, then extend the payment due date using one returned option. Fetch the options before this action because some extensions can cost money.
KLARNA_EXTEND_CAPTURE_DUE_DATEAcciónFirst call KLARNA_LIST_CAPTURE_DUE_DATE_OPTIONS for this order and capture, then extend the payment due date using one returned option. Fetch the options before this action because some extensions can cost money.
Parámetros de entrada
order_idstringObligatorioKlarna order ID containing the capture.
capture_idstringObligatorioKlarna capture ID to extend.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
due_date_extensionobjectObligatorioDue-date extension option previously returned by Klarna.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Extend Order Authorization TimeKLARNA_EXTEND_ORDER_AUTHORIZATION_TIMEAcciónExtend the authorization validity period for an order that is still AUTHORIZED and delayed unexpectedly. Call this before capture or release changes the order state; Klarna does not allow extension after the order expires or is cancelled. For routinely long fulfillment periods, arrange extended authorization during merchant onboarding instead.
KLARNA_EXTEND_ORDER_AUTHORIZATION_TIMEAcciónExtend the authorization validity period for an order that is still AUTHORIZED and delayed unexpectedly. Call this before capture or release changes the order state; Klarna does not allow extension after the order expires or is cancelled. For routinely long fulfillment periods, arrange extended authorization during merchant onboarding instead.
Parámetros de entrada
order_idstringObligatorioKlarna order ID whose authorization time should be extended.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CaptureKLARNA_GET_CAPTUREAcciónReturn one Klarna capture by order ID and capture ID.
KLARNA_GET_CAPTUREAcciónReturn one Klarna capture by order ID and capture ID.
Parámetros de entrada
order_idstringObligatorioUnique Klarna order ID containing the capture.
capture_idstringObligatorioUnique Klarna capture ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Card PromiseKLARNA_GET_CARD_PROMISEAcciónRetrieve a Klarna card promise and its card specifications. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement.
KLARNA_GET_CARD_PROMISEAcciónRetrieve a Klarna card promise and its card specifications. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement.
Parámetros de entrada
promise_idstringObligatorioUnique card promise identifier.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Card SettlementKLARNA_GET_CARD_SETTLEMENTAcciónRetrieve a Klarna card settlement by settlement ID or by its associated order ID. Select the identifier with lookup_by and provide only its corresponding field. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement and returns encrypted card material that must be handled securely.
KLARNA_GET_CARD_SETTLEMENTAcciónRetrieve a Klarna card settlement by settlement ID or by its associated order ID. Select the identifier with lookup_by and provide only its corresponding field. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement and returns encrypted card material that must be handled securely.
Parámetros de entrada
order_idstringKlarna order ID associated with the settlement.
lookup_bystringenumIdentifier type to use: settlement_id retrieves a specific settlement; order_id retrieves the settlement associated with an order. When omitted, the action infers it from the one supplied identifier.
settlement_idorder_idsettlement_idstringUnique settlement identifier.
card_data_encryption_key_idstringObligatorioPublic-key identifier Klarna used to encrypt the returned card data.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Checkout OrderKLARNA_GET_CHECKOUT_ORDERAcciónReturn a legacy Klarna Checkout order by order ID.
KLARNA_GET_CHECKOUT_ORDERAcciónReturn a legacy Klarna Checkout order by order ID.
Parámetros de entrada
order_idstringObligatorioKlarna Checkout order ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Customer TokenKLARNA_GET_CUSTOMER_TOKENAcciónReturn a reusable Klarna customer token and its current status.
KLARNA_GET_CUSTOMER_TOKENAcciónReturn a reusable Klarna customer token and its current status.
Parámetros de entrada
customer_tokenstringObligatorioReusable Klarna customer token to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DisputeKLARNA_GET_DISPUTEAcciónReturn a fully detailed Klarna Disputes v3 record, including associated merchant and customer evidence. The response preserves provider-added fields and accepts all current or future state values.
KLARNA_GET_DISPUTEAcciónReturn a fully detailed Klarna Disputes v3 record, including associated merchant and customer evidence. The response preserves provider-added fields and accepts all current or future state values.
Parámetros de entrada
payment_dispute_idstringObligatorioKlarna payment dispute ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get HPP SessionKLARNA_GET_HPP_SESSIONAcciónReturn the current details and distribution state of a Klarna Hosted Payment Page session.
KLARNA_GET_HPP_SESSIONAcciónReturn the current details and distribution state of a Klarna Hosted Payment Page session.
Parámetros de entrada
session_idstringObligatorioHPP session ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get OrderKLARNA_GET_ORDERAcciónReturn a Klarna order and its current authorization, capture, refund, shipping, and customer details.
KLARNA_GET_ORDERAcciónReturn a Klarna order and its current authorization, capture, refund, shipping, and customer details.
Parámetros de entrada
order_idstringObligatorioUnique Klarna order ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Payment SessionKLARNA_GET_PAYMENT_SESSIONAcciónReturn the current details of a Klarna Payments session by session ID. The response may contain sensitive client or authorization tokens; do not log or persist them.
KLARNA_GET_PAYMENT_SESSIONAcciónReturn the current details of a Klarna Payments session by session ID. The response may contain sensitive client or authorization tokens; do not log or persist them.
Parámetros de entrada
session_idstringObligatorioUnique ID of the Klarna Payments session to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get PayoutKLARNA_GET_PAYOUTAcciónReturn one Klarna payout by payment reference.
KLARNA_GET_PAYOUTAcciónReturn one Klarna payout by payment reference.
Parámetros de entrada
payment_referencestringObligatorioReference ID of the payout, normally found on the payment slip or bank statement.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Payout SummaryKLARNA_GET_PAYOUT_SUMMARYAcciónReturn Klarna payout totals grouped by currency for an inclusive payout date-time range.
KLARNA_GET_PAYOUT_SUMMARYAcciónReturn Klarna payout totals grouped by currency for an inclusive payout date-time range.
Parámetros de entrada
end_datestringObligatorioInclusive payout-range end as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use 23:59:59 for the full final day.
start_datestringObligatorioInclusive payout-range start as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use a full timestamp to avoid ambiguity.
currency_codestringOptional ISO 4217 currency code used to filter the summaries.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get RefundKLARNA_GET_REFUNDAcciónReturn one Klarna refund by order ID and refund ID.
KLARNA_GET_REFUNDAcciónReturn one Klarna refund by order ID and refund ID.
Parámetros de entrada
order_idstringObligatorioUnique Klarna order ID containing the refund.
refund_idstringObligatorioUnique Klarna refund ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get VCC Order CancellationKLARNA_GET_VCC_ORDER_CANCELLATIONAcciónRetrieve the asynchronous cancellation status for a Klarna order with a Virtual Credit Card settlement. This operation requires Virtual Card Number (VCN) entitlement and does not itself change the order.
KLARNA_GET_VCC_ORDER_CANCELLATIONAcciónRetrieve the asynchronous cancellation status for a Klarna order with a Virtual Credit Card settlement. This operation requires Virtual Card Number (VCN) entitlement and does not itself change the order.
Parámetros de entrada
order_idstringObligatorioKlarna order ID whose Virtual Credit Card cancellation status to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Capture Due Date OptionsKLARNA_LIST_CAPTURE_DUE_DATE_OPTIONSAcciónList the due-date extension options available for a Klarna capture.
KLARNA_LIST_CAPTURE_DUE_DATE_OPTIONSAcciónList the due-date extension options available for a Klarna capture.
Parámetros de entrada
order_idstringObligatorioKlarna order ID containing the capture.
capture_idstringObligatorioKlarna capture ID whose due-date extension options to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DisputesKLARNA_LIST_DISPUTESAcciónReturn one page of Klarna Disputes v3 records using all documented filters. Repeated-array and CSV query serialization follow the provider contract; use next_cursor to request one additional page.
KLARNA_LIST_DISPUTESAcciónReturn one page of Klarna Disputes v3 records using all documented filters. Repeated-array and CSV query serialization follow the provider contract; use next_cursor to request one additional page.
Parámetros de entrada
sizeintegerMaximum number of disputes to return on this page.
statestring[]Dispute states to match. Serialized as repeated state query values.
cursorstringOpaque continuation cursor returned by a previous call. It restores that call's filters and page size and requests exactly one next page.
reasonstring[]Dispute reasons to match. Serialized as repeated reason query values.
sort_bystring[]Sort fields in priority order. Serialized as one comma-separated sort_by value; a leading minus sorts that field descending.
merchant_idstring[]Merchant IDs to match. Serialized as repeated merchant_id query values.
closed_at_endstring[]Exclusive dispute-close timestamps in ISO 8601 format. Serialized as repeated closed_at_end query values exactly as documented by Klarna.
opened_at_endstring[]Exclusive dispute-open timestamps in ISO 8601 format. Serialized as repeated opened_at_end query values exactly as documented by Klarna.
starting_afterstringRaw pagination.last_item value from a prior provider response. Prefer cursor for continuation; cursor takes precedence when both are supplied.
closed_at_startstring[]Inclusive dispute-close timestamps in ISO 8601 format. Serialized as repeated closed_at_start query values exactly as documented by Klarna.
opened_at_startstring[]Inclusive dispute-open timestamps in ISO 8601 format. Serialized as repeated opened_at_start query values exactly as documented by Klarna.
purchase_referencesstring[]Merchant purchase references to match, each 1-255 characters. Serialized as repeated purchase_references query values.
payment_transaction_idstring[]Payment transaction IDs to match, each at most 255 characters. Serialized as repeated payment_transaction_id query values.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Order CapturesKLARNA_LIST_ORDER_CAPTURESAcciónReturn all captures recorded for a Klarna order.
KLARNA_LIST_ORDER_CAPTURESAcciónReturn all captures recorded for a Klarna order.
Parámetros de entrada
order_idstringObligatorioUnique Klarna order ID whose captures should be returned.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List PayoutsKLARNA_LIST_PAYOUTSAcciónReturn one offset-controlled page of Klarna payouts, optionally filtered by payout date range and currency.
KLARNA_LIST_PAYOUTSAcciónReturn one offset-controlled page of Klarna payouts, optionally filtered by payout date range and currency.
Parámetros de entrada
sizeintegerNumber of payouts to return on this page (1-500; default 20).
cursorstringContinuation cursor returned by a previous call. It restores that call's filters and page size and takes precedence over offset.
offsetintegerZero-based collection offset for the first page.
end_datestringOptional inclusive payout-date end as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use 23:59:59 for the full final day.
start_datestringOptional inclusive payout-date start as an ISO 8601 date or date-time. A date alone starts at 00:00:00; use a full timestamp to avoid ambiguity.
currency_codestringOptional ISO 4217 currency code used to filter payouts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Settlement TransactionsKLARNA_LIST_SETTLEMENT_TRANSACTIONSAcciónReturn one offset-controlled page of Klarna settlement transactions, optionally filtered by payout reference or order ID.
KLARNA_LIST_SETTLEMENT_TRANSACTIONSAcciónReturn one offset-controlled page of Klarna settlement transactions, optionally filtered by payout reference or order ID.
Parámetros de entrada
sizeintegerNumber of transactions to return in this page (maximum 500).
cursorstringContinuation cursor from a previous call. Omit it for the first page; when supplied, it preserves the original filters and page size.
offsetintegerOffset at which this page starts.
order_idstringOptional Klarna-assigned order ID used to filter transactions.
payment_referencestringOptional payout reference used to filter settlement transactions.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refund OrderKLARNA_REFUND_ORDERAcciónIrreversibly create a full or partial Klarna refund and return the created refund ID.
KLARNA_REFUND_ORDERAcciónIrreversibly create a full or partial Klarna refund and return the created refund ID.
Parámetros de entrada
refundobjectObligatorioRefund amount, line items, and references.
order_idstringObligatorioKlarna order ID to refund.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Release Remaining AuthorizationKLARNA_RELEASE_REMAINING_AUTHORIZATIONAcciónIrreversibly release the uncaptured authorization remaining on a Klarna order. Use only when no further capture is needed; this does not refund captured funds. This may also normalize the order total: in live testing, a partial capture followed by release reduced order_amount to captured_amount.
KLARNA_RELEASE_REMAINING_AUTHORIZATIONAcciónIrreversibly release the uncaptured authorization remaining on a Klarna order. Use only when no further capture is needed; this does not refund captured funds. This may also normalize the order total: in live testing, a partial capture followed by release reduced order_amount to captured_amount.
Parámetros de entrada
order_idstringObligatorioKlarna order ID whose uncaptured authorization should be released.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Request Customer Token CancellationKLARNA_REQUEST_CUSTOMER_TOKEN_CANCELLATIONAcciónRequest asynchronous cancellation of a reusable Klarna customer token by changing its status to CANCELLED. Once Klarna processes the request, the token can no longer be used for new orders; HTTP 202 confirms acceptance, not that the state change has completed.
KLARNA_REQUEST_CUSTOMER_TOKEN_CANCELLATIONAcciónRequest asynchronous cancellation of a reusable Klarna customer token by changing its status to CANCELLED. Once Klarna processes the request, the token can no longer be used for new orders; HTTP 202 confirms acceptance, not that the state change has completed.
Parámetros de entrada
status_updateobjectObligatorioRequired status change to submit for the customer token.
customer_tokenstringObligatorioReusable Klarna customer token to cancel.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Request VCC Order CancellationKLARNA_REQUEST_VCC_ORDER_CANCELLATIONAcciónIrreversibly request cancellation of a Klarna order associated with a Virtual Credit Card settlement. This operation requires Virtual Card Number (VCN) entitlement. It mutates the order: an existing cancellation returns CANCELLED, while a new request is queued asynchronously and returns PENDING.
KLARNA_REQUEST_VCC_ORDER_CANCELLATIONAcciónIrreversibly request cancellation of a Klarna order associated with a Virtual Credit Card settlement. This operation requires Virtual Card Number (VCN) entitlement. It mutates the order: an existing cancellation returns CANCELLED, while a new request is queued asynchronously and returns PENDING.
Parámetros de entrada
order_idstringObligatorioKlarna order ID to cancel. The order must have an associated Virtual Credit Card settlement.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Resend Capture Customer CommunicationKLARNA_RESEND_CAPTURE_CUSTOMER_COMMUNICATIONAcciónIrreversibly resend Klarna customer communication for a capture. Calling this action has an operational side effect: Klarna sends a communication to the customer.
KLARNA_RESEND_CAPTURE_CUSTOMER_COMMUNICATIONAcciónIrreversibly resend Klarna customer communication for a capture. Calling this action has an operational side effect: Klarna sends a communication to the customer.
Parámetros de entrada
order_idstringObligatorioKlarna order ID containing the capture.
capture_idstringObligatorioKlarna capture ID whose customer communication should be resent.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Respond to DisputeKLARNA_RESPOND_TO_DISPUTEAcciónSubmit reason-specific merchant evidence for a Klarna dispute request.
KLARNA_RESPOND_TO_DISPUTEAcciónSubmit reason-specific merchant evidence for a Klarna dispute request.
Parámetros de entrada
evidenceanyObligatorioReason-specific evidence response matching the dispute reason.
payment_dispute_idstringObligatorioID of the dispute whose evidence request is being answered.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Checkout OrderKLARNA_UPDATE_CHECKOUT_ORDERAcciónUpdate a legacy Klarna Checkout order and return the resulting order.
KLARNA_UPDATE_CHECKOUT_ORDERAcciónUpdate a legacy Klarna Checkout order and return the resulting order.
Parámetros de entrada
order_idstringObligatorioKlarna Checkout order ID.
checkout_orderobjectLegacy Checkout V3 order properties to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Order AuthorizationKLARNA_UPDATE_ORDER_AUTHORIZATIONAcciónUpdate the authorized amount and order lines on an existing order.
KLARNA_UPDATE_ORDER_AUTHORIZATIONAcciónUpdate the authorized amount and order lines on an existing order.
Parámetros de entrada
order_idstringObligatorioKlarna order ID to update.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
authorization_updateobjectObligatorioNew authorization amount and optional replacement order lines.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Order Customer DetailsKLARNA_UPDATE_ORDER_CUSTOMER_DETAILSAcciónUpdate the permitted customer address details on an existing order.
KLARNA_UPDATE_ORDER_CUSTOMER_DETAILSAcciónUpdate the permitted customer address details on an existing order.
Parámetros de entrada
order_idstringObligatorioKlarna order ID whose customer details will be updated.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
customer_detailsobjectObligatorioCustomer shipping details to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Order Merchant ReferencesKLARNA_UPDATE_ORDER_MERCHANT_REFERENCESAcciónUpdate the merchant reference values stored on a Klarna order.
KLARNA_UPDATE_ORDER_MERCHANT_REFERENCESAcciónUpdate the merchant reference values stored on a Klarna order.
Parámetros de entrada
order_idstringObligatorioKlarna order ID to update.
idempotency_keystringUnique key for this logical operation, preferably a UUID v4. Reuse the same key only when retrying that operation.
merchant_referencesobjectObligatorioNew merchant reference values for the order.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Payment SessionKLARNA_UPDATE_PAYMENT_SESSIONAcciónUpdate mutable data on an existing Klarna Payments session, including order amounts and lines, customer and billing or shipping addresses, merchant references and URLs, purchase locale and currency, payment options, and session intent. Klarna returns no session data after a successful update.
KLARNA_UPDATE_PAYMENT_SESSIONAcciónUpdate mutable data on an existing Klarna Payments session, including order amounts and lines, customer and billing or shipping addresses, merchant references and URLs, purchase locale and currency, payment options, and session intent. Klarna returns no session data after a successful update.
Parámetros de entrada
session_idstringObligatorioID of the existing Klarna Payments session to update.
session_updateobjectObligatorioComplete set of mutable session fields to send as the POST body.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload Dispute AttachmentKLARNA_UPLOAD_DISPUTE_ATTACHMENTAcciónUpload one merchant evidence attachment to a Klarna payment dispute. Klarna limits attachments to 7 MB.
KLARNA_UPLOAD_DISPUTE_ATTACHMENTAcciónUpload one merchant evidence attachment to a Klarna payment dispute. Klarna limits attachments to 7 MB.
Parámetros de entrada
fileobjectObligatorioMerchant evidence file to upload. Klarna accepts JPG, JPEG, PNG, PDF, and DOCX files up to 7 MB.
filenamestringOptional provider filename. It must contain no whitespace and end in .jpg, .jpeg, .png, .pdf, or .docx.
payment_dispute_idstringObligatorioID of the Klarna payment dispute that will own the attachment.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload Dispute AttachmentsKLARNA_UPLOAD_DISPUTE_ATTACHMENTSAcciónUpload 1-10 merchant evidence attachments to one Klarna payment dispute, sequentially in input order. Each successful upload creates a separate attachment resource. The batch is not atomic: if a later upload fails, attachments uploaded earlier remain created.
KLARNA_UPLOAD_DISPUTE_ATTACHMENTSAcciónUpload 1-10 merchant evidence attachments to one Klarna payment dispute, sequentially in input order. Each successful upload creates a separate attachment resource. The batch is not atomic: if a later upload fails, attachments uploaded earlier remain created.
Parámetros de entrada
attachmentsobject[]ObligatorioOne to 10 merchant evidence attachments to upload sequentially in the given order.
payment_dispute_idstringObligatorioID of the Klarna payment dispute that will own the attachments.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not