Skip to main content

Deliver Order

DeliverOrderEu

DeliverOrderEu updates the order with additional information and prepares it for delivery. Like the CreateOrderEu method, this method requires some information that is specific to the specified OrderType.

Note:
Even though you've used this method to deliver the order, the resulting invoice/contract might still not be sent out. You may need to log into Svea Payments Admin and approve the delivery first. It is possible to activate automatic approval. Please contact Svea Payments if you want this functionality activated.


Specific information about Invoice and AccountCredit

According to the following rules, the method will automatically match all order rows that were sent in the DeliverOrderEuRequest request with those that are to be delivered to the order rows that were sent in CreateOrderEu:

  • New rows added:
    In case “new rows” that do not match any rows in the original order have been added, undelivered rows from the original order that do not match with new rows will be cancelled. Any rows in the deliver request that do not match the original order rows will still be delivered, as long as the total amount of all delivered rows (in this and previous delivery requests) doesn’t exceed the total amount of the original order rows.
  • Subset of original rows:
    In case no “new rows” have been added, but only a subset of the original order rows is present in the DeliverOrderEuRequest, the order will be partially delivered, and the matching order rows will be delivered. Any original order rows not present will remain undelivered.

Payment Plan Specific Information

You cannot partially deliver payment plans. All order rows as currently held by Svea will be delivered when the request is made. (The original order rows may have been changed since the original CreateOrderEu request was made by means of the Svea Admin interface, or by requests made to the Svea Payments Administration Service API.)


Input

DeliverOrderEuRequest

FieldRTypeDescription
DeliverOrderInformation*DeliverOrderInformation

Output

DeliverOrderEuResponse

FieldRTypeDescription
DeliverOrderResult-DeliverOrderResult
ResultCode*IntegerSee Result Code table

Structures

DeliverOrderResult

FieldRTypeDescription
Amount-DecimalThe sum of the request order rows.
OrderType-OrderTypeSee Enumeration
InvoiceResultDetails-InvoiceResultDetailsInformation about the created invoice
PaymentPlanResultDetails-PaymentPlanResultDetailsInformation about the created payment plan
AccountCreditResultDetails-AccountCreditResultDetailsInformation about the created account credit

DeliverOrderInformation

FieldURTypeDescription
SveaOrderId**LongId for the order to deliver.
OrderType--OrderTypeSee Enumeration
DeliverInvoiceDetails--DeliverInvoiceDetailsRequired for invoice orders. Information entered in this structure will only affect invoice orders.
DeliverAccountCreditDetails--DeliverAccountCreditDetailsRequired for account credit orders. Information entered in this structure will only affect account credit orders.

DeliverInvoiceDetails

FieldURTypeDescription
NumberOfCreditDays--IntegerNumber of credit days. More credit days than client defined is ignored.
InvoiceDistributionType-*InvoiceDistributionTypeSee Enumeration
IsCreditInvoice-*BooleanTrue if this should be a credit invoice.
InvoiceIdToCredit*-LongReference to invoice to credit. Only used if IsCreditInvoice is true.
OrderRows--Array of OrderRowOrder rows to deliver.
PrintType--IntegerInteger specifying the print setting for the current order. When set it will override any print settings for the client. Possible values: 0 – Svea prints, 1 – Client prints.
Notes--String(200)Notes that will appear on the invoice. If not supplied (or null), the order's Notes will be used instead.

DeliverAccountCreditDetails

FieldRTypeDescription
OrderRows-Array of OrderRowOrder rows to deliver.

Enumerations

InvoiceDistributionType

ValueDescription
PostInvoice is sent by post.
EmailInvoice is sent by email.
EInvoiceB2BE-invoice, only available in Norway (EHF) and Finland (Finvoice).
PeppolInvoice is sent by Peppol.
OmniAvailable in Norway.
Omni20Available in Norway.
Omni21Available in Norway.
Omni22Available in Norway.
Omni23Available in Norway.
Omni24Available in Norway.