Klarna

App · 20 actions

Manage merchant orders, captures, refunds, and payout reconciliation.

Actions

ActionWhat it does
Acknowledge orderAcknowledge order.
Add capture shipping infoAdd capture shipping info.
Add order shipping infoAdd order shipping info.
Cancel orderCancel order.
Capture orderCapture order.
Extend authorization timeExtend authorization time.
Extend capture due dateExtend capture due date.
Get captureGet capture.
Get due date optionsGet merchant fees for extension of due date due date
Get orderGet order.
Get refundGet refund.
List capturesList all order captures
List payoutsReturns a collection of payouts.
List settlement transactionsReturns a collection of transactions.
Refund orderRefund order.
Release remaining authorizationRelease remaining authorization.
Send capture notificationSend capture notification.
Update authorizationUpdate authorization.
Update customer detailsUpdate customer details.
Update merchant referencesUpdate merchant references.

Acknowledge order

Acknowledge order.

Inputs

Order IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {}
}

Add capture shipping info

Add capture shipping info.

Inputs

Order IDorder_idtextRequired
Order id
Capture IDcapture_idtextRequired
Capture id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Shipping infoshipping_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 IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Shipping infoshipping_infolistRequired
New shipping info. Maximum: 500 items.

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {}
}

Cancel order

Cancel order.

Inputs

Order IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {}
}

Capture order

Capture order.

Inputs

Order IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Captured amountcaptured_amountnumberRequired
The captured amount in minor units.From 0 to 200000000.
Descriptiondescriptiontext
Description of the capture shown to the customer. Maximum 255 characters.
Order linesorder_lineslist
Order lines for this capture. Maximum 1000 items.
Referencereferencetext
Internal reference to the capture. This will be included in the settlement files. Max length is 255 characters.
Shipping delayshipping_delaynumber
Shipping delay.At least 0.
Shipping infoshipping_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 IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {}
}

Extend capture due date

Extend capture due date.

Inputs

Order IDorder_idtextRequired
Order id
Capture IDcapture_idtextRequired
Capture id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Number of daysnumber_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 IDorder_idtextRequired
Order id
Capture IDcapture_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 IDorder_idtextRequired
Order id
Capture IDcapture_idtextRequired
Capture id

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {
    "currency": "example",
    "options": []
  }
}

Get order

Get order.

Inputs

Order IDorder_idtextRequired
Order id
Klarna integratorklarna_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 IDorder_idtextRequired
Order id
Refund IDrefund_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 IDorder_idtextRequired
Order id

Outputs

datalist
The response from Klarna.
Example output
{
  "data": []
}

List payouts

Returns a collection of payouts.

Inputs

Start datestart_datedate and time
Start date.
End dateend_datedate and time
End date.
Currency codecurrency_codetext
Currency code.
Sizesizenumber
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.
Offsetoffsetnumber
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 referencepayment_referencetext
The reference id of the payout
Order IDorder_idtext
The Klarna assigned order id reference
Sizesizenumber
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.
Offsetoffsetnumber
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 IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Descriptiondescriptiontext
Description of the refund shown to the customer. Max length is 255 characters.
Order linesorder_lineslist
Order lines for the refund shown to the customer. Optional but increases the customer experience. Maximum 1000 order lines.
Referencereferencetext
Internal reference to the refund. This will be included in the settlement files. Max length is 255 characters.
Refunded amountrefunded_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 IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.

Outputs

datatext
The response from Klarna.
Example output
{
  "data": "example"
}

Send capture notification

Send capture notification.

Inputs

Order IDorder_idtextRequired
Order id
Capture IDcapture_idtextRequired
Capture id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {}
}

Update authorization

Update authorization.

Inputs

Order IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Descriptiondescriptiontext
Description of the change.
Order amountorder_amountnumberRequired
The new total order amount. Minor units.From 0 to 200000000.
Order linesorder_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 IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Shipping addressshipping_addressobject
Shipping address for the capture.

Outputs

datatext
The response from Klarna.
Example output
{
  "data": "example"
}

Update merchant references

Update merchant references.

Inputs

Order IDorder_idtextRequired
Order id
Klarna IDempotency keyklarna_idempotency_keytext
Klarna idempotency key.
Merchant reference1merchant_reference1text
New merchant reference 1. Old reference will be overwritten if this field is present.
Merchant reference2merchant_reference2text
New merchant reference 2. Old reference will be overwritten if this field is present.

Outputs

dataobject
The response from Klarna.
Example output
{
  "data": {}
}

On this page