POST api/quotes/updateOrCreateProduct?orderNo={orderNo}&sku={sku}&quantity={quantity}&isDebug={isDebug}
Update product count or create the product line if its not allready there
Request Information
URI Parameters
| Name | Description | Type |
|---|---|---|
| orderNo |
Order number [required]. IMPORTANT: Navision doesn't validate the order no. Neither that it is an existing quote, nor that its an order number relevant for the current customer. |
string |
| sku |
Product sku [required] |
string |
| quantity |
Product count. The current count will be overwritten. If no quantity is given the product count will be 1 |
integer |
Body Parameters
None.
Response Information
Resource Description
Order if successful, Exception (Status 500) Otherwise.
Order| Name | Description | Type |
|---|---|---|
| OrderNumber |
Order number Primary order key in Navision This need to be unique |
string |
| HasDownloadableFiles |
Whether this instance have downloadable files. |
boolean |
| Reference |
Order reference |
string |
| Status |
Order status Possible values are 'Uferdig' (Open), 'Registrert' (Done), empty |
string |
| OrderDate |
Order date |
date |
| HasOnlyDownloadableFiles |
Whether this instance only have downloadable files. |
boolean |
| IsNamingInOrder |
Whether this instance have naming orderlines. |
boolean |
| IsGiftwrappingInOrder |
Whether this instance have gift wrapping orderlines. |
boolean |
| IsValid |
Whether this instance is valid. (i.e has and ) |
boolean |
| VoucherCode |
Voucher code |
string |
| HasDiscounts |
Whether the order has a Leserforum discount |
boolean |
| OrderTotalExVat |
Order total ex vat |
decimal number |
| TotalExVatToNetsString |
Total sum ex vat in Nets format. (I.e TotalExMva *100 as string) |
string |
| ProductCount |
Product quantity in order across all order lines |
string |
| TotalIncVat |
Order total inc vat |
decimal number |
| TotalIncVatToNetsString |
Total sum inc vat in NetAccept format. (I.e Totalinklmva *100 as string) |
string |
| TotalIncVatRounded |
Total sum inc vat rounded value |
decimal number |
| TotalVat |
Total vat |
decimal number |
| TotalDiscount |
Total discount |
decimal number |
|
|
string | |
| Name1 |
Name 1 |
string |
| Name2 |
Name 2 |
string |
| Address1 |
Address line 1 |
string |
| Address2 |
Address line 2 |
string |
| Country |
Country code |
string |
| Zip |
Zip |
string |
| City |
City |
string |
| Mobile |
Mobile phone |
string |
| Telephone |
Telephone |
string |
| IsValidMobile |
Whether this instance have a valid mobile number. |
boolean |
| IsValidTelephone |
Whether this instance have a valid telephone number. |
boolean |
| ShippingAddress1 |
Shipping Address line 1 |
string |
| ShippingAddress2 |
Shipping Address line 2 |
string |
| ShippingCountry |
Shipping Country code |
string |
| ShippingName1 |
Shipping Name 1 |
string |
| ShippingName2 |
Shipping Name 2 |
string |
| ShippingZip |
Shipping Zip |
string |
| ShippingEmail |
Shipping Email |
string |
| ShippingCity |
Shipping City |
string |
| TrackingNumber |
Shipping tracking number |
string |
| IsValidShippingAddress |
Whether this instance have a valid shipping address. |
boolean |
| CardIssuerId |
Payment provider |
string |
| Description |
Order summary for Payment provider |
string |
| TransactionId |
Payment transaction id |
string |
| PaymentMethod |
Payment provider |
string |
| OrderLines |
Order lines |
Collection of OrderLine |
{
"OrderLines": [
{
"IsDownloadable": true,
"IsDiscounted": true,
"Sku": "str 5",
"Description1": "str 7",
"Description2": "str 9",
"Quantity": 11,
"LineTotalInc": 0.0,
"LineTotalEx": 0.0,
"DiscountPct": 0.0,
"Discount": 0.0,
"VatPct": 0.0
},
{
"IsDownloadable": true,
"IsDiscounted": true,
"Sku": "str 5",
"Description1": "str 7",
"Description2": "str 9",
"Quantity": 11,
"LineTotalInc": 0.0,
"LineTotalEx": 0.0,
"DiscountPct": 0.0,
"Discount": 0.0,
"VatPct": 0.0
}
],
"OrderNumber": "str 2",
"HasDownloadableFiles": true,
"Reference": "str 4",
"Status": "str 5",
"OrderDate": "2025-10-29T00:00:00",
"HasOnlyDownloadableFiles": true,
"IsNamingInOrder": false,
"IsGiftwrappingInOrder": false,
"IsValid": true,
"VoucherCode": "str 8",
"HasDiscounts": true,
"OrderTotalExVat": 10.0,
"TotalExVatToNetsString": "1000",
"ProductCount": "22",
"AntallProdukter": "22",
"TotalIncVat": 12.0,
"TotalIncVatToNetsString": "1400",
"TotalInklMvaToBbsString": "1400",
"TotalIncVatRounded": 14.0,
"TotalVat": 2.0,
"Totalmva": 2.0,
"TotalDiscount": 16.0,
"Email": "str 18",
"Name1": "str 20",
"Name2": "str 22",
"Address1": "str 24",
"Address2": "str 26",
"Country": "str 28",
"Zip": "str 30",
"City": "str 32",
"Mobile": "str 34",
"Telephone": "str 36",
"IsValidMobile": false,
"IsValidMobilnummer": false,
"IsValidTelephone": false,
"ShippingAddress1": "str 38",
"ShippingAddress2": "str 40",
"ShippingCountry": "str 42",
"ShippingName1": "str 44",
"ShippingName2": "str 46",
"ShippingZip": "str 48",
"ShippingEmail": "str 50",
"ShippingCity": "str 52",
"TrackingNumber": "str 54",
"IsValidShippingAddress": true,
"CardIssuerId": "str 55",
"Description": "Ordre: str 2 Navn: str 20 Epost: str 18 Totalsum: 12",
"TransactionId": "str 57",
"PaymentMethod": "str 58"
}