Introduction
Attachments are sent in the attachment properties on the Checkout resource.
To send an attachment you set the content_type
and body
property according to the desired attachment type.
Available attachment types can be found below.
Extra Merchant Data resource
Content-Type: application/vnd.klarna.internal.emd-v2+json Body: A JSON string serialized from the resource described below.
Legend
O, optional
M, mandatory
R, read only
Resource properties
Variable | Type | Description | |
---|---|---|---|
Variable air_reservation_details | Type array of air reservation details objects | O | Description Details about the reservation of airline tickets |
Variable bus_reservation_details | Type array of bus reservation details objects | O | Description Details about the reservation of bus tickets |
Variable train_reservation_details | Type array of train reservation details objects | O | Description Details about the reservation of train tickets |
Variable ferry_reservation_details | Type array of ferry reservation details objects | O | Description Details about the reservation of ferry tickets |
Variable hotel_reservation_details | Type array of hotel reservation details objects | O | Description Details about the reservation of hotel rooms |
Variable car_rental_reservation_details | Type array of car rental reservation details objects | O | Description Details about the reservation of rental cars |
Variable event | Type array of event objects | O | Description |
Variable voucher | Type array of voucher objects | O | Description |
Variable subscription | Type array of subscription objects | O | Description |
Variable marketplace_seller_info | Type array of marketplace seller info objects | O | Description |
Variable marketplace_winner_info | Type array of marketplace winner info objects | O | Description |
Variable customer_account_info | Type array of customer account info objects | O | Description |
Variable payment_history_full | Type array of payment history full objects | O | Description |
Variable payment_history_simple | Type array of payment history simple objects | O | Description |
Variable other_delivery_address | Type array of other delivery address objects | O | Description |
air_reservation_details object properties
Variable | Type | Description | |
---|---|---|---|
Variable pnr | Type string | O | Description Trip booking number, e.g. VH67899 |
Variable itinerary | Type array of itinerary objects | O | Description Itinerary data, one per segment |
Variable insurance | Type array of insurance objects | O | Description Insurance data |
Variable passengers | Type array of person objects | O | Description Passengers data |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase |
bus_reservation_details object properties
Variable | Type | Description | |
---|---|---|---|
Variable pnr | Type string | O | Description Trip booking number, e.g. VH67899 |
Variable itinerary | Type array of itinerary objects | O | Description Itinerary data, one per segment |
Variable insurance | Type array of insurance objects | O | Description Insurance data |
Variable passengers | Type array of person objects | O | Description Passengers data |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
train_reservation_details object properties
Variable | Type | Description | |
---|---|---|---|
Variable pnr | Type string | O | Description Trip booking number, e.g. VH67899 |
Variable itinerary | Type array of itinerary objects | O | Description Itinerary data, one per segment |
Variable insurance | Type array of insurance objects | O | Description Insurance data |
Variable passengers | Type array of person objects | O | Description Passengers data |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
ferry_reservation_details object properties
Variable | Type | Description | |
---|---|---|---|
Variable pnr | Type string | O | Description Trip booking number, e.g. VH67899 |
Variable itinerary | Type array of itinerary objects | O | Description Itinerary data, one per segment |
Variable insurance | Type array of insurance objects | O | Description Insurance data |
Variable passengers | Type array of person objects | O | Description Passengers data |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
hotel_reservation_details object properties
Variable | Type | Description | |
---|---|---|---|
Variable pnr | Type string | O | Description Trip booking number, e.g. VH67899 |
Variable hotel_itinerary | Type array of hotel itinerary objects | O | Description Hotel itinerary data, one per hotel stay |
Variable insurance | Type array of insurance objects | O | Description Insurance data |
Variable passengers | Type array of person objects | O | Description Passengers data |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
car_rental_reservation_details object properties
Variable | Type | Description | |
---|---|---|---|
Variable pnr | Type string | O | Description Trip booking number, e.g. VH67899 |
Variable car_rental_itinerary | Type array of car rental itinerary objects | O | Description Car rental itinerary data |
Variable insurance | Type array of insurance objects | O | Description Insurance data |
Variable drivers | Type array of person objects | O | Description Passengers data |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
event object properties
Variable | Type | Description | |
---|---|---|---|
Variable event_name | Type string | O | Description Name of the event, e.g. “Fancy Singer” |
Variable event_company | Type string | O | Description Name of the company arranging the event, e.g. “Happy Parties Ltd.” |
Variable genre_of_event | Type string | O | Description Category or type of venue, “Pop” |
Variable arena_name | Type string | O | Description Name of the venue, “Song Arena” |
Variable arena_location | Type location object | O | Description Location of the arena. |
Variable start_time | Type string | O | Description Date and time when the event starts (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable end_time | Type string | O | Description Date and time when the event ends (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable access_controlled_venue | Type boolean | O | Description If the tickets are digitally screened upon entering the event |
Variable ticket_delivery_method | Type string | O | Description How the tickets are delivered: “pick_up”, “email”, “post” or “phone” |
Variable ticket_delivery_recipient | Type string | O | Description The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number. |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
voucher object properties
Variable | Type | Description | |
---|---|---|---|
Variable voucher_name | Type string | O | Description Description of the product the voucher entitles to, e.g. “China trip” |
Variable voucher_company | Type string | O | Description Name of the company that will provide good / service upon voucher (not the same as the selling merchant), e.g. “Sun Trips Ltd.” |
Variable start_time | Type string | O | Description Date and time when the voucher starts (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable end_time | Type string | O | Description Date and time when the voucher expires (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If no, leave blank. |
subscription object properties
Variable | Type | Description | |
---|---|---|---|
Variable subscription_name | Type string | O | Description Name of the product on subscription, e.g. “Contact lenses” |
Variable start_time | Type string | O | Description Date and time when the subscription starts (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable end_time | Type string | O | Description Date and time when the subscription ends (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable auto_renewal_of_subscription | Type boolean | O | Description Info whether the subscription will be auto renewed upon expiry. |
Variable affiliate_name | Type string | O | Description Name of the affiliate that originated the purchase. If none, leave blank. |
marketplace_seller_info object properties
Variable | Type | Description | |
---|---|---|---|
Variable unique_account_identifier_seller | Type unique account identifier object | O | Description |
Variable sub_merchant_id | Type string | O | Description Name or unique number of the selling / delivering merchant, e.g. “Marketbrick Ltd.” |
Variable sub_merchant_name | Type string | O | Description The Sub-brand of the merchant. |
Variable product_category | Type string | O | Description Name of the overall category to which the specific good(s) belong to, according to the selling merchants categorization. E.g. “Computers” |
Variable product_name | Type string | O | Description Name of the specific good purchased, e.g. “Acer 5400” |
Variable account_registration_date | Type string | O | Description Date and time when the customer has created the account (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable account_last_modified | Type account last modified object | O | Description |
Variable seller_rating | Type number | O | Description Current rating. Partner should provide upfront their rating scale, e.g. 65 |
Variable number_of_trades | Type integer | O | Description Number of trades the sub-merchant did since 12 months back, e.g. 23 |
Variable volume_of_trades | Type integer | O | Description Volumes of trades the sub-merchant did since 12 months back, e.g. 230.5 |
marketplace_winner_info object properties
Variable | Type | Description | |
---|---|---|---|
Variable unique_account_identifier_winner | Type unique account identifier object | O | Description |
Variable account_last_modified | Type account last modified object | O | Description |
Variable account_registration_date | Type string | O | Description Date and time when the customer has created the account (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable number_of_trades | Type integer | O | Description Number of trades the winner did since 12 months back, e.g. 5 |
Variable volume_of_trades | Type integer | O | Description Volume of trades the winner did since 12 months back, 230.5 |
customer_account_info object properties
Variable | Type | Description | |
---|---|---|---|
Variable unique_account_identifier | Type string | O | Description Unique name / number to identify the specific customer account. Max 24 characters. E.g. “Adam Adamsson” |
Variable account_registration_date | Type string | O | Description Date and time when the customer created the account (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable account_last_modified | Type string | O | Description Date and time when the customer last modified the account (local) ISO 8601 e.g. 2012-11-24T15:00 |
payment_history_full object properties
Variable | Type | Description | |
---|---|---|---|
Variable unique_account_identifier | Type string | O | Description Unique name / number to identify the specific customer account. Max 24 characters. E.g. “Adam Adamsson” |
Variable payment_option | Type string | O | Description “card”, “direct banking”, “non klarna credit”, “sms”, “other” |
Variable number_paid_purchases | Type integer | O | Description Total number of successful purchases |
Variable total_amount_paid_purchases | Type number | O | Description Total amount of successful purchases (local currency), e.g. 1234.00 |
Variable date_of_last_paid_purchase | Type string | O | Description Date and time of the last successful purchase (local) ISO 8601 e.g. 2012-11-24T15:00 |
Variable date_of_first_paid_purchase | Type string | O | Description Date and time of the first successful purchase (local) ISO 8601 e.g. 2012-11-24T15:00 |
payment_history_simple object properties
Variable | Type | Description | |
---|---|---|---|
Variable unique_account_identifier | Type string | O | Description Unique name / number to identify the specific customer account. Max 24 characters. E.g. “Adam Adamsson” |
Variable paid_before | Type boolean | O | Description Whether the customer has paid before or not |
other_delivery_address object properties
Variable | Type | Description | |
---|---|---|---|
Variable shipping_method | Type string | O | Description “store pick-up”, “pick-up point”, “registered box”, “unregistered box” |
Variable shipping_type | Type string | O | Description “normal”, “express” |
Variable first_name | Type string | O | Description |
Variable las\t_name | Type string | O | Description |
Variable street_address | Type string | O | Description |
Variable street_number | Type string | O | Description |
Variable postal_code | Type string | O | Description |
Variable city | Type string | O | Description |
Variable country | Type string | O | Description |
Variable product_sold | Type string | O | Description |
Variable returning_customer | Type boolean | O | Description |
Variable returning_pickup | Type boolean | O | Description |
Variable additional_service | Type boolean | O | Description |
Variable service_city | Type string | O | Description |
unique_account_identifier object properties
Variable | Type | Description |
---|---|---|
Variable email | Type string | Description M |
Variable pno | Type string | Description M |
Variable other | Type string | Description O |
account_last_modified object properties
Variable | Type | Description | |
---|---|---|---|
Variable password | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable email | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable listing | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable login | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable address | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
location object properties
Variable | Type | Description | |
---|---|---|---|
Variable street_address | Type string | O | Description |
Variable postal_code | Type string | O | Description |
Variable city | Type string | O | Description |
Variable country | Type string | O | Description |
insurance object properties
Variable | Type | Description | |
---|---|---|---|
Variable insurance_company | Type string | O | Description |
Variable insurance_type | Type string | O | Description “cancellation”, “travel”, “cancellation_travel”, “bankruptcy” |
Variable insurance_price | Type number | O | Description Local currency |
person object properties
Variable | Type | Description | |
---|---|---|---|
Variable id | Type integer | O | Description |
Variable title | Type string | O | Description Mr, Mrs, Ms or blank if under 12 years. “mr”, “mrs”, “ms”, “” |
Variable first_name | Type string | O | Description |
Variable last_name | Type string | O | Description |
itinerary object properties
Variable | Type | Description | |
---|---|---|---|
Variable departure | Type string | O | Description City code or name. For air reservations, use IATA Airport Code (three letters). |
Variable departure_city | Type string | O | Description |
Variable arrival | Type string | O | Description City code or name. For air reservations, use IATA Airport Code (three letters). |
Variable arrival_city | Type string | O | Description |
Variable carrier | Type string | O | Description Name of transportation company. For air reservations, use IATA Airline standard (two letters or digits). |
Variable segment_price | Type integer | O | Description Local currency |
Variable departure_date | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable ticket_delivery_method | Type string | O | Description “pick_up”, “email”, “post”, “phone” |
Variable ticket_delivery_recipient | Type string | O | Description The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number. |
Variable passenger_id | Type array of integers | O | Description |
Variable class | Type string | O | Description |
car_rental_itinerary object properties
Variable | Type | Description | |
---|---|---|---|
Variable rental_company | Type string | O | Description Name of rental company |
Variable pick_up_location | Type location object | O | Description |
Variable drop_off_location | Type location object | O | Description |
Variable car_price | Type number | O | Description Local currency |
Variable start_time | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable end_time | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable drivers_id | Type array of integers | O | Description |
Variable class | Type string | O | Description |
hotel itinerary object properties
Variable | Type | Description | |
---|---|---|---|
Variable hotel_name | Type string | O | Description Name of hotel |
Variable address | Type location object | O | Description |
Variable start_time | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable end_time | Type string | O | Description ISO 8601 e.g. 2012-11-24T15:00 |
Variable number_of_rooms | Type integer | O | Description |
Variable ticket_delivery_method | Type string | O | Description “pick_up”, “email”, “post”, “phone” |
Variable ticket_delivery_recipient | Type string | O | Description The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number. |
Variable hotel_price | Type number | O | Description Local currency |
Variable passenger_id | Type array of integers | O | Description |
Variable class | Type string | O | Description |