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)
https://demo.storm.io/api/1.1/OrderService.svc/rest/GetInvoice
- cURL
- JS
- C#
curl -i -X GET \
'https://demo.storm.io/api/1.1/OrderService.svc/rest/GetInvoice?id=string'
Success
- application/json
- application/xml
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 }
https://demo.storm.io/api/1.1/OrderService.svc/rest/GetInvoiceByNo
- cURL
- JS
- C#
curl -i -X GET \
'https://demo.storm.io/api/1.1/OrderService.svc/rest/GetInvoiceByNo?invoiceNo=string'
Success
- application/json
- application/xml
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 }
- application/json
- application/xml
The Invoice to insert.
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.
https://demo.storm.io/api/1.1/OrderService.svc/rest/InsertInvoice
- cURL
- JS
- C#
curl -i -X POST \
https://demo.storm.io/api/1.1/OrderService.svc/rest/InsertInvoice \
-H 'Content-Type: application/json' \
-d '{
"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": {
"Id": 0,
"No": "string",
"Name": "string",
"OrgNo": "string"
},
"Customer": {
"Id": 0,
"No": "string",
"FirstName": "string",
"LastName": "string",
"SSN": "string",
"Email": "string",
"Phone": "string",
"CellPhone": "string"
},
"Address": {
"Line1": "string",
"Line2": "string",
"CareOf": "string",
"City": "string",
"ZipCode": "string",
"Country": "string",
"CountryCode": "string",
"Region": "string",
"ShippingPhoneNumber": "string",
"GlobalLocationNo": "string"
},
"DropPointCode": "string"
},
"OrderFreight": 0,
"InvoiceCharge": 0,
"InvoiceAmountExVat": 0,
"VatAmount": 0,
"Items": [
{
"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
}
],
"Info": [
{
"Code": "string",
"Name": "string",
"Description": "string",
"Value": "string"
}
],
"InvoiceNoPsp": "string",
"CreditedInvoiceNo": "string",
"IsDebit": true,
"GroupByKey": "string",
"Comment": "string",
"InvoiceAmountIncVat": 0
}'
Success
- application/json
- application/xml
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 }
The internal order id for which invoices are fetched. Either this or a customerId, companyId must be specified.
The internal company id for which invoices are fetched. Either this or a customerId, orderId must be specified.
The internal customer id for which invoices are fetched. Either this or a companyId, orderId must be specified.
A from date used to filter the invoices. Format: yyyy-mm-ddThh:mm:ss.nnn[z], example 2024-08-01T12:59:59.000Z
A to date used to filter the invoices. Format: yyyy-mm-ddThh:mm:ss.nnn[z], example 2024-08-01T12:59:59.000Z
Page numbers start with 1. Default is 1. If you specify a pageNo outside the range of items, an empty list will be returned. PageSize is mandatory for pageNo to work.
https://demo.storm.io/api/1.1/OrderService.svc/rest/ListInvoices
- cURL
- JS
- C#
curl -i -X GET \
'https://demo.storm.io/api/1.1/OrderService.svc/rest/ListInvoices?orderId=string&companyId=string&customerId=string'
{ "ItemCount": 0, "Items": [ { … } ] }
https://demo.storm.io/api/1.1/OrderService.svc/rest/ListInvoicesByBasket
- cURL
- JS
- C#
curl -i -X GET \
'https://demo.storm.io/api/1.1/OrderService.svc/rest/ListInvoicesByBasket?basketId=0'
{ "ItemCount": 0, "Items": [ { … } ] }