Class OrderManagementStore
The Order Management API is used for handling an order after the customer has completed the purchase. It is used for updating, capturing and refunding an order as well as to see the history of events that have affected this order.
Inherited Members
Namespace: Klarna.Rest.Core.Store
Assembly: Klarna.Rest.Core.dll
Syntax
public class OrderManagementStore : BaseStore
Methods
| Improve this Doc View SourceAcknowledgeOrder(String)
Declaration
public Task AcknowledgeOrder(string orderId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to acknowledge |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
AddShippingInfoToCapture(String, String, OrderManagementAddShippingInfo)
Add shipping info to a capture https://developers.klarna.com/api/#order-management-api-add-shipping-info-to-a-capture
Declaration
public Task AddShippingInfoToCapture(string orderId, string captureId, OrderManagementAddShippingInfo shippingInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to add shipping info |
System.String | captureId | Id of capture to add shipping info |
OrderManagementAddShippingInfo | shippingInfo | The OrderManagementAddShippingInfo object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
CancelOrder(String)
Declaration
public Task CancelOrder(string orderId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to cancel |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
CreateAndFetchCapture(String, OrderManagementCreateCapture)
Create capture and follow the Location header to fetch the data https://developers.klarna.com/api/#order-management-api-create-capture
Declaration
public Task<OrderManagementCapture> CreateAndFetchCapture(string orderId, OrderManagementCreateCapture capture)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to create capture |
OrderManagementCreateCapture | capture | The OrderManagementCapture object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OrderManagementCapture> | Object of OrderManagementCapture |
CreateAndFetchRefund(String, OrderManagementRefund)
Create a refund and follow the Location header to fetch the data https://developers.klarna.com/api/#order-management-api-create-a-refund
Declaration
public Task<OrderManagementGetRefundResponse> CreateAndFetchRefund(string orderId, OrderManagementRefund refund)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to create a refund |
OrderManagementRefund | refund | The OrderManagementRefund object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OrderManagementGetRefundResponse> |
CreateCapture(String, OrderManagementCreateCapture)
Declaration
public Task CreateCapture(string orderId, OrderManagementCreateCapture capture)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to create capture |
OrderManagementCreateCapture | capture | The OrderManagementCapture object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Object of OrderManagementCapture |
CreateRefund(String, OrderManagementRefund)
Declaration
public Task CreateRefund(string orderId, OrderManagementRefund refund)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to create a refund |
OrderManagementRefund | refund | The OrderManagementRefund object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ExtendAuthorizationTime(String)
Extend authorization time https://developers.klarna.com/api/#order-management-api-extend-authorization-time
Declaration
public Task ExtendAuthorizationTime(string orderId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to extend |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetCapture(String, String)
Declaration
public Task<OrderManagementCapture> GetCapture(string orderId, string captureId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order that contains the capture |
System.String | captureId | Id of capture to retrieve |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OrderManagementCapture> |
GetCapturesForOrder(String)
Get all captures for one order https://developers.klarna.com/api/#order-management-api-get-all-captures-for-one-order
Declaration
public Task<ICollection<OrderManagementCapture>> GetCapturesForOrder(string orderId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to retrieve captures |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<OrderManagementCapture>> | Collection of OrderManagementCapture |
GetOrder(String)
Declaration
public Task<OrderManagementOrder> GetOrder(string orderId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to retrieve |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OrderManagementOrder> |
GetRefundForOrder(String, String)
Declaration
public Task<OrderManagementGetRefundResponse> GetRefundForOrder(string orderId, string refundId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to get refund |
System.String | refundId | Id of refund |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OrderManagementGetRefundResponse> |
ReleaseRemainingAuthorization(String)
Release remaining authorization https://developers.klarna.com/api/#order-management-api-release-remaining-authorization
Declaration
public Task ReleaseRemainingAuthorization(string orderId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to release |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SetNewOrderAmountAndOrderLines(String, OrderManagementSetNewOrderAmountAndLines)
Set new order amount and order lines https://developers.klarna.com/api/#order-management-api-set-new-order-amount-and-order-lines
Declaration
public Task SetNewOrderAmountAndOrderLines(string orderId, OrderManagementSetNewOrderAmountAndLines newOrderAmountAndLines)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to update |
OrderManagementSetNewOrderAmountAndLines | newOrderAmountAndLines | The OrderManagementSetNewOrderAmountAndLines object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
TriggerResendOfCustomerCommunication(String, String)
Trigger resend of customer communication https://developers.klarna.com/api/#order-management-api-trigger-resend-of-customer-communication
Declaration
public Task TriggerResendOfCustomerCommunication(string orderId, string captureId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order that contains the capture |
System.String | captureId | Id of capture to resend |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
UpdateCustomerAddresses(String, OrderManagementCustomerAddresses)
Update customer addresses https://developers.klarna.com/api/#order-management-api-update-customer-addresses
Declaration
public Task UpdateCustomerAddresses(string orderId, OrderManagementCustomerAddresses customerAddresses)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to update |
OrderManagementCustomerAddresses | customerAddresses | The UpdateCustomerAddresses(String, OrderManagementCustomerAddresses) object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
UpdateMerchantReferences(String, OrderManagementMerchantReferences)
Update merchant references https://developers.klarna.com/api/#order-management-api-update-merchant-references
Declaration
public Task UpdateMerchantReferences(string orderId, OrderManagementMerchantReferences merchantReferences)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Id of order to update |
OrderManagementMerchantReferences | merchantReferences | The OrderManagementMerchantReferences object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |