Download OpenAPI specification:Download
Full set of resources to manage the end-to-end lifecycle of a payment.
Retrieve a list of Disputes, segregated by a variety of filter parameters
A paginated list of authorized disputes
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.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "disputes": [
- {
- "payment_dispute_id": "krn:payment:eu1:dispute:products-not-received:256947",
- "dispute_reason": "PRODUCTS_NOT_RECEIVED",
- "state": "MERCHANT_EVIDENCE_PENDING",
- "previous_state": "ARBITRATION_PENDING",
- "state_context": {
- "evidence_request_type": "PRODUCTS_NOT_RECEIVED",
- "evidence_response_deadline_at": "2020-05-22T00:00:00Z"
}, - "payment_transaction_id": "krn:payment:eu1:authorization:6debe89e-98c0-486e-b7a5-08a4f6df94b0",
- "payment_transaction_reference": "f420e0e1-971b-417a-8ece-2626387eff36",
- "purchase_reference": "f420e0e1-971b-417a-8ece-2626387eff36",
- "payment_product_instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "dispute_details": {
- "dispute_amount": 39900,
- "currency": "EUR",
- "created_by": "CUSTOMER"
}, - "merchant_evidence": [
- {
- "payment_dispute_merchant_evidence_id": "krn:payment:eu1:dispute:256947:merchant-evidence:1",
- "request": {
- "created_at": "2020-05-08T08:32:14Z",
- "state": "EVIDENCE_REQUESTED",
- "comment": "Consumer claimed products were not received"
}, - "response": {
- "created_at": "2020-05-09T09:32:18Z",
- "additional_information": "Additional free text information",
- "attachments": [
- {
- "payment_dispute_attachment_id": "krn:payment:eu1:dispute:256947:attachment:1",
- "description": "Shipment confirmation"
}
], - "details": {
- "tracking_availability": "TRACKING_AVAILABLE",
- "tracking_number": "JCYPE32JAAR4",
- "shipping_carrier": "DHL",
- "estimated_delivery_date": "2020-04-10",
- "delivery_method": "BY_POST_OR_MAIL",
- "have_you_resolved_the_dispute_with_the_customer": "YES_WILL_MAKE_CHANGES_TO_PURCHASE",
- "proof_of_delivery_attachments": [
- {
- "payment_dispute_attachment_id": "krn:payment:eu1:dispute:256947:attachment:1",
- "description": "Shipment confirmation"
}
]
}
}
}
], - "config": {
- "payment_dispute_payment_dispute_payment_dispute_config_id": "krn:payment:eu1:dispute:266091:config:1",
- "total_merchant_evidence_requests": 5
}, - "created_at": "2020-04-15T08:31:00Z",
- "updated_at": "2020-05-09T08:31:00Z",
- "arbitration_started_at": "2020-05-08T00:00:00Z"
}
], - "pagination": {
- "count": 1,
- "last_item": "b040893b9e02f6445b205ae2102e3e9e1d0aa9035e61cdebde39b5c230a7bc5a",
- "total": 10
}
}
Fetch a fully detailed version of a Dispute, including all the associated requests and responses.
Complete dispute with all requests and responses
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.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "payment_dispute_id": "krn:payment:eu1:dispute:faulty-products:266091",
- "dispute_reason": "PRODUCTS_FAULTY",
- "state": "ARBITRATION_PENDING",
- "previous_state": "MERCHANT_EVIDENCE_PENDING",
- "payment_transaction_id": "krn:payment:eu1:authorization:6debe89e-98c0-486e-b7a5-08a4f6df94b0",
- "purchase_reference": "f420e0e1-971b-417a-8ece-2626387eff36",
- "payment_product_instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "dispute_details": {
- "line_items": [
- {
- "name": "Product-1",
- "product_type": "PHYSICAL_ITEM",
- "quantity": 3,
- "unit_price": 100,
}
], - "dispute_amount": 39900,
- "currency": "EUR",
- "created_by": "CUSTOMER"
}, - "merchant_evidence": [
- {
- "payment_dispute_merchant_evidence_id": "krn:payment:eu1:dispute:256947:merchant-evidence:1",
- "request": {
- "created_at": "2020-05-08T08:32:14Z",
- "state": "EVIDENCE_RECEIVED",
- "previous_state": "EVIDENCE_REQUESTED",
- "comment": "Consumer claimed delivered products were faulty"
}, - "response": {
- "created_at": "2020-05-09T09:32:18Z",
- "additional_information": "Additional free text information",
- "attachments": [
- {
- "payment_dispute_attachment_id": "krn:payment:eu1:dispute:266091:attachment:1",
- "description": "Refund confirmation"
}
], - "details": {
- "have_you_resolved_the_dispute_with_the_customer": "YES_WILL_MAKE_CHANGES_TO_PURCHASE"
}
}
}
], - "config": {
- "payment_dispute_payment_dispute_payment_dispute_config_id": "krn:payment:eu1:dispute:266091:config:1",
- "total_merchant_evidence_requests": 5
}, - "created_at": "2020-04-15T08:31:00Z",
- "updated_at": "2020-05-09T08:31:00Z",
- "arbitration_started_at": "2020-05-08T00:00:00Z"
}
A payment dispute has just been submitted to Klarna.
{- "metadata": {
- "event_type": "payment.dispute.state-change.pre-arbitration",
- "event_id": "d9f9b1a0-5b1a-4b0e-9b0a-9e9b1a0d5b1a",
- "event_version": "v1",
- "occurred_at": "2020-04-15T08:31:01Z",
- "correlation_id": "2d1557e8-17c3-466c-924a-bbc3e91c2a02",
- "subject_account_id": "krn:partner:account:206bbb83-9b6e-46fa-940d-337153c04a58",
- "instance_id": "krn:partner:product:payment:ad71bc48-8a07-4919-a2c1-103dba3fc918",
- "account_id": "krn:partner:account:206bbb83-9b6e-46fa-940d-337153c04a58",
- "recipient_account_id": "krn:partner:account:206bbb83-9b6e-46fa-940d-337153c04a58",
- "webhook_id": "krn:notification:webhook:120e5b7e-abcd-4def-8a90-dca726e639b5",
- "live": true
}, - "payload": {
- "payment_dispute_id": "krn:payment:eu1:dispute:return:266091",
- "payment_transaction_id": "krn:payment:eu1:authorization:6debe89e-98c0-486e-b7a5-08a4f6df94b0",
- "state": "PRE_ARBITRATION",
- "payment_capture_reference": "partner-capture-reference-1234",
- "dispute_reason": "RETURN_NOT_REFUNDED",
- "dispute_details": {
- "dispute_amount": 39900,
- "currency": "EUR",
- "created_by": "CUSTOMER"
}, - "config": {
- "payment_dispute_payment_dispute_config_id": "krn:payment:eu1:dispute:256947:config:1",
- "total_merchant_evidence_requests": 5
}, - "updated_at": "2020-04-15T08:31:00Z",
- "created_at": "2020-04-15T08:31:00Z"
}
}
Accept the loss of a dispute, which will be closed with the chargeback activation
Loss was accepted 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.
Not Found, the requested resource was not found.
The dispute is not in a state where the loss can be accepted. Read the error details for further information.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "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"
}
Uploads merchant attachment to be linked to a dispute response. File size limit is 7MB.
Attachment uploaded 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.
Forbidden, insufficient privileges to perform the requested operation on the resource.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "payment_dispute_attachment_id": "krn:payment:eu1:dispute:256947:attachment:3"
}
Respond to merchant evidence request.
Response to add to request
Merchant response to a dispute where the customer claims that the products were faulty
Dispute's evidence request response was submitted 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.
Forbidden, insufficient privileges to perform the requested operation on the resource.
Not Found, the requested resource was not found.
The dispute is not in a state where a response can be submitted.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
Responding to an evidence request with request type 'RETURN_NOT_REFUNDED'
{- "additional_information": "Additional free text information",
- "created_at": "2020-05-08T08:32:14Z",
- "attachments": [
- {
- "payment_dispute_attachment_id": "krn:payment:eu1:dispute:256947:attachment:1",
- "description": "Optional attachment"
}
], - "details": {
- "did_you_receive_the_return": "YES_WILL_MAKE_CHANGES_TO_PURCHASE"
}
}
{- "response_id": "krn:payment:eu1:dispute:266092:request:1:response:1",
- "created_at": "2020-05-09T09:32:18Z",
- "additional_information": "Additional free text information",
- "attachments": [
- {
- "payment_dispute_attachment_id": "krn:payment:eu1:dispute:266092:attachment:1",
- "description": "Additional attachment"
}
], - "details": {
- "did_you_receive_the_return": "YES_WILL_MAKE_CHANGES_TO_PURCHASE"
}
}