Skip to main content

Add Order Rows

AddOrderRows

This method is used to add order rows to an order. If the new order amount exceeds the remaining amount on the order, a new credit control is made.


Input

AddOrderRowsRequest

FieldRTypeDescription
SveaOrderId*Long(10)Unique ID for the created order. Used for any further order webservice requests.
OrderType-OrderTypeSee OrderType. Not required for EU-clients.
ClientId*Long(7)ID that identifies a client in Svea Payments system.
OrderRows*Array of OrderRowOrder rows to add to an order.

Output

AddOrderRowsResponse

FieldRTypeDescription
RowNumbers-List of OrderRowReferenceItem

Structures

OrderRowReferenceItem

FieldRTypeDescription
RowNumber-intThe row number given to the row with the temporary reference.
TemporaryReference-StringThe temporary reference that was set in the input.

OrderRow

FieldRTypeDescription
ArticleNumber-String (10)Article number of the product.
Description-String (40)Description of the product.
DiscountAmount-Nullable<Decimal(18,2)>The discount amount. If set, the amount will be deducted from the amount to pay.
DiscountAmountIncludingVat-Nullable<Boolean>If true, the discount amount will be deducted after VAT is added (use for individual end-customers). If false, it will be deducted before VAT is added (use for business end-customers).
DiscountPercent-Decimal (2,0)Percent of discount (0–99).
NumberOfUnits*Decimal(7,2)
PriceIncludingVat-Nullable<Boolean>If true, PricePerUnit will be considered as including tax. Recommended to be true if the customer is an individual and false if a company.
PricePerUnit*Decimal(18,2)Price per unit of product. (Excluding VAT if flag PriceIncludingVat is not set to true.)
TemporaryReference-StringA temporary reference to the order row. It will not be saved but if used, a list with temporary references and order row numbers will be returned.
Unit-String (3)Short description of the unit (e.g., "ea.").
VatPercent*Decimal(18,2)Percent of VAT (0–99).

NOTE: The fields must be set in the specified order. Optional fields in a different order may not be used by the service.