General

Important note

The KlarnaKP service is an update of Buckaroo's old Klarna service. The new service contains the following changes.

General

  • The service code has changed from klarna to klarnakp

Reserve call

  • Request parameters Encoding and PClass are no longer available
  • The gateway response now contains a redirect URL for completion of the Klarna authorization.

Pay call

  • Request parameters SendByMail and SendByEmail are no longer available.

GetPClasses call

  • This call is no longer available

Introduction

Klarna provides the option for customers to pay after delivery in one time. The concept includes a customer risk check before the financial risk is transferred to Klarna. By transferring the financial risk to Klarna the merchant is eliminating the order related financial risk. To start the collection process Klarna needs to be informed on dispatch.

The general flow of a Klarna payment is asd follows. After the shopping cycle the webshop redirects the consumer to the checkout. In this checkout Klarna can be chosen and the check for using Klarna will be done at confirming the order. After the check comes back with an OK, the order can be shipped, while the payment will be handled with Klarna. This cycle is called the Reserve / Authorize. When the order is ready to be shipped, the invoice will be generated and the announcement of the (partial) shipment can be send to Buckaroo. This cycle is called the Activate / Capture. Multiple captures are possible when the order will be send in multiple shipments. This creates an invoice per shipment. When (part) of the shipment is send back to the merchant, a part of the value of the return can be refunded. The payout of Klarna and the consumer collection will be corrected to meet the total value of the shopped goods.

Servicecodes and actions

The Klarna service uses the servicecode: klarnakp

The Klarna service supports the following actions and can be used with Channel "Web":

Transaction requests: Pay, Refund. These requests are to be sent to https://testcheckout.buckaroo.nl/json/Transaction (for tests) or https://checkout.buckaroo.nl/json/Transaction (for live)

Data requests: Reserve, CancelReservation, UpdateReservation. These requests are to be sent to https://testcheckout.buckaroo.nl/json/DataRequest (for tests) or https://checkout.buckaroo.nl/json/DataRequest (for live).

Autocapture

Buckaroo can automatically perform an immediate full capture on a requested Reservation if the Autocapture is activated in the merchant's account. This can be done by request at Buckaroo Frontoffice and will only be activated if the merchant has an approval for this with Klarna.

Reserve

Start an order by performing a Reserve request. When approved by Klarna, a reservation will be created for the specified products. For this call, the AmounDebit parameter can be left out (but do specify the currency). A discount should be specified as an article, with a negative ArticlePrice. Lastly, B2B orders are not supported..

View in playground

Request


JSON gateway request

ClientIP
Required

IP-address of the customer, in the following format: "ClientIP": { "Type": 0, "Address": "0.0.0.0" }, where type 0 = IPv4 and type 1 = IPv6. Note: this is a basic parameter.

ArticleTitle
Required

Name of article

ArticleNumber
Required

Number by which the article is identified

ArticleType

Whether the article is a product or a discount (value = General), a shipping fee (value = ShipmentFee) or a fee for the chosen payment method (value = HandlingFee). This parameter is not required but can be used to place the products in the right order on the invoice that Klarna sends.

ArticlePrice
Required

Price per article (including VAT)

ArticleQuantity
Required

Number of articles

ArticleVat
Required

VAT percentage of article

BillingCareOf

Person/company receiving the invoice on behalf of billed person

BillingCellPhoneNumber

Billing cell phone number. It is required to sent in at least 1 billing phone number; either BillingCellPhoneNumber or BillingPhoneNumber.

BillingCity
Required

Billing city

BillingCompanyName

Billing company name

BillingCountry
Required

Billing country. Possible values: NL (Netherlands), DE (Germany) or AT (Austria).

BillingEmail
Required

Billing email address

BillingFirstName
Required

Billing first name

BillingLastName

Billing last name

BillingHouseNumber
Required

Billing house number

BillingHouseNumberSuffix

Billing house number suffix (NL)

BillingPhoneNumber

Billing phone number. It is required to sent in at least 1 billing phone number; either BillingCellPhoneNumber or BillingPhoneNumber.

BillingPostalCode

Billing postal code

BillingStreet
Required

Billing street

Gender
Required

The gender of the customer. 1=Male, 2=Female.

OperatingCountry
Required

Country where your sales will be. Possible values: NL (Netherlands), DE (Germany) or AT (Austria). It must be the same as BillingCountry.

Pno
Required

Consumer’s birth date. Use the following format: DDMMYYYY

ShippingSameAsBilling
Required

Specifies whether the billing address is the same as the shipping address

ShippingCareOf

Person/company receiving the shipment on behalf of the shipping recipient

ShippingCellPhoneNumber

Shipping cell phone number. If Shipping address is provided, then it is required to sent in at least 1 shipping phone number; either ShippingCellPhoneNumber or ShippingPhoneNumber.

ShippingCity

Shipping city

ShippingCompany

Shipping company name

ShippingCountry

Shipping country code. It should be the same as Billing country.

ShippingEmail

Shipping email address

ShippingFirstName

Shipping first name. It should be the same as Billing first name

ShippingLastName

Shipping last name. It should be the same as Billing last name

ShippingHouseNumber

Shipping house number

ShippingHouseNumberSuffix

Shipping house number suffix

ShippingPhoneNumber

Shipping phone number. If Shipping address is provided, then it is required to sent in at least 1 shipping phone number; either ShippingCellPhoneNumber or ShippingPhoneNumber.

ShippingPostalCode

Shipping postal code

ShippingStreet

Shipping street

JSON

copy
{
   "Currency": "EUR",
   "Invoice": "testinvoice 1234zh",
   "ClientIP": {
      "Type": 0,
      "Address": "0.0.0.0"
   },
   "Services": {
      "ServiceList": [
         {
            "Name": "klarnakp",
            "Action": "Reserve",
            "Parameters": [
               {
                  "Name": "ArticleTitle",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "Blue Toy Car"
               },
               {
                  "Name": "ArticleNumber",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "12345"
               },
               {
                  "Name": "ArticleType",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "General"
               },
               {
                  "Name": "ArticleQuantity",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "1"
               },
               {
                  "Name": "ArticlePrice",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "10.00"
               },
               {
                  "Name": "ArticleVat",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "19"
               },
               {
                  "Name": "ArticleTitle",
                  "GroupType": "Article",
                  "GroupID": "2",
                  "Value": "Yellow Toy Train"
               },
               {
                  "Name": "ArticleNumber",
                  "GroupType": "Article",
                  "GroupID": "2",
                  "Value": "123456"
               },
               {
                  "Name": "ArticleType",
                  "GroupType": "Article",
                  "GroupID": "2",
                  "Value": "General"
               },
               {
                  "Name": "ArticleQuantity",
                  "GroupType": "Article",
                  "GroupID": "2",
                  "Value": "1"
               },
               {
                  "Name": "ArticlePrice",
                  "GroupType": "Article",
                  "GroupID": "2",
                  "Value": "5.00"
               },
               {
                  "Name": "ArticleVat",
                  "GroupType": "Article",
                  "GroupID": "2",
                  "Value": "19"
               },
               {
                  "Name": "ArticleTitle",
                  "GroupType": "Article",
                  "GroupID": "3",
                  "Value": "Discount"
               },
               {
                  "Name": "ArticleNumber",
                  "GroupType": "Article",
                  "GroupID": "3",
                  "Value": "1234567"
               },
               {
                  "Name": "ArticleQuantity",
                  "GroupType": "Article",
                  "GroupID": "3",
                  "Value": "1"
               },
               {
                  "Name": "ArticlePrice",
                  "GroupType": "Article",
                  "GroupID": "3",
                  "Value": "-1.00"
               },
               {
                  "Name": "ArticleVat",
                  "GroupType": "Article",
                  "GroupID": "3",
                  "Value": "0"
               },
               {
                  "Name": "BillingFirstName",
                  "Value": "Testperson-nl"
               },
               {
                  "Name": "BillingLastName",
                  "Value": "Approved"
               },
               {
                  "Name": "BillingStreet",
                  "Value": "Neherkade"
               },
               {
                  "Name": "BillingHouseNumber",
                  "Value": "1"
               },
               {
                  "Name": "BillingPostalCode",
                  "Value": "2521VA"
               },
               {
                  "Name": "BillingCity",
                  "Value": "Gravenhage"
               },
               {
                  "Name": "BillingCountry",
                  "Value": "NL"
               },
               {
                  "Name": "BillingCellPhoneNumber",
                  "Value": "0612345678"
               },
               {
                  "Name": "BillingEmail",
                  "Value": "youremail@example.nl"
               },
               {
                  "Name": "ShippingFirstName",
                  "Value": "Testperson-nl"
               },
               {
                  "Name": "ShippingLastName",
                  "Value": "Approved"
               },
               {
                  "Name": "ShippingStreet",
                  "Value": "Neherkade"
               },
               {
                  "Name": "ShippingHouseNumber",
                  "Value": "2"
               },
               {
                  "Name": "ShippingPostalCode",
                  "Value": "2521VA"
               },
               {
                  "Name": "ShippingCity",
                  "Value": "Gravenhage"
               },
               {
                  "Name": "ShippingCountry",
                  "Value": "NL"
               },
               {
                  "Name": "ShippingPhoneNumber",
                  "Value": "0698765432"
               },
               {
                  "Name": "ShippingEmail",
                  "Value": "youremail@example.nl"
               },
               {
                  "Name": "Gender",
                  "Value": "1"
               },
               {
                  "Name": "OperatingCountry",
                  "Value": "NL"
               },
               {
                  "Name": "Pno",
                  "Value": "10071970"
               },
               {
                  "Name": "ShippingSameAsBilling",
                  "Value": "false"
               }
            ]
         }
      ]
   }
}

Response


JSON gateway response

If the request has a valid structure and a valid signature, a transaction will be created in the Payment Engine and a gateway response will be returned. In this case, the response will return a pending status and an additional action is required before the transaction can be completed; the customer needs to be redirected to the payment environment through the returned RedirectURL.

JSON

copy
{
    "Key": "49EF793FC7AC404EABC4F57A32F5F08D",
    "Status": {
        "Code": {
            "Code": 791,
            "Description": "Pending processing"
        },
        "SubCode": {
            "Code": "S002",
            "Description": "An additional action is required: Redirect to KlarnaKp"
        },
        "DateTime": "2019-12-03T14:48:27"
    },
    "RequiredAction": {
        "RedirectURL": "https://checkout.buckaroo.nl/html/redirect.ashx?r=3D349C783491413EBAF06660932EF0BF",
        "RequestedInformation": null,
        "Name": "Redirect",
        "TypeDeprecated": 0
    },
    "Services": null,
    "CustomParameters": null,
    "AdditionalParameters": null,
    "RequestErrors": null,
    "ServiceCode": "KlarnaKp",
    "IsTest": true,
    "ConsumerMessage": null
}

Push


JSON push response

When the customer has successfully completed the transaction and returned to the merchant environment, Buckaroo will update the transaction status to success. This status update will be pushed to the push URL provided by the merchant.

ReservationNumber

Klarna reservation number. This number is required for the Pay call.

JSON

copy
{
   "DataRequest": {
      "Key": "49EF793FC7AC404EABC4F57A32F5F08D",
      "Invoice": "testinvoice 1234zh",
      "ServiceCode": "klarnakp",
      "ActionCode": "Reserve",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Transaction successfully processed"
         },
         "SubCode": null,
         "DateTime": "2017-09-22T09:13:49+02:00"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountDebit": 14,
      "Services": [
         {
            "Name": "klarnakp",
            "Action": null,
            "Parameters": [
               {
                  "Name": "ReservationNumber",
                  "Value": "2379012xxx"
               }
            ],
            "VersionAsProperty": 1
         }
      ],
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 0,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": null
   }
}

CancelReservation

In case of a reservation, the requested amount will be reserved from the customer’s account. This reservation will have to be activated (the amount will be captured): the amount will be deducted from the customer’s account or canceled. Both full- and partial activations are possible. When an accepted reservation will not be shipped this should be cancel to clear the reserved amount of the consumer. This can also be used to cancel the remaining part in case of partial shipment that cannot be shipped.

View in playground

Request


JSON gateway request

ReservationNumber
Required

Klarna reservation number

JSON

copy
{
   "Currency": "EUR",
   "Invoice": "testinvoice 123",
   "Services": {
      "ServiceList": [
         {
            "Name": "klarnakp",
            "Action": "CancelReservation",
            "Parameters": [
               {
                  "Name": "ReservationNumber",
                  "Value": "xxxxxxxxx"
               }
            ]
         }
      ]
   }
}

Response


JSON gateway response

This response has no service specific parameters

JSON

copy
{
   "Key": "E3901DFE6C574081BDE223764C39XXXX",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2017-08-01T12:13:20"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "ServiceCode": "klarnakp",
   "IsTest": true,
   "ConsumerMessage": null
}

Push


JSON Push response

This response has no service specific parameters

JSON

copy
{
   "DataRequest": {
      "Key": "E3901DFE6C574081BDE223764C39XXXX",
      "Invoice": "testinvoice 123",
      "ServiceCode": "klarnakp",
      "ActionCode": "CancelReservation",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Transaction successfully processed"
         },
         "SubCode": null,
         "DateTime": "2017-08-01T12:13:20+02:00"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountDebit": 0,
      "Services": null,
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 0,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": null
   }
}

UpdateReservation

If a reservation needs to be changed, it is possible to do this via an UpdateReservation request. When updating the products in the reservation, please note that it is only possible to do an updatereservation for the same amount that is reserved or a lower amount. When updating the address information of the customer, please note that this results in Klarna doing a risk check again, with the possibility of being declined.

View in playground

Request


JSON gateway request

ArticleNumber

Number by which the article is identified

ArticleTitle
Required

Name of article

ArticleType

Whether the article is a product or a discount (value = General), a shipping fee (value = ShipmentFee) or a fee for the chosen payment method (value = HandlingFee). This parameter is not required but can be used to place the products in the right order on the invoice that Klarna sends.

ArticlePrice

Price per article (including VAT)

ArticleQuantity

Number of articles

ArticleVat

VAT percentage of article

BillingCareOf

Person/company receiving the invoice on behalf of billed person

BillingCellPhoneNumber

Billing cell phone number

BillingCity

Billing city

BillingCompanyName

Billing company name

BillingCountry

Billing country

BillingEmail

Billing email address

BillingFirstName

Billing first name

BillingLastName

Billing last name

BillingHouseNumber

Billing house number

BillingHouseNumberSuffix

Billing house number suffix

BillingPhoneNumber

Billing phone number (Need minimal phone or mobile)

BillingPostalCode

Billing postal code

BillingStreet

Billing street

ReservationNumber
Required

Klarna reservation number

ShippingCareOf

Person/company receiving the shipment on behalf of the shipping recipient

ShippingCellPhoneNumber

Shipping cell phone number. If Shipping address is provided, then it is required to sent in at least 1 shipping phone number; either ShippingCellPhoneNumber or ShippingPhoneNumber.

ShippingCity

Shipping city

ShippingCompany

Shipping company name

ShippingCountry

Shipping country. Should be the same as Billing country

ShippingEmail

Shipping email address

ShippingFirstName

Shipping first name. Should be the same as Billing first name

ShippingLastName

Shipping last name. Should be the same as Billing last name

ShippingHouseNumber

Shipping house number

ShippingHouseNumberSuffix

Shipping house number suffix

ShippingPhoneNumber

Shipping phone number. If Shipping address is provided, then it is required to sent in at least 1 shipping phone number; either ShippingCellPhoneNumber or ShippingPhoneNumber.

ShippingPostalCode

Shipping postal code

ShippingSameAsBilling

Specifies whether the billing address is the same as the shipping address

ShippingStreet

Shipping street

JSON

copy
{
   "Currency": "EUR",
   "Invoice": "testinvoice 1234",
   "Services": {
      "ServiceList": [
         {
            "Name": "klarnakp",
            "Action": "UpdateReservation",
            "Parameters": [
               {
                  "Name": "ArticleTitle",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "Blue Toy Car"
               },
               {
                  "Name": "ArticleNumber",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "12345"
               },
               {
                  "Name": "ArticleType",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "General"
               },
               {
                  "Name": "ArticleQuantity",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "1"
               },
               {
                  "Name": "ArticlePrice",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "10.00"
               },
               {
                  "Name": "ArticleVat",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "19"
               },
               {
                  "Name": "BillingFirstName",
                  "Value": "Testperson-nl"
               },
               {
                  "Name": "BillingLastName",
                  "Value": "Approved"
               },
               {
                  "Name": "BillingStreet",
                  "Value": "Neherkade"
               },
               {
                  "Name": "BillingHouseNumber",
                  "Value": "1"
               },
               {
                  "Name": "BillingPostalCode",
                  "Value": "2521VA"
               },
               {
                  "Name": "BillingCity",
                  "Value": "Gravenhage"
               },
               {
                  "Name": "BillingCountry",
                  "Value": "NL"
               },
               {
                  "Name": "BillingCellPhoneNumber",
                  "Value": "0612345678"
               },
               {
                  "Name": "BillingEmail",
                  "Value": "your@email.nl"
               },
               {
                  "Name": "ReservationNumber",
                  "Value": "xxxxxxx"
               },
               {
                  "Name": "ShippingSameAsBilling",
                  "Value": "true"
               }
            ]
         }
      ]
   }
}

Response


JSON gateway response

JSON

copy
{
   "Key": "AE5CE6004711494C81741182E14Bxxxx",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2017-08-14T15:06:39"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "ServiceCode": "klarnakp",
   "IsTest": true,
   "ConsumerMessage": null
}

Push


JSON push response

JSON

copy
{
   "DataRequest": {
      "Key": "AE5CE6004711494C81741182E14Bxxxx",
      "Invoice": "testinvoice 1234",
      "ServiceCode": "klarnakp",
      "ActionCode": "UpdateReservation",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Transaction successfully processed"
         },
         "SubCode": null,
         "DateTime": "2017-08-14T15:06:39+02:00"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountDebit": 0,
      "Services": null,
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 0,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": null
   }
}

Pay

When a reservation is accepted, the merchant can send the product to the customer and do an activation of the reservation. The shipment needs to be within 14 days from the reservation date (unless otherwise agreed upon with Klarna). When an order is shipped outside the reservation period and the consumer has not paid during the full collection period, Klarna has the option to revoke the payout to the merchant.

View in playground

Request


JSON gateway request

ReservationNumber
Required

Klarna reservation number

ArticleNumber

Article number as sent in the Reserve request (only required for partial payments)

ArticleQuantity

The number of articles (only required for partial payments)

JSON

copy
{
   "Currency": "EUR",
   "AmountDebit": 10,
   "Invoice": "testinvoice 123",
   "Services": {
      "ServiceList": [
         {
            "Name": "klarnakp",
            "Action": "Pay",
            "Parameters": [
               {
                  "Name": "ArticleNumber",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "12345"
               },
               {
                  "Name": "ArticleQuantity",
                  "GroupType": "Article",
                  "GroupID": "1",
                  "Value": "1"
               },
               {
                  "Name": "ReservationNumber",
                  "Value": "2377577xxx"
               }
            ]
         }
      ]
   }
}

Response


JSON gateway response

This response has no service specific parameters

InvoiceNumber

Invoice number of Klarna to this shipment

JSON

copy
{
   "Key": "CC344AF79CB14DFE96392D083E06xxx",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2017-08-14T16:39:08"
   },
   "RequiredAction": null,
   "Services": [
      {
         "Name": "klarnakp",
         "Action": null,
         "Parameters": [
            {
               "Name": "InvoiceNumber",
               "Value": "4170859107094xxxx"
            }
         ]
      }
   ],
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "Invoice": "testinvoice 123",
   "ServiceCode": "klarnakp",
   "IsTest": true,
   "Currency": "EUR",
   "AmountDebit": 10,
   "TransactionType": "C700",
   "MutationType": 1,
   "RelatedTransactions": null,
   "ConsumerMessage": null,
   "Order": null,
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": null,
   "PayerHash": null,
   "PaymentKey": "198B430A761A4BEE93A280EC128Bxxxx"
}

Push


JSON push response

This response has no service specific parameters

InvoiceNumber

Invoice number of Klarna to this shipment

JSON

copy
{
   "Transaction": {
      "Key": "CC344AF79CB14DFE96392D083E06xxxx",
      "Invoice": "testinvoice 123",
      "ServiceCode": "klarnakp",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Success"
         },
         "SubCode": {
            "Code": "S001",
            "Description": "Transaction successfully processed"
         },
         "DateTime": "2017-08-14T16:39:08"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountDebit": 10,
      "TransactionType": "C700",
      "Services": [
         {
            "Name": "klarnakp",
            "Action": null,
            "Parameters": [
               {
                  "Name": "InvoiceNumber",
                  "Value": "4170859107094xxxx"
               }
            ],
            "VersionAsProperty": 1
         }
      ],
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 1,
      "RelatedTransactions": null,
      "IsCancelable": false,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": "198B430A761A4BEE93A280EC128Bxxxx"
   }
}

Refund

After a successful payment, a refund action can be performed. Please keep in mind to use the parameter Amount_Credit to specify the refund amount and Originaltransaction to refer to the payment transaction.

View in playground

Request


JSON gateway request

JSON

copy
{
   "Currency": "EUR",
   "AmountCredit": 1.45,
   "Invoice": "100004441",
   "OriginalTransactionKey": "FC693CDE6C4D447094E37633BA8Bxxxx",
   "Services": {
      "ServiceList": [
         {
            "Name": "klarnakp",
            "Action": "Refund"
         }
      ]
   }
}

Response


JSON gateway response

JSON

copy
{
   "Key": "10C63E926E724A4E8FF53246951Exxxx",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2017-08-14T17:15:33"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "Invoice": "100004441",
   "ServiceCode": "klarnakp",
   "IsTest": true,
   "Currency": "EUR",
   "AmountCredit": 1.45,
   "TransactionType": "C701",
   "MutationType": 1,
   "RelatedTransactions": [
      {
         "RelationType": "refund",
         "RelatedTransactionKey": "FC693CDE6C4D447094E37633BA8Bxxxx"
      }
   ],
   "ConsumerMessage": null,
   "Order": null,
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": null,
   "PayerHash": null,
   "PaymentKey": "608987C866A3462FA5AB550C290Axxxx"
}

Push


JSON push response

JSON

copy
{
   "Transaction": {
      "Key": "10C63E926E724A4E8FF53246951Exxxx",
      "Invoice": "100004441",
      "ServiceCode": "klarnakp",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Succes"
         },
         "SubCode": {
            "Code": "S001",
            "Description": "Transactie succesvol uitgevoerd"
         },
         "DateTime": "2017-08-14T17:15:33+02:00"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountCredit": 1.45,
      "TransactionType": "C701",
      "Services": null,
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 1,
      "RelatedTransactions": [
         {
            "RelationType": "refund",
            "RelatedTransactionKey": "FC693CDE6C4D447094E37633BA8Bxxxx"
         }
      ],
      "IsCancelable": false,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": "608987C866A3462FA5AB550C290Axxxx"
   }
}