Menu
Capture an order
Capture an order
POST
/ordermanagement/v1/orders/{order_id}/capturesUse it in a workflow
- Add a step and choose the Klarna connector.
- Pick the Capture an order action (under Order Management).
- Fill in the fields below, then reference the result from later steps as
{{captureAnOrder.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"captured_amount": 0,
"description": "string",
"order_lines": [
{
"name": "string",
"quantity": 1,
"total_amount": 0,
"unit_price": 0,
"image_url": "https://yourstore.example/product/headphones.png",
"merchant_data": "Some metadata",
"product_identifiers": {
"brand": "Intel",
"category_path": "Electronics Store > Computers & Tablets > Desktops",
"color": "Denim blue",
"global_trade_item_number": "735858293167",
"manufacturer_part_number": "BOXNUC5CPYH",
"size": "4"
},
"product_url": "https://yourstore.example/product/headphones",
"quantity_unit": "pcs.",
"reference": "75001",
"subscription": {
"interval": "MONTH",
"interval_count": 0,
"name": "string"
},
"tax_rate": 0
}
],
"reference": "string",
"shipping_delay": 0,
"shipping_info": [
{
"return_shipping_company": "dhl-express",
"return_tracking_number": "93456415674545679888",
"return_tracking_uri": "http://shipping.example/findmypackage?93456415674545679888",
"shipping_company": "dhl-express",
"shipping_method": "Home",
"tracking_number": "63456415674545679874",
"tracking_uri": "http://shipping.example/findmypackage?63456415674545679874"
}
]
}
Response
Returns 201 with a any. Read it in later steps with {{captureAnOrder.response.data.<field>}}.
Need more? See the Klarna guide for connection setup and behaviour shared by every action.
Was this page helpful?