Klarna Server-to-Server Session Management APIs
Radial offers server-to-server APIs for managing Klarna authorization sessions. These APIs are an alternative to the Javascript implementation and are appropriate for solutions such as mobile apps.
Session Data
Session data is managed with the InitializePaymentAuthorizationRequest message. This message is used both to create the initial session and to update the session details as user or order details change.
URI Summary
Action |
URI Template |
URI Example |
Request Type |
Response |
---|---|---|---|---|
POST |
/v[M.m]/stores/[StoreID]/payments/authorization/initialize/[TenderCode].[format] |
/v1.0/stores/TMSUS/payments/authorization/initialize/KL.xml |
XML |
200 + XML response |
Schema
The schema for InitializePaymentAuthorizationRequest
is
Payment-Service-InitializePaymentAuthorization-1.0.xsd.
Session Creation
The first call must be made to create a new session.
Request to Create a Session
In the initial request the locale and IP address of the end user must be provided, along with the order ID and current order total.
<?xml version="1.0" encoding="UTF-8"?>
<InitializePaymentAuthorizationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<OrderId>123456789</OrderId>
<Amount currencyCode="USD">10.00</Amount>
<OriginatorIpAddress>127.0.0.1</OriginatorIpAddress>
<LocaleCode>en-US</LocaleCode>
</InitializePaymentAuthorizationRequest>
Request Elements
Element |
Required |
Description |
Type |
Restriction |
---|---|---|---|---|
OrderId |
Yes |
Unique identifier of the order. The client must ensure uniqueness of OrderIds across all transactions that the client initiates with this service. |
String |
Max 20 characters |
Amount |
Yes |
Currency amount being authorized on the credit card. |
String |
Positive decimal, up to two decimal places (for example, 4.75). Note that an explicit decimal point is used for currency amounts in this API, which differs from the currency formatting in Klarna JSON objects. |
Amount/ @currencyCode |
Yes |
Type of currency used for the order. |
String |
3-character ISO 4217 code (for example, USD, CAD, EUR). See http://en.wikipedia.org/ wiki/ISO_4217. |
OriginatorIpAddress |
Yes |
An IP version 4 or version 6 address. |
String |
Max 39 characters |
LocaleCode |
Yes |
Locale code for the user's language in combination with a country. |
String |
Cannot be empty. (Minimum of 1 character). Example: en_US |
Session Creation Reply
When the initial session is created a reply will be returned which includes the payment ID as well as configuration required for the Klarna provided widget. The payment ID must be saved for use in subsequent operations. The configuration information must be provided to the klarna widget in the format requried by the widget.
<?xml version="1.0" encoding="UTF-8"?>
<InitializePaymentAuthorizationReply xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<PaymentContext>
<OrderId>123456798</OrderId>
<TenderType>KL</TenderType>
</PaymentContext>
<ResponseCode>Success</ResponseCode>
<PaymentId>75a68dd9-8602-1a33-aab4-7705099786f0</PaymentId>
<KlarnaSessionConfiguration>
<ClientToken>eyJhbGciOiJSUzI1NiIsImtpZCI6IjgyMzA1ZWJjLWI4MTEtMzYzNy1hYT (shortened for brevity)</ClientToken>
<ProductCategory>
<Id>pay_later</Id>
<Name>Pay later in 30 days</Name>
<StandardURL>https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg</StandardURL>
<DescriptiveURL>https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg</DescriptiveURL>
</ProductCategory>
<ProductCategory>
<Id>pay_over_time</Id>
<Name>Buy now, pay later</Name>
<StandardURL>https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg</StandardURL>
<DescriptiveURL>https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg</DescriptiveURL>
</ProductCategory>
</KlarnaSessionConfiguration>
<Amount currencyCode="USD">39.95</Amount>
</InitializePaymentAuthorizationReply>
Reply Elements
Element |
Description |
Type |
---|---|---|
PaymentContext/OrderId |
The order ID passed in the request |
String |
PaymentContext/TenderType |
Always "KL" (Klarna) |
String |
ResponseCode |
One of Success, Failure, or Timeout |
String |
ResponseCodeDescription |
If the response code is Failure this will contain details for the failure. |
String |
PaymentId |
The unique identifier for the created session. This must be used for subsequent calls. |
String |
KlarnaSessionConfiguration/ClientToken |
The token which must be passed to the Klarna provided UI widget. |
String |
KlarnaSessionConfiguration/ProductCategory/Id |
The identifier of the klarna payment product category. Maps to the Klarna javascript object
|
String |
KlarnaSessionConfiguration/ProductCategory/Name |
A descriptive name of the payment product category. Maps to the Klarna javascript object
|
String |
KlarnaSessionConfiguration/ProductCategory/StandardURL |
URL for the standard asset of the payment product category. Maps to the Klarna javascript
object |
String |
KlarnaSessionConfiguration/ProductCategory/DescriptiveURL |
URL for the descriptive asset of the payment product category. Maps to the Klarna javascript
object |
String |
Amount |
The order amount associated with the created session. Will be zero if the response code is Failure or Timeout. |
Decimal |
Amount@currencyCode |
The currency code associated with the created session. |
3-character ISO 4217 code |
Session Update
Session Update Request
After the end user provides additional details (i.e. billing and shipping information) or the order is updated an additional call must be made to update the session with the most recent information. This call must be made if any information about the order has changed prior to displaying the Klarna widget to the end user. The payment ID returned from the initial call must be passed as the payment id to be corrected.
Additionally the session must be updated after any customer or order information has been updated prior to performing the klarna widget authorization. This includes any changes such as automated address corrections.
<?xml version="1.0" encoding="UTF-8"?>
<InitializePaymentAuthorizationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<OrderId>123456789</OrderId>
<Amount currencyCode="USD">20.49</Amount>
<RedirectUrl>http://www.webstore.com/checkout</RedirectUrl>
<BillingInformation>
<ContactInformation>
<Person>
<Name>
<LastName>Doe</LastName>
<FirstName>John</FirstName>
</Name>
</Person>
<PrimaryPhoneNumber>55555555555</PrimaryPhoneNumber>
<PrimaryEmailAddress>john.doe@radial.com</PrimaryEmailAddress>
</ContactInformation>
<Address>
<Line1>935 First Ave</Line1>
<City>King of Prussia</City>
<MainDivisionCode>PA</MainDivisionCode>
<CountryCode>US</CountryCode>
<PostalCode>19406</PostalCode>
</Address>
</BillingInformation>
<ShippingInformation>
<ContactInformation>
<Person>
<Name>
<LastName>Smith</LastName>
<FirstName>Jane</FirstName>
</Name>
</Person>
<PrimaryPhoneNumber>4444444444</PrimaryPhoneNumber>
<PrimaryEmailAddress>jane.smith@radial.com</PrimaryEmailAddress>
</ContactInformation>
<Address>
<Line1>630 Allendale Rd</Line1>
<City>King of Prussia</City>
<MainDivisionCode>PA</MainDivisionCode>
<CountryCode>US</CountryCode>
<PostalCode>19426</PostalCode>
</Address>
</ShippingInformation>
<OriginatorIpAddress>199.241.238.65</OriginatorIpAddress>
<LineItems>
<LineItemsTotal currencyCode="USD">20.49</LineItemsTotal>
<ShippingTotal currencyCode="USD">0</ShippingTotal>
<TaxTotal currencyCode="USD">1.99</TaxTotal>
<LineItem>
<Name>Golden Fork</Name>
<ProductInformation>
<Url>http://webstore.com/Products/fork</Url>
<ImageUrl>http://images.webstore.com/Products/fork-gold.jpg</ImageUrl>
</ProductInformation>
<SkuId>GF-001</SkuId>
<Discount>
<TotalAmount currencyCode="USD">1.50</TotalAmount>
</Discount>
<TotalAmount currencyCode="USD">18.50</TotalAmount>
<Quantity>8</Quantity>
<QuantityUnit>pcs</QuantityUnit>
<UnitAmount currencyCode="USD">2.50</UnitAmount>
</LineItem>
<LineItem>
<Name>Tax</Name>
<ProductInformation>
<Type>sales_tax</Type>
</ProductInformation>
<TotalAmount currencyCode="USD">1.99</TotalAmount>
<Quantity>1</Quantity>
<QuantityUnit>pcs</QuantityUnit>
<UnitAmount currencyCode="USD">1.99</UnitAmount>
</LineItem>
</LineItems>
<LocaleCode>en-US</LocaleCode>
<PaymentIdToBeCorrected>75a68dd9-8602-1a33-aab4-7705099786f0</PaymentIdToBeCorrected>
</InitializePaymentAuthorizationRequest>
Update Session Request Example (EU)<?xml version="1.0" encoding="UTF-8"?>
<InitializePaymentAuthorizationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<OrderId>123456789</OrderId>
<Amount currencyCode="EUR">23.45</Amount>
<RedirectUrl>http://www.webstore.com/checkout</RedirectUrl>
<BillingInformation>
<ContactInformation>
<Person>
<Name>
<LastName>Doe</LastName>
<FirstName>John</FirstName>
</Name>
</Person>
<PrimaryPhoneNumber>55555555555</PrimaryPhoneNumber>
<PrimaryEmailAddress>john.doe@radial.com</PrimaryEmailAddress>
</ContactInformation>
<Address>
<Line1>22 Gruener Weg</Line1>
<City>Bad Oyenhausen</City>
<CountryCode>DE</CountryCode>
<PostalCode>32547</PostalCode>
</Address>
</BillingInformation>
<ShippingInformation>
<ContactInformation>
<Person>
<Name>
<LastName>Smith</LastName>
<FirstName>Jane</FirstName>
</Name>
</Person>
<PrimaryPhoneNumber>4444444444</PrimaryPhoneNumber>
<PrimaryEmailAddress>jane.smith@radial.com</PrimaryEmailAddress>
</ContactInformation>
<Address>
<Line1>6633 Kaiserstrasse</Line1>
<City>Butzbach</City>
<CountryCode>DE</CountryCode>
<PostalCode>35510</PostalCode>
</Address>
</ShippingInformation>
<OriginatorIpAddress>127.0.0.1</OriginatorIpAddress>
<LineItems>
<LineItemsTotal currencyCode="EUR">23.45</LineItemsTotal>
<ShippingTotal currencyCode="EUR">0</ShippingTotal>
<TaxTotal currencyCode="EUR">0.57</TaxTotal>
<LineItem>
<Name>Golden Fork</Name>
<ProductInformation>
<Url>http://webstore.com/Products/fork</Url>
<ImageUrl>http://images.webstore.com/Products/fork-gold.jpg</ImageUrl>
</ProductInformation>
<SkuId>GF-001</SkuId>
<Tax>
<TotalAmount currencyCode="EUR">0.45</TotalAmount>
<Rate>2.5</Rate>
</Tax>
<Discount>
<TotalAmount currencyCode="EUR">1.50</TotalAmount>
</Discount>
<TotalAmount currencyCode="EUR">18.50</TotalAmount>
<Quantity>8</Quantity>
<QuantityUnit>pcs</QuantityUnit>
<UnitAmount currencyCode="EUR">2.50</UnitAmount>
</LineItem>
<LineItem>
<Name>Blue Yarn</Name>
<ProductInformation>
<Url>http://webstore.com/Products/yarn</Url>
<ImageUrl>http://images.webstore.com/Products/yarn-blue.jpg</ImageUrl>
</ProductInformation>
<SkuId>BY-001</SkuId>
<Tax>
<TotalAmount currencyCode="EUR">0.12</TotalAmount>
<Rate>2.5</Rate>
</Tax>
<TotalAmount currencyCode="EUR">4.95</TotalAmount>
<Quantity>5</Quantity>
<QuantityUnit>yards</QuantityUnit>
<UnitAmount currencyCode="EUR">0.99</UnitAmount>
</LineItem>
</LineItems>
<LocaleCode>de-DE</LocaleCode>
<PaymentIdToBeCorrected>75a68dd9-8602-1a33-aab4-7705099786f0</PaymentIdToBeCorrected>
</InitializePaymentAuthorizationRequest>
<?xml version="1.0" encoding="UTF-8"?>
<InitializePaymentAuthorizationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<OrderId>123456789</OrderId>
<Amount currencyCode="USD">20.49</Amount>
<RedirectUrl>http://www.webstore.com/checkout</RedirectUrl>
<BillingInformation>
<ContactInformation>
<Person>
<Name>
<LastName>Doe</LastName>
<FirstName>John</FirstName>
</Name>
</Person>
<PrimaryPhoneNumber>55555555555</PrimaryPhoneNumber>
<PrimaryEmailAddress>john.doe@radial.com</PrimaryEmailAddress>
</ContactInformation>
<Address>
<Line1>935 First Ave</Line1>
<City>King of Prussia</City>
<MainDivisionCode>PA</MainDivisionCode>
<CountryCode>US</CountryCode>
<PostalCode>19406</PostalCode>
</Address>
</BillingInformation>
<ShippingInformation>
<ContactInformation>
<Person>
<Name>
<LastName>Smith</LastName>
<FirstName>Jane</FirstName>
</Name>
</Person>
<PrimaryPhoneNumber>4444444444</PrimaryPhoneNumber>
<PrimaryEmailAddress>jane.smith@radial.com</PrimaryEmailAddress>
</ContactInformation>
<Address>
<Line1>630 Allendale Rd</Line1>
<City>King of Prussia</City>
<MainDivisionCode>PA</MainDivisionCode>
<CountryCode>US</CountryCode>
<PostalCode>19426</PostalCode>
</Address>
</ShippingInformation>
<DeliveryInformation>
<ConsigneeInformation>
<Person>
<Name>
<LastName>Doe</LastName>
<FirstName>John</FirstName>
</Name>
</Person>
</ConsigneeInformation>
<Address>
<Line1>935 First Avenue</Line1>
<City>King of Prussia</City>
<MainDivision>PA</MainDivision>
<CountryCode>US</CountryCode>
<PostalCode>19426</PostalCode>
</Address>
<DeliveryMethod>SHIP_TO_STORE</DeliveryMethod>
<DeliveryMethod>STANDARD</DeliveryMethod>
</DeliveryInformation>
<OriginatorIpAddress>199.241.238.65</OriginatorIpAddress>
<LineItems>
<LineItemsTotal currencyCode="USD">20.49</LineItemsTotal>
<ShippingTotal currencyCode="USD">0</ShippingTotal>
<TaxTotal currencyCode="USD">1.99</TaxTotal>
<LineItem>
<Name>Golden Fork</Name>
<ProductInformation>
<Url>http://webstore.com/Products/fork</Url>
<ImageUrl>http://images.webstore.com/Products/fork-gold.jpg</ImageUrl>
</ProductInformation>
<SkuId>GF-001</SkuId>
<Discount>
<TotalAmount currencyCode="USD">1.50</TotalAmount>
</Discount>
<TotalAmount currencyCode="USD">18.50</TotalAmount>
<Quantity>8</Quantity>
<QuantityUnit>pcs</QuantityUnit>
<UnitAmount currencyCode="USD">2.50</UnitAmount>
</LineItem>
<LineItem>
<Name>Tax</Name>
<ProductInformation>
<Type>sales_tax</Type>
</ProductInformation>
<TotalAmount currencyCode="USD">1.99</TotalAmount>
<Quantity>1</Quantity>
<QuantityUnit>pcs</QuantityUnit>
<UnitAmount currencyCode="USD">1.99</UnitAmount>
</LineItem>
</LineItems>
<LocaleCode>en-US</LocaleCode>
<PaymentIdToBeCorrected>75a68dd9-8602-1a33-aab4-7705099786f0</PaymentIdToBeCorrected>
</InitializePaymentAuthorizationRequest>
Request Elements
Element |
Optional/Required |
Description |
Type |
Restriction |
---|---|---|---|---|
OrderId |
Required |
Unique identifier for an order across all transactions of the same order |
String |
1-20 characters |
Amount |
Required |
Total value of the authorization. When line items are specified must match the sum of the inidividual line item total amounts |
Decimal |
Min 0.00
|
Amount@currencyCode |
Required |
The currency of the order amount |
ISO 4217 currency code |
|
RedirectUrl |
Required for final update |
URL of the merchant confirmation page. The consumer will be redirected back to the confirmation page if the consumer is sent to the redirect URL after placing the order. Insert {session.id} and/or {order.id} as placeholder to connect either of those IDs |
String |
1-500 characters |
BillingInformation |
Required for final update |
Represents Billing Information of the order. Contains Customer Information and Address. |
ComplexType |
|
BillingInformation/ContactInformation/Person/Name/LastName |
Required |
The Last Name of the customer placing the order. |
String |
Min 1 Character |
BillingInformation/ContactInformation/Person/Name/FirstName |
Required |
The First Name of the customer placing the order. |
String |
Min 1 Character |
BillingInformation/ContactInformation/PrimaryPhoneNumber |
Required |
Customer phone number used for order follow-up. |
String |
6-16 numbers |
BillingInformation
|
Required |
Email address of the customer. |
String |
6-60 characters |
BillingInformation/Address/Line1 |
Required |
The Line1 components contain the street address. |
String |
Min 1 character |
BillingInformation/Address/Line2 |
Optional |
Address Line 2 of the Billing Address. |
String |
Min 1 character |
BillingInformation/Address/City |
Required |
City of the Billing Address. |
String |
Min 1 character |
BillingInformation/Address/MainDivision |
Required |
Typically, a two- or three-digit postal abbreviation for the state or province.
|
String |
Max 30 characters |
BillingInformation/Address/CountryCode |
Required |
Two-digit ISO country code conforming to ISO 3166 alpha 2. |
String |
Min 2 characters
|
BillingInformation/Address/PostalCode |
Required |
Postal code of the Billing Address. |
String |
3-10 characters |
ShippingInformation |
Optional |
Represents Shipping Information of the order. Contains Customer Information and Address. |
ComplexType |
|
ShippingInformation/ContactInformation/Person/Name/LastName |
Required |
Last name of the customer for shipment. |
String |
Min 1 Character |
ShippingInformation/ContactInformation/Person/Name/FirstName |
Required |
First name of the customer for shipment. |
String |
Min 1 Character |
ShippingInformation/ContactInformation/PrimaryPhoneNumber |
Required |
Customer phone number used for order follow-up. |
String |
6-16 numbers |
ShippingInformation/ContactInformation/PrimaryEmailAddress |
Required |
Email address used for sending automated email receipts. |
String |
6-60 characters |
ShippingInformation/Address/Line1 |
Required |
The "Line1" components contain the street address. |
String |
Min 1 character |
ShippingInformation/Address/Line2 |
Optional |
Address Line 2 of the Shipping Address |
String |
Min 1 character |
ShippingInformation/Address/City |
Required |
City of the Shipping Address. |
String |
Min 1 character |
ShippingInformation/Address/MainDivision |
Required |
Typically, a two- or three-digit postal abbreviation for the state or province.
|
String |
Max 30 characters |
ShippingInformation/Address/CountryCode |
Required |
Two-digit ISO country code conforming to ISO 3166 alpha 2.
|
String |
2 characters |
ShippingInformation/Address/PostalCode |
Required |
Postal code of the Shipping Address. |
String |
3-10 characters |
DeliveryInformation |
Optional |
Represents Delivery Information of the store order. Contains pickup person information, store address and delivery method |
ComplexType |
|
DeliveryInformation/ConsigneeInformation |
Optional |
Represents details about pickup person information. |
ComplexType |
|
DeliveryInformation/ConsigneeInformation/Person/Name/LastName |
Required |
Last name of the person designated to pick up delivery. |
String |
Min 1 Character |
DeliveryInformation/ConsigneeInformation/Person/Name/FirstName |
Required |
First name of the person designated to pick up delivery. |
String |
Min 1 Character |
DeliveryInformation/Address/Line1 |
Required |
The "Line1" components contain the street address. |
String |
Min 1 character |
DeliveryInformation/Address/Line2 |
Optional |
Address Line 2 of the store address |
String |
Min 1 character |
DeliveryInformation/Address/City |
Required |
City of the store address. |
String |
Min 1 character |
DeliveryInformation/Address/MainDivision |
Required |
Typically, a two- or three-digit postal abbreviation for the state or province.
|
String |
Max 30 characters |
DeliveryInformation/Address/CountryCode |
Required |
Two-digit ISO country code conforming to ISO 3166 alpha 2.
|
String |
2 characters |
DeliveryInformation/Address/PostalCode |
Required |
Postal code of the store address. |
String |
3-10 characters |
DeliveryMethod |
Optional |
Delivery type of the order. |
String |
Enum values: STANDARD, EXPRESS, SAME_DAY, OVERNIGHT, ELECTRONIC_DELIVERY, SHIP_TO_STORE |
OriginatorIpAddress |
Required |
An IP version 4 or version 6 address. |
String |
Max 39 characters |
LineItems |
Required for updates. |
Sequence of LineItem. |
Complex Type |
|
LineItems/LineItemsTotal |
Required |
Total amount for all line items. Must be equal to the sum of individual line item total amounts. |
Decimal |
Min 0.00 Max 9 digits Fraction 2 digits |
LineItems/ShippingTotal |
Required |
Total shipping amount for all line items. Includes currencyCode attribute that contains the 3-letter currency code of the money amount. |
Decimal |
Min 0.00 Max 9 digits Fraction 2 digits |
LineItems/TaxTotal |
Required |
Total tax amount for all line items. Includes currencyCode attribute that contains the 3-letter currency code of the money amount. For NA sessions this must be the amount of the sales_tax type line item. For EU sessions this must be the sum of the line item tax total amounts. |
Decimal |
Min 0.00 Max 9 digits Fraction 2 digits |
LineItems/LineItem/Name |
Required |
Display name of the product |
String |
|
LineItems/LineItem/ProductInformation |
Optional |
Descriptive information about the product. |
String |
|
LineItems/LineItem/ProductInformation/Url |
Optional |
URL for the product |
URL |
|
LineItems/LineItem/ProductInformation/ImageUrl |
Optional |
URL to an image of the product |
URL |
|
LineItems/LineItem/ProductInformation/Type |
Optional |
The type of the item. For NA sessions this should have a value of "sales_tax" for the tax line item. |
sales_tax |
|
LineItems/LineItem/SkuId |
Optional |
The SKU of the product. |
String |
|
LineItems/LineItem/Tax |
Required for EU Sessions |
Tax information for the line item. |
Complex type |
|
LineItems/LineItem/Tax/TotalAmount |
Required |
The total tax for the line item. This must be equal to (Total Amount * Rate / 100) / (1 + Rate / 100). |
amount |
Minimum 0, may include up to 2 fractional digits. |
LineItems/LineItem/Tax/Rate |
Required |
The tax rate charged for the item as a percentage e.g. 12.6. |
decimal |
Minimum 0, may include up to 2 fractional digits. |
LineItems/LineItem/Discount/TotalAmount |
Optional |
The discount applied to the total cost of the item. Includes currency code. |
amount |
Minimum 0, may include up to 2 fractional digits. |
LineItems/LineItem/TotalAmount |
Required |
The total amount for the line item. Must equal (unit amount * quantity) - discount. Includes currency code. |
amount |
Minimum 0, may include up to 2 fractional digits. |
LineItems/LineItem/Quantity |
Required |
The number of units of product. |
integer |
|
LineItems/LineItem/QuantityUnit |
Optional |
The units of product. |
string |
1-8 characters |
LineItems/LineItem/UnitAmount |
Required |
The value of a single unit of product, includes currency code. |
amount |
Minimum 0, may include up to 2 fractional digits. |
LocaleCode |
Required |
The locale of the end user in RFC 1766 format e.g. en-US. |
string |
|
PaymentIdToBeCorrected |
Required for updates |
The payment id from the initial call to create the session which will be updated. |
string |
Timeouts
If a timeout occurs while waiting for a response or the response code is "Timeout" the request should be retried.
Failure
If a response code of failure is returned an error message should be displayed to the user stating that Klarna payments are currently unavailable.
Canceling an authorization
If for any reason an order is changed after the Klarna widget authorization is performed, that authorization must be cancelled and the session must be updated and reauthorized.
It is strongly recommended that Klarna widget authorization is not performed until after the customer has performed all review and accepted the order so that canceling an authorization is not required.
If the authorization needs to be canceled for any reason, then please send PaymentAuthCancelRequest message including the authorization token obtained as a reference transaction ID. See the documentation for the Authorization Cancel API.
<PaymentAuthCancelRequest requestId="123" xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
<PaymentContextBase>
<OrderId>123456789</OrderId>
</PaymentContextBase>
<Amount currencyCode="USD">100.00</Amount>
<ReferenceTransactionId>75a68dd9-8602-1a33-aab4-7705099786f0</ReferenceTransactionId>
</PaymentAuthCancelRequest>