Use the Order management API to partially capture an order.
When you partially fulfill the order (for example, you have sent some of the products to the customer but not all of them), you need to capture the amount for the sent items through this API call.
You can use the same endpoint for making full and partial captures. For a full capture, you send the total order amount. For a partial capture, you only send the order amount corresponding to the items you sent.
To capture a part of the order amount, send a
POST request to the
Include the following in your request:
Klarna-Idempotency-Key: This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts.
captured_amount(required): the partial order amount to be captured. It must be less than the total
reference(optional): Internal reference to the capture. This will be included in the settlement files.
description(optional): Description of the capture shown to the customer.
order_lines(optional): list of details associated with this capture
shipping_info(optional): shipping details such as company and tracking number. If you're shipping physical goods, you need to have shipping information available at this point. For more information, see the Add shipping information section.
If the request is successful, you'll receive a
201 Created response including
location as HTTP response headers.
If your request contains errors, you'll receive an error response. Make sure the
order_id is correct.
You can use the
correlation_id and the
order_id values to troubleshoot the call in the Merchant portal logs section.
Ready to send this request? See the API reference of this call.