Class Transaction
The settlements API transaction object
Inheritance
Inherited Members
Namespace: Klarna.Rest.Core.Model
Assembly: Klarna.Rest.Core.dll
Syntax
public class Transaction
Properties
| Improve this Doc View SourceAmount
Total amount of the specific transaction, in minor units
Declaration
[JsonProperty(PropertyName = "amount")]
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Required
CaptureDate
ISO-8601 formatted date-time string
Declaration
[JsonProperty(PropertyName = "capture_date")]
public string CaptureDate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
CaptureId
The Klarna assigned id reference of a specific capture
Declaration
[JsonProperty(PropertyName = "capture_id")]
public string CaptureId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
CurrencyCode
ISO-3166 Currency Code.
Declaration
[JsonProperty(PropertyName = "currency_code")]
public string CurrencyCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
MerchantReference1
Merchant assigned reference, typically a reference to an order management system id
Declaration
[JsonProperty(PropertyName = "merchant_reference1")]
public string MerchantReference1 { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MerchantReference2
Merchant assigned reference, typically a reference to an order management system id
Declaration
[JsonProperty(PropertyName = "merchant_reference2")]
public string MerchantReference2 { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OrderId
The Klarna assigned order id reference
Declaration
[JsonProperty(PropertyName = "order_id")]
public string OrderId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
PaymentReference
Reference to the specific payout the transaction is part of, if available.
Declaration
[JsonProperty(PropertyName = "payment_reference")]
public string PaymentReference { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Payout
Link to the payout that this transaction is part of
Declaration
[JsonProperty(PropertyName = "payout")]
public string Payout { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PurchaseCountry
ISO Alpha-2 Country Code
Declaration
[JsonProperty(PropertyName = "purchase_country")]
public string PurchaseCountry { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
RefundId
The Klarna assigned id reference of a specific refund
Declaration
[JsonProperty(PropertyName = "refund_id")]
public string RefundId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SaleDate
ISO-8601 formatted date-time string
Declaration
[JsonProperty(PropertyName = "sale_date")]
public string SaleDate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
ShortOrderId
The Klarna assigned short order id reference
Declaration
[JsonProperty(PropertyName = "short_order_id")]
public string ShortOrderId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of transaction.
Declaration
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(StringEnumConverter))]
public TransactionType Type { get; set; }
Property Value
Type | Description |
---|---|
TransactionType |
Remarks
Required