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.
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.
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.)
DeliverOrderEuRequest
Output
DeliverOrderEuResponse
Structures
DeliverOrderResult
Field | U | R | Type | Description |
---|
SveaOrderId | * | * | Long | Id for the order to deliver. |
OrderType | - | - | OrderType | See Enumeration |
DeliverInvoiceDetails | - | - | DeliverInvoiceDetails | Required for invoice orders. Information entered in this structure will only affect invoice orders. |
DeliverAccountCreditDetails | - | - | DeliverAccountCreditDetails | Required for account credit orders. Information entered in this structure will only affect account credit orders. |
DeliverInvoiceDetails
Field | U | R | Type | Description |
---|
NumberOfCreditDays | - | - | Integer | Number of credit days. More credit days than client defined is ignored. |
InvoiceDistributionType | - | * | InvoiceDistributionType | See Enumeration |
IsCreditInvoice | - | * | Boolean | True if this should be a credit invoice. |
InvoiceIdToCredit | * | - | Long | Reference to invoice to credit. Only used if IsCreditInvoice is true. |
OrderRows | - | - | Array of OrderRow | Order rows to deliver. |
PrintType | - | - | Integer | Integer 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
Field | R | Type | Description |
---|
OrderRows | - | Array of OrderRow | Order rows to deliver. |
Enumerations
InvoiceDistributionType
Value | Description |
---|
Post | Invoice is sent by post. |
Email | Invoice is sent by email. |
EInvoiceB2B | E-invoice, only available in Norway (EHF) and Finland (Finvoice). |
Peppol | Invoice is sent by Peppol. |
Omni | Available in Norway. |
Omni20 | Available in Norway. |
Omni21 | Available in Norway. |
Omni22 | Available in Norway. |
Omni23 | Available in Norway. |
Omni24 | Available in Norway. |