The Orders namespace has Entities and Operations used for orders and other related Entities such as DeliveryNotes and Invoices. This namespace has nothing to do with the Checkout process where orders are created, but is more related to order history shown on pages like MyPage and such. The Order history in Storm is mostly a snapshot view of the orders as they looked when they got created in Storm, unless process integrations exists where DeliveryNotes and Invoices are passed to Storm.
Documentation OrderService (1.1)
Invoice
The external invoice number of the Invoice. Usually a number from the ERP system. MaxLength: 50.
The external order number of the Order related to the Invoice. The order number usually comes from an ERP. MaxLength: 50.
The Source of the Invoice. 'WEB' is used for all invoices created though Storm. MaxLength: 255.
A list of infos used to keep application specific data on the invoice. Not used for credit invoices.
The invoice number from the PSP. This is only used when the PSP issues invoices. MaxLength: 50.
The credited invoice number. This is only used for credit invoices and this is the number of the original invoice being credited. MaxLength: 50.
GroupByKey can be used to group invoices. All individual invoices on one summary invoice will have this set to the same value. Normal non-summary invoices will have this value set to null. MaxLength: 50.
{ "Id": "string", "InvoiceNo": "string", "InvoiceDate": "2019-08-24T14:15:22Z", "InvoiceDueDate": "2019-08-24T14:15:22Z", "InvoiceText": "string", "OrderId": "string", "OrderNo": "string", "OrderDate": "2019-08-24T14:15:22Z", "Source": "string", "DeliveryDate": "2019-08-24T14:15:22Z", "DeliveryMethod": "string", "PaymentMethod": "string", "BillTo": { "Company": { … }, "Customer": { … }, "Address": { … }, "DropPointCode": "string" }, "OrderFreight": 0, "InvoiceCharge": 0, "InvoiceAmountExVat": 0, "VatAmount": 0, "Items": [ { … } ], "Info": [ { … } ], "InvoiceNoPsp": "string", "CreditedInvoiceNo": "string", "IsDebit": true, "GroupByKey": "string", "Comment": "string", "InvoiceAmountIncVat": 0 }
InvoiceItem
A rate to multiply with price to get price inc VAT. 25% VAT equals a VatRate of 1.25.
{ "RowNumber": 0, "ItemNo": "string", "ItemDescription": "string", "Quantity": 0, "UnitPrice": 0, "UnitDiscount": 0, "RowAmount": 0, "RowAmountVat": 0, "DeliveryDate": "2019-08-24T14:15:22Z", "VatRate": 0, "UnitPriceIncVat": 0 }