Download OpenAPI specification:Download
The Settlements API helps you with the reconciliation of payments, made by Klarna to your bank account. Every payment has a unique payment_reference that can be found in the settlement reports and on your bank statement.
Read more on Settlement reports.
Returns a summary of payouts for each currency code in a date range.
Payout summaries
Bad request
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/payouts/summary?start_date=2019-08-24T14%3A15%3A22Z&end_date=2019-08-24T14%3A15%3A22Z¤cy_code=string'
[- {
- "summary_total_fee_correction_amount": 550,
- "summary_payout_date_start": "2016-12-14T07:52:26Z",
- "summary_total_release_amount": 550,
- "summary_settlement_currency": "USD",
- "summary_payout_date_end": "2016-12-14T07:52:26Z",
- "summary_total_tax_amount": 550,
- "summary_total_settlement_amount": 550,
- "summary_total_holdback_amount": 550,
- "summary_total_reversal_amount": 550,
- "summary_total_return_amount": 550,
- "summary_total_fee_amount": 500,
- "summary_total_commission_amount": 550,
- "summary_total_sale_amount": 500,
- "summary_total_repay_amount": 550
}
]
Returns a specific payout based on a given payment reference.
A payout
Bad request
Not found
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/payouts/{payment_reference}'
{- "totals": {
- "commission_amount": 550,
- "repay_amount": 550,
- "sale_amount": 500,
- "holdback_amount": 550,
- "tax_amount": 550,
- "settlement_amount": 550,
- "fee_correction_amount": 550,
- "reversal_amount": 550,
- "release_amount": 550,
- "return_amount": 550,
- "fee_amount": 500,
- "charge_amount": 500,
- "credit_amount": 500,
- "fee_refund_amount": 500,
- "tax_refund_amount": 500,
- "deposit_amount": 500,
- "opening_debt_balance_amount": 500,
- "closing_debt_balance_amount": 500
}, - "payment_reference": "XISA93DJ",
- "payout_date": "2016-12-14T07:52:26Z",
- "currency_code": "USD",
- "currency_code_of_registration_country": "EUR",
- "merchant_settlement_type": "NET",
- "merchant_id": "string",
}
Returns a collection of payouts.
A collection of payouts
Bad request
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/payouts?start_date=2019-08-24T14%3A15%3A22Z&end_date=2019-08-24T14%3A15%3A22Z¤cy_code=string&size=20&offset=0'
{- "payouts": [
- {
- "totals": {
- "commission_amount": 550,
- "repay_amount": 550,
- "sale_amount": 500,
- "holdback_amount": 550,
- "tax_amount": 550,
- "settlement_amount": 550,
- "fee_correction_amount": 550,
- "reversal_amount": 550,
- "release_amount": 550,
- "return_amount": 550,
- "fee_amount": 500,
- "charge_amount": 500,
- "credit_amount": 500,
- "fee_refund_amount": 500,
- "tax_refund_amount": 500,
- "deposit_amount": 500,
- "opening_debt_balance_amount": 500,
- "closing_debt_balance_amount": 500
}, - "payment_reference": "XISA93DJ",
- "payout_date": "2016-12-14T07:52:26Z",
- "currency_code": "USD",
- "currency_code_of_registration_country": "EUR",
- "merchant_settlement_type": "NET",
- "merchant_id": "string",
}
], - "pagination": {
- "count": 10,
- "total": 42,
- "offset": 10
}
}
More information about this CSV format is available at: https://docs.klarna.com/settlement-reports
A payout
Bad request
Not found
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/reports/payout-with-transactions?payment_reference=string'
Returns a collection of transactions.
A collection of payouts
Bad request
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/transactions?payment_reference=string&order_id=string&size=20&offset=0'
{- "transactions": [
- {
- "amount": 2000,
- "capture_id": "33db6f16-9f43-43fa-a587-cc51411c98e4",
- "merchant_reference1": "string",
- "sale_date": "2016-12-14T07:52:26Z",
- "type": "SALE",
- "capture_date": "2016-12-14T07:52:26Z",
- "payment_reference": "XISA93DJ",
- "order_id": "ce17b4cb-147f-48b7-b8e6-dde2fa397f04",
- "refund_id": "ef1baa1f-b42e-44be-b9e4-4b94510b53e5",
- "short_order_id": "shortrid",
- "merchant_reference2": "string",
- "currency_code": "USD",
- "purchase_country": "PL",
- "vat_rate": 2000,
- "vat_amount": 1000,
- "shipping_country": "PL",
- "initial_payment_method_type": "direct_debit",
- "initial_number_of_installments": 3,
- "initial_payment_method_monthly_downpayments": 12,
- "merchant_capture_reference": "string",
- "merchant_refund_reference": "string",
- "detailed_type": "PURCHASE",
- "tax_in_currency_of_registration_country": 1000,
- "currency_code_of_registration_country": "EUR",
- "klarna_comment": "Loan Amortisation 2022-12-01",
- "reversal_reference": "krn:klarna:eu1:dispute:goods_not_received:263099944398666"
}
], - "pagination": {
- "count": 10,
- "total": 42,
- "offset": 10
}
}
More information about this CSV format is available at: https://docs.klarna.com/settlement-reports
A summary of payouts
Bad request
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/reports/payouts-summary-with-transactions?start_date=2019-08-24T14%3A15%3A22Z&end_date=2019-08-24T14%3A15%3A22Z'
Returns a summary for all payouts between the given dates
A summary of payouts
Bad request
curl -i -X GET \ 'https://api.klarna.com/settlements/v1/reports/payouts-summary?start_date=2019-08-24T14%3A15%3A22Z&end_date=2019-08-24T14%3A15%3A22Z'