Klarna
App · 20 actions
Manage merchant orders, captures, refunds, and payout reconciliation.
Actions
| Action | What it does |
|---|---|
| Acknowledge order | Acknowledge order. |
| Add capture shipping info | Add capture shipping info. |
| Add order shipping info | Add order shipping info. |
| Cancel order | Cancel order. |
| Capture order | Capture order. |
| Extend authorization time | Extend authorization time. |
| Extend capture due date | Extend capture due date. |
| Get capture | Get capture. |
| Get due date options | Get merchant fees for extension of due date due date |
| Get order | Get order. |
| Get refund | Get refund. |
| List captures | List all order captures |
| List payouts | Returns a collection of payouts. |
| List settlement transactions | Returns a collection of transactions. |
| Refund order | Refund order. |
| Release remaining authorization | Release remaining authorization. |
| Send capture notification | Send capture notification. |
| Update authorization | Update authorization. |
| Update customer details | Update customer details. |
| Update merchant references | Update merchant references. |
Acknowledge order
Acknowledge order.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Add capture shipping info
Add capture shipping info.
Inputs
- Order ID
order_idtextRequired - Order id
- Capture ID
capture_idtextRequired - Capture id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Shipping info
shipping_infolistRequired - New shipping info. Maximum: 500 items.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Add order shipping info
Add order shipping info.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Shipping info
shipping_infolistRequired - New shipping info. Maximum: 500 items.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Cancel order
Cancel order.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Capture order
Capture order.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Captured amount
captured_amountnumberRequired - The captured amount in minor units.From 0 to 200000000.
- Description
descriptiontext - Description of the capture shown to the customer. Maximum 255 characters.
- Order lines
order_lineslist - Order lines for this capture. Maximum 1000 items.
- Reference
referencetext - Internal reference to the capture. This will be included in the settlement files. Max length is 255 characters.
- Shipping delay
shipping_delaynumber - Shipping delay.At least 0.
- Shipping info
shipping_infolist - Shipping information for this capture. Maximum 500 items.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"capture_id": "example",
"location": "example"
}
}Extend authorization time
Extend authorization time.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Extend capture due date
Extend capture due date.
Inputs
- Order ID
order_idtextRequired - Order id
- Capture ID
capture_idtextRequired - Capture id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Number of days
number_of_daysnumberRequired - Number of days to extend the due date.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Get capture
Get capture.
Inputs
- Order ID
order_idtextRequired - Order id
- Capture ID
capture_idtextRequired - Capture id
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"billing_address": {
"attention": "example",
"city": "example",
"country": "example",
"email": "example",
"family_name": "example",
"given_name": "example",
"organization_name": "example",
"phone": "example",
"postal_code": "example",
"region": "example",
"street_address": "example",
"street_address2": "example",
"title": "example"
},
"capture_id": "example",
"captured_amount": 1,
"captured_at": "example",
"description": "example",
"klarna_reference": "example",
"order_lines": [],
"reference": "example",
"refunded_amount": 1,
"shipping_address": {
"attention": "example",
"city": "example",
"country": "example",
"email": "example",
"family_name": "example",
"given_name": "example",
"organization_name": "example",
"phone": "example",
"postal_code": "example",
"region": "example",
"street_address": "example",
"street_address2": "example",
"title": "example"
},
"shipping_info": []
}
}Get due date options
Get merchant fees for extension of due date due date
Inputs
- Order ID
order_idtextRequired - Order id
- Capture ID
capture_idtextRequired - Capture id
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"currency": "example",
"options": []
}
}Get order
Get order.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna integrator
klarna_integratortext - Klarna integrator.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"billing_address": {
"attention": "example",
"city": "example",
"country": "example",
"email": "example",
"family_name": "example",
"given_name": "example",
"organization_name": "example",
"phone": "example",
"postal_code": "example",
"region": "example",
"street_address": "example",
"street_address2": "example",
"title": "example"
},
"captured_amount": 1,
"captures": [],
"created_at": "example",
"customer": {
"date_of_birth": "example",
"national_identification_number": "example"
},
"expires_at": "example",
"fraud_status": "example",
"initial_payment_method": {
"description": "example",
"number_of_installments": 1,
"type": "example"
},
"klarna_reference": "example",
"locale": "example",
"merchant_data": "example",
"merchant_reference1": "example",
"merchant_reference2": "example",
"order_amount": 1,
"order_id": "example",
"order_lines": [],
"original_order_amount": 1,
"purchase_country": "example",
"purchase_currency": "example",
"refunded_amount": 1,
"refunds": [],
"remaining_authorized_amount": 1,
"selected_shipping_option": {
"carrier": "example",
"carrier_product": {
"identifier": "example",
"name": "example"
},
"class": "example",
"id": "example",
"location": {
"address": {
"city": "example",
"country": "example",
"postal_code": "example",
"region": "example",
"street_address": "example",
"street_address__2": "example"
},
"id": "example",
"name": "example",
"price": 1
},
"method": "example",
"name": "example",
"price": 1,
"selected_addons": [],
"tax_amount": 1,
"tax_rate": 1,
"timeslot": {
"cutoff": "example",
"end": "example",
"id": "example",
"price": 1,
"start": "example"
},
"tms_reference": "example",
"type": "example"
},
"shipping_address": {
"attention": "example",
"city": "example",
"country": "example",
"email": "example",
"family_name": "example",
"given_name": "example",
"organization_name": "example",
"phone": "example",
"postal_code": "example",
"region": "example",
"street_address": "example",
"street_address2": "example",
"title": "example"
},
"shipping_info": [],
"status": "AUTHORIZED"
}
}Get refund
Get refund.
Inputs
- Order ID
order_idtextRequired - Order id
- Refund ID
refund_idtextRequired - Refund id
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"credit_invoice": false,
"description": "example",
"order_lines": [],
"reference": "example",
"refund_id": "example",
"refunded_amount": 1,
"refunded_at": "example"
}
}List captures
List all order captures
Inputs
- Order ID
order_idtextRequired - Order id
Outputs
datalist- The response from Klarna.
Example output
{
"data": []
}List payouts
Returns a collection of payouts.
Inputs
- Start date
start_datedate and time - Start date.
- End date
end_datedate and time - End date.
- Currency code
currency_codetext - Currency code.
- Size
sizenumber - How many elements to include in the result. If no value for size is provided, a default of 20 will be used. A maximum of 500 can be setAt most 500. Default:
20. - Offset
offsetnumber - The current offset. Describes "where" in a collection the current starts.Default:
0.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"pagination": {
"count": 1,
"next": "example",
"offset": 1,
"prev": "example",
"total": 1
},
"payouts": []
}
}List settlement transactions
Returns a collection of transactions.
Inputs
- Payment reference
payment_referencetext - The reference id of the payout
- Order ID
order_idtext - The Klarna assigned order id reference
- Size
sizenumber - How many elements to include in the result. If no value for size is provided, a default of 20 will be used. A maximum of 500 can be set.At most 500. Default:
20. - Offset
offsetnumber - The current offset. Describes "where" in a collection the current starts.Default:
0.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"pagination": {
"count": 1,
"next": "example",
"offset": 1,
"prev": "example",
"total": 1
},
"transactions": []
}
}Refund order
Refund order.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Description
descriptiontext - Description of the refund shown to the customer. Max length is 255 characters.
- Order lines
order_lineslist - Order lines for the refund shown to the customer. Optional but increases the customer experience. Maximum 1000 order lines.
- Reference
referencetext - Internal reference to the refund. This will be included in the settlement files. Max length is 255 characters.
- Refunded amount
refunded_amountnumberRequired - Refunded amount in minor units.From 0 to 200000000.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {
"location": "example",
"refund_id": "example"
}
}Release remaining authorization
Release remaining authorization.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
Outputs
datatext- The response from Klarna.
Example output
{
"data": "example"
}Send capture notification
Send capture notification.
Inputs
- Order ID
order_idtextRequired - Order id
- Capture ID
capture_idtextRequired - Capture id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}Update authorization
Update authorization.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Description
descriptiontext - Description of the change.
- Order amount
order_amountnumberRequired - The new total order amount. Minor units.From 0 to 200000000.
- Order lines
order_lineslist - New set of order lines for the order.
Outputs
datatext- The response from Klarna.
Example output
{
"data": "example"
}Update customer details
Update customer details.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Shipping address
shipping_addressobject - Shipping address for the capture.
Outputs
datatext- The response from Klarna.
Example output
{
"data": "example"
}Update merchant references
Update merchant references.
Inputs
- Order ID
order_idtextRequired - Order id
- Klarna IDempotency key
klarna_idempotency_keytext - Klarna idempotency key.
- Merchant reference1
merchant_reference1text - New merchant reference 1. Old reference will be overwritten if this field is present.
- Merchant reference2
merchant_reference2text - New merchant reference 2. Old reference will be overwritten if this field is present.
Outputs
dataobject- The response from Klarna.
Example output
{
"data": {}
}