Use the Order management API to check the details of a capture.
When you want to check the details of a capture, this API call provides you with capture information like shipping info, order lines, capture id, amount, and date.
To check the capture details, send a GET
request to the {apiUrl}/ordermanagement/v1/orders/{order_id}/captures/{capture_id}
endpoint.
Provide the order_id
and the specific capture_id
you want to know about. The order_id
is the identifier you get in a successful response when placing a new order, and the capture_id
is the identifier you get when successfully capturing an order.
In response to your call, you receive a data object containing the capture details.
{
"capture_id": "5b33ed47-79d0-4d76-99ea-4afaa7c8e552",
"klarna_reference": "4K7Q6QF6-1",
"captured_amount": 6000,
"captured_at": "2017-01-10T10:31:17.973Z",
"description": "Shipped the full order",
"order_lines": [
{
"reference": "123050",
"type": "physical",
Sample of a success response to check capture details.
If your request contains errors, you'll receive an error response. Ensure the order_id
and the capture_id
values you provided are valid and correctly formatted.
You can use the correlation_id
and the order_id
values to troubleshoot the call in the Merchant portal logs section.
{
"error_code": "NO_SUCH_ORDER",
"error_messages": [
"Order 7849fd84-47dc-4919-a7ce-47b9f46156f cannot be found"
],
"correlation_id": "f072554f-ef99-4b21-85da-633355aab998"
}
Sample of an error response to check capture details.
Ready to send this request? See the API reference of this call.