Insert an invoice [Obsolete("Not used. Invoices are inserted through integrations.")]

Not implemented.

Request
Request Body schema:

The Invoice to insert.

Id
string

The internal id of the Invoice.

InvoiceNo
string

The external invoice number of the Invoice. Usually a number from the ERP system. MaxLength: 50

InvoiceDate
string <date-time>

The invoice date of the Invoice.

InvoiceDueDate
string or null <date-time>

The invoice due date of the Invoice.

InvoiceText
string

InvoiceText is taken from InvoiceMark in Storm. MaxLength: 255

OrderId
string

The internal id of the Order related to the Invoice.

OrderNo
string

The external order number of the Order related to the Invoice. The order number usually comes from an ERP. MaxLength: 50

OrderDate
string <date-time>

The order date of the Order related to the Invoice.

Source
string

The Source of the Invoice. 'WEB' is used for all invoices created though Storm. MaxLength: 255

DeliveryDate
string or null <date-time>

The delivery date of the DeliveryNote related to the Invoice.

DeliveryMethod
string

The delivery method of the Order. MaxLength: 50

PaymentMethod
string

The payment method of the Order. MaxLength: 50

object <CustomerData> (CustomerData)
OrderFreight
number <decimal>

The total amount for freight on the Invoice.

InvoiceCharge
number <decimal>

The total amount for invoice charge on the Invoice.

InvoiceAmountExVat
number <decimal>

The total amount invoiced ex VAT.

VatAmount
number <decimal>

The total VAT amount invoiced.

Array of objects <InvoiceItem> (InvoiceItem)

The invoiced items.

Array of objects <Info> (Info)

A list of infos used to keep application specific data on the invoice. Not used for credit invoices.

InvoiceNoPsp
string

The invoice number from the PSP. This is only used when the PSP issues invoices. MaxLength: 50

CreditedInvoiceNo
string

The credited invoice number. This is only used for credit invoices and this is the number of the original invoice being credited. MaxLength: 50

IsDebit
boolean

Indicates if this is a debit invoice (true) or a credit invoice (false).

GroupByKey
string

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

Comment
string

Free text comment on the Invoice. MaxLength: 250

InvoiceAmountIncVat
number <decimal>

The total amount invoiced inc VAT.

Responses
200

Success

500

Internal Server Error

post/OrderService.svc/rest/InsertInvoice
Request samples
{
  • "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": {
    },
  • "OrderFreight": 0,
  • "InvoiceCharge": 0,
  • "InvoiceAmountExVat": 0,
  • "VatAmount": 0,
  • "Items": [
    ],
  • "Info": [
    ],
  • "InvoiceNoPsp": "string",
  • "CreditedInvoiceNo": "string",
  • "IsDebit": true,
  • "GroupByKey": "string",
  • "Comment": "string",
  • "InvoiceAmountIncVat": 0
}
Response samples
{
  • "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": {
    },
  • "OrderFreight": 0,
  • "InvoiceCharge": 0,
  • "InvoiceAmountExVat": 0,
  • "VatAmount": 0,
  • "Items": [
    ],
  • "Info": [
    ],
  • "InvoiceNoPsp": "string",
  • "CreditedInvoiceNo": "string",
  • "IsDebit": true,
  • "GroupByKey": "string",
  • "Comment": "string",
  • "InvoiceAmountIncVat": 0
}