using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/Quote/SaveQuote");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"Quote\": {\n \"QuoteId\": 123,\n \"SaleId\": 123,\n \"QuoteConnectionId\": 123,\n \"ERPQuoteKey\": \"<string>\",\n \"ERPOrderKey\": \"<string>\",\n \"ActiveQuoteVersionId\": 123,\n \"AcceptedQuoteAlternativeId\": 123,\n \"UseValuesFromQuote\": 123,\n \"DocumentId\": 123,\n \"PoNumber\": \"<string>\",\n \"OrderComment\": \"<string>\",\n \"PreferredEmailCulture\": \"<string>\",\n \"ActiveQuoteVersion\": {\n \"QuoteVersionId\": 123,\n \"ERPQuoteVersionKey\": \"<string>\",\n \"QuoteId\": 123,\n \"Description\": \"<string>\",\n \"Number\": \"<string>\",\n \"Reason\": \"<string>\",\n \"LikelyQuoteAlternativeId\": 123,\n \"SentDate\": \"2023-11-07T05:31:56Z\",\n \"FollowupId\": 123,\n \"ExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"DeliveryCountryId\": 123,\n \"HasOwnDeliveryAddress\": true,\n \"InvoiceCountryId\": 123,\n \"HasOwnInvoiceAddress\": true,\n \"ERPPaymentTermsKey\": \"<string>\",\n \"ERPPaymentTypeKey\": \"<string>\",\n \"ERPDeliveryTermsKey\": \"<string>\",\n \"ERPDeliveryTypeKey\": \"<string>\",\n \"Rank\": 123,\n \"ApprovedBy\": 123,\n \"ApprovedText\": \"<string>\",\n \"ApprovedRegisteredBy\": 123,\n \"ApprovedRegisteredDate\": \"2023-11-07T05:31:56Z\",\n \"ExtraField1\": \"<string>\",\n \"ExtraField2\": \"<string>\",\n \"ExtraField3\": \"<string>\",\n \"ExtraField4\": \"<string>\",\n \"ExtraField5\": \"<string>\",\n \"LastRecalculated\": \"2023-11-07T05:31:56Z\",\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"UpdatedAssociateId\": 123,\n \"Registered\": \"2023-11-07T05:31:56Z\",\n \"RegisteredAssociateId\": 123,\n \"RequestAssociateId\": 123,\n \"RequestComment\": \"<string>\",\n \"QuoteAlternatives\": [\n {\n \"QuoteAlternativeId\": 123,\n \"ERPQuoteAlternativeKey\": \"<string>\",\n \"QuoteVersionId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Reason\": \"<string>\",\n \"ERPDiscountPercent\": 123,\n \"ERPDiscountAmount\": 123,\n \"DiscountPercent\": 123,\n \"DiscountAmount\": 123,\n \"VATInfo\": \"<string>\",\n \"VAT\": 123,\n \"EarningPercent\": 123,\n \"EarningAmount\": 123,\n \"SubTotal\": 123,\n \"TotalPrice\": 123,\n \"ExtraField1\": \"<string>\",\n \"ExtraField2\": \"<string>\",\n \"ExtraField3\": \"<string>\",\n \"ExtraField4\": \"<string>\",\n \"ExtraField5\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FavoriteQuoteAlternative\": {\n \"QuoteAlternativeId\": 123,\n \"ERPQuoteAlternativeKey\": \"<string>\",\n \"QuoteVersionId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Reason\": \"<string>\",\n \"ERPDiscountPercent\": 123,\n \"ERPDiscountAmount\": 123,\n \"DiscountPercent\": 123,\n \"DiscountAmount\": 123,\n \"VATInfo\": \"<string>\",\n \"VAT\": 123,\n \"EarningPercent\": 123,\n \"EarningAmount\": 123,\n \"SubTotal\": 123,\n \"TotalPrice\": 123,\n \"ExtraField1\": \"<string>\",\n \"ExtraField2\": \"<string>\",\n \"ExtraField3\": \"<string>\",\n \"ExtraField4\": \"<string>\",\n \"ExtraField5\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Quote: {
QuoteId: 123,
SaleId: 123,
QuoteConnectionId: 123,
ERPQuoteKey: '<string>',
ERPOrderKey: '<string>',
ActiveQuoteVersionId: 123,
AcceptedQuoteAlternativeId: 123,
UseValuesFromQuote: 123,
DocumentId: 123,
PoNumber: '<string>',
OrderComment: '<string>',
PreferredEmailCulture: '<string>',
ActiveQuoteVersion: {
QuoteVersionId: 123,
ERPQuoteVersionKey: '<string>',
QuoteId: 123,
Description: '<string>',
Number: '<string>',
Reason: '<string>',
LikelyQuoteAlternativeId: 123,
SentDate: '2023-11-07T05:31:56Z',
FollowupId: 123,
ExpirationDate: '2023-11-07T05:31:56Z',
DeliveryCountryId: 123,
HasOwnDeliveryAddress: true,
InvoiceCountryId: 123,
HasOwnInvoiceAddress: true,
ERPPaymentTermsKey: '<string>',
ERPPaymentTypeKey: '<string>',
ERPDeliveryTermsKey: '<string>',
ERPDeliveryTypeKey: '<string>',
Rank: 123,
ApprovedBy: 123,
ApprovedText: '<string>',
ApprovedRegisteredBy: 123,
ApprovedRegisteredDate: '2023-11-07T05:31:56Z',
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
LastRecalculated: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
UpdatedAssociateId: 123,
Registered: '2023-11-07T05:31:56Z',
RegisteredAssociateId: 123,
RequestAssociateId: 123,
RequestComment: '<string>',
QuoteAlternatives: [
{
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FavoriteQuoteAlternative: {
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveQuote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/Agents/Quote/SaveQuote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Quote' => [
'QuoteId' => 123,
'SaleId' => 123,
'QuoteConnectionId' => 123,
'ERPQuoteKey' => '<string>',
'ERPOrderKey' => '<string>',
'ActiveQuoteVersionId' => 123,
'AcceptedQuoteAlternativeId' => 123,
'UseValuesFromQuote' => 123,
'DocumentId' => 123,
'PoNumber' => '<string>',
'OrderComment' => '<string>',
'PreferredEmailCulture' => '<string>',
'ActiveQuoteVersion' => [
'QuoteVersionId' => 123,
'ERPQuoteVersionKey' => '<string>',
'QuoteId' => 123,
'Description' => '<string>',
'Number' => '<string>',
'Reason' => '<string>',
'LikelyQuoteAlternativeId' => 123,
'SentDate' => '2023-11-07T05:31:56Z',
'FollowupId' => 123,
'ExpirationDate' => '2023-11-07T05:31:56Z',
'DeliveryCountryId' => 123,
'HasOwnDeliveryAddress' => true,
'InvoiceCountryId' => 123,
'HasOwnInvoiceAddress' => true,
'ERPPaymentTermsKey' => '<string>',
'ERPPaymentTypeKey' => '<string>',
'ERPDeliveryTermsKey' => '<string>',
'ERPDeliveryTypeKey' => '<string>',
'Rank' => 123,
'ApprovedBy' => 123,
'ApprovedText' => '<string>',
'ApprovedRegisteredBy' => 123,
'ApprovedRegisteredDate' => '2023-11-07T05:31:56Z',
'ExtraField1' => '<string>',
'ExtraField2' => '<string>',
'ExtraField3' => '<string>',
'ExtraField4' => '<string>',
'ExtraField5' => '<string>',
'LastRecalculated' => '2023-11-07T05:31:56Z',
'Updated' => '2023-11-07T05:31:56Z',
'UpdatedAssociateId' => 123,
'Registered' => '2023-11-07T05:31:56Z',
'RegisteredAssociateId' => 123,
'RequestAssociateId' => 123,
'RequestComment' => '<string>',
'QuoteAlternatives' => [
[
'QuoteAlternativeId' => 123,
'ERPQuoteAlternativeKey' => '<string>',
'QuoteVersionId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Reason' => '<string>',
'ERPDiscountPercent' => 123,
'ERPDiscountAmount' => 123,
'DiscountPercent' => 123,
'DiscountAmount' => 123,
'VATInfo' => '<string>',
'VAT' => 123,
'EarningPercent' => 123,
'EarningAmount' => 123,
'SubTotal' => 123,
'TotalPrice' => 123,
'ExtraField1' => '<string>',
'ExtraField2' => '<string>',
'ExtraField3' => '<string>',
'ExtraField4' => '<string>',
'ExtraField5' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FavoriteQuoteAlternative' => [
'QuoteAlternativeId' => 123,
'ERPQuoteAlternativeKey' => '<string>',
'QuoteVersionId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Reason' => '<string>',
'ERPDiscountPercent' => 123,
'ERPDiscountAmount' => 123,
'DiscountPercent' => 123,
'DiscountAmount' => 123,
'VATInfo' => '<string>',
'VAT' => 123,
'EarningPercent' => 123,
'EarningAmount' => 123,
'SubTotal' => 123,
'TotalPrice' => 123,
'ExtraField1' => '<string>',
'ExtraField2' => '<string>',
'ExtraField3' => '<string>',
'ExtraField4' => '<string>',
'ExtraField5' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/Agents/Quote/SaveQuote"
payload = { "Quote": {
"QuoteId": 123,
"SaleId": 123,
"QuoteConnectionId": 123,
"ERPQuoteKey": "<string>",
"ERPOrderKey": "<string>",
"ActiveQuoteVersionId": 123,
"AcceptedQuoteAlternativeId": 123,
"UseValuesFromQuote": 123,
"DocumentId": 123,
"PoNumber": "<string>",
"OrderComment": "<string>",
"PreferredEmailCulture": "<string>",
"ActiveQuoteVersion": {
"QuoteVersionId": 123,
"ERPQuoteVersionKey": "<string>",
"QuoteId": 123,
"Description": "<string>",
"Number": "<string>",
"Reason": "<string>",
"LikelyQuoteAlternativeId": 123,
"SentDate": "2023-11-07T05:31:56Z",
"FollowupId": 123,
"ExpirationDate": "2023-11-07T05:31:56Z",
"DeliveryCountryId": 123,
"HasOwnDeliveryAddress": True,
"InvoiceCountryId": 123,
"HasOwnInvoiceAddress": True,
"ERPPaymentTermsKey": "<string>",
"ERPPaymentTypeKey": "<string>",
"ERPDeliveryTermsKey": "<string>",
"ERPDeliveryTypeKey": "<string>",
"Rank": 123,
"ApprovedBy": 123,
"ApprovedText": "<string>",
"ApprovedRegisteredBy": 123,
"ApprovedRegisteredDate": "2023-11-07T05:31:56Z",
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"LastRecalculated": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"UpdatedAssociateId": 123,
"Registered": "2023-11-07T05:31:56Z",
"RegisteredAssociateId": 123,
"RequestAssociateId": 123,
"RequestComment": "<string>",
"QuoteAlternatives": [
{
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FavoriteQuoteAlternative": {
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
} }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Quote: {
QuoteId: 123,
SaleId: 123,
QuoteConnectionId: 123,
ERPQuoteKey: '<string>',
ERPOrderKey: '<string>',
ActiveQuoteVersionId: 123,
AcceptedQuoteAlternativeId: 123,
UseValuesFromQuote: 123,
DocumentId: 123,
PoNumber: '<string>',
OrderComment: '<string>',
PreferredEmailCulture: '<string>',
ActiveQuoteVersion: {
QuoteVersionId: 123,
ERPQuoteVersionKey: '<string>',
QuoteId: 123,
Description: '<string>',
Number: '<string>',
Reason: '<string>',
LikelyQuoteAlternativeId: 123,
SentDate: '2023-11-07T05:31:56Z',
FollowupId: 123,
ExpirationDate: '2023-11-07T05:31:56Z',
DeliveryCountryId: 123,
HasOwnDeliveryAddress: true,
InvoiceCountryId: 123,
HasOwnInvoiceAddress: true,
ERPPaymentTermsKey: '<string>',
ERPPaymentTypeKey: '<string>',
ERPDeliveryTermsKey: '<string>',
ERPDeliveryTypeKey: '<string>',
Rank: 123,
ApprovedBy: 123,
ApprovedText: '<string>',
ApprovedRegisteredBy: 123,
ApprovedRegisteredDate: '2023-11-07T05:31:56Z',
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
LastRecalculated: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
UpdatedAssociateId: 123,
Registered: '2023-11-07T05:31:56Z',
RegisteredAssociateId: 123,
RequestAssociateId: 123,
RequestComment: '<string>',
QuoteAlternatives: [
{
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FavoriteQuoteAlternative: {
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveQuote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"QuoteId": 123,
"SaleId": 123,
"QuoteConnectionId": 123,
"ERPQuoteKey": "<string>",
"ERPOrderKey": "<string>",
"ActiveQuoteVersionId": 123,
"AcceptedQuoteAlternativeId": 123,
"UseValuesFromQuote": 123,
"DocumentId": 123,
"PoNumber": "<string>",
"OrderComment": "<string>",
"PreferredEmailCulture": "<string>",
"ActiveQuoteVersion": {
"QuoteVersionId": 123,
"ERPQuoteVersionKey": "<string>",
"QuoteId": 123,
"Description": "<string>",
"Number": "<string>",
"State": "Unknown",
"ArchivedState": "Unknown",
"Status": "Ok",
"Reason": "<string>",
"LikelyQuoteAlternativeId": 123,
"SentDate": "2023-11-07T05:31:56Z",
"FollowupId": 123,
"ExpirationDate": "2023-11-07T05:31:56Z",
"DeliveryCountryId": 123,
"HasOwnDeliveryAddress": true,
"InvoiceCountryId": 123,
"HasOwnInvoiceAddress": true,
"ERPPaymentTermsKey": "<string>",
"ERPPaymentTypeKey": "<string>",
"ERPDeliveryTermsKey": "<string>",
"ERPDeliveryTypeKey": "<string>",
"Rank": 123,
"ApprovedBy": 123,
"ApprovedText": "<string>",
"ApprovedRegisteredBy": 123,
"ApprovedRegisteredDate": "2023-11-07T05:31:56Z",
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"LastRecalculated": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"UpdatedAssociateId": 123,
"Registered": "2023-11-07T05:31:56Z",
"RegisteredAssociateId": 123,
"RequestAssociateId": 123,
"RequestComment": "<string>",
"QuoteAlternatives": [
{
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Status": "Ok",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"UserValueOverride": "None",
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FavoriteQuoteAlternative": {
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Status": "Ok",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"UserValueOverride": "None",
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}Saves a Quote
NsApiSlow threshold: 5000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/Quote/SaveQuote");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"Quote\": {\n \"QuoteId\": 123,\n \"SaleId\": 123,\n \"QuoteConnectionId\": 123,\n \"ERPQuoteKey\": \"<string>\",\n \"ERPOrderKey\": \"<string>\",\n \"ActiveQuoteVersionId\": 123,\n \"AcceptedQuoteAlternativeId\": 123,\n \"UseValuesFromQuote\": 123,\n \"DocumentId\": 123,\n \"PoNumber\": \"<string>\",\n \"OrderComment\": \"<string>\",\n \"PreferredEmailCulture\": \"<string>\",\n \"ActiveQuoteVersion\": {\n \"QuoteVersionId\": 123,\n \"ERPQuoteVersionKey\": \"<string>\",\n \"QuoteId\": 123,\n \"Description\": \"<string>\",\n \"Number\": \"<string>\",\n \"Reason\": \"<string>\",\n \"LikelyQuoteAlternativeId\": 123,\n \"SentDate\": \"2023-11-07T05:31:56Z\",\n \"FollowupId\": 123,\n \"ExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"DeliveryCountryId\": 123,\n \"HasOwnDeliveryAddress\": true,\n \"InvoiceCountryId\": 123,\n \"HasOwnInvoiceAddress\": true,\n \"ERPPaymentTermsKey\": \"<string>\",\n \"ERPPaymentTypeKey\": \"<string>\",\n \"ERPDeliveryTermsKey\": \"<string>\",\n \"ERPDeliveryTypeKey\": \"<string>\",\n \"Rank\": 123,\n \"ApprovedBy\": 123,\n \"ApprovedText\": \"<string>\",\n \"ApprovedRegisteredBy\": 123,\n \"ApprovedRegisteredDate\": \"2023-11-07T05:31:56Z\",\n \"ExtraField1\": \"<string>\",\n \"ExtraField2\": \"<string>\",\n \"ExtraField3\": \"<string>\",\n \"ExtraField4\": \"<string>\",\n \"ExtraField5\": \"<string>\",\n \"LastRecalculated\": \"2023-11-07T05:31:56Z\",\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"UpdatedAssociateId\": 123,\n \"Registered\": \"2023-11-07T05:31:56Z\",\n \"RegisteredAssociateId\": 123,\n \"RequestAssociateId\": 123,\n \"RequestComment\": \"<string>\",\n \"QuoteAlternatives\": [\n {\n \"QuoteAlternativeId\": 123,\n \"ERPQuoteAlternativeKey\": \"<string>\",\n \"QuoteVersionId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Reason\": \"<string>\",\n \"ERPDiscountPercent\": 123,\n \"ERPDiscountAmount\": 123,\n \"DiscountPercent\": 123,\n \"DiscountAmount\": 123,\n \"VATInfo\": \"<string>\",\n \"VAT\": 123,\n \"EarningPercent\": 123,\n \"EarningAmount\": 123,\n \"SubTotal\": 123,\n \"TotalPrice\": 123,\n \"ExtraField1\": \"<string>\",\n \"ExtraField2\": \"<string>\",\n \"ExtraField3\": \"<string>\",\n \"ExtraField4\": \"<string>\",\n \"ExtraField5\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FavoriteQuoteAlternative\": {\n \"QuoteAlternativeId\": 123,\n \"ERPQuoteAlternativeKey\": \"<string>\",\n \"QuoteVersionId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Reason\": \"<string>\",\n \"ERPDiscountPercent\": 123,\n \"ERPDiscountAmount\": 123,\n \"DiscountPercent\": 123,\n \"DiscountAmount\": 123,\n \"VATInfo\": \"<string>\",\n \"VAT\": 123,\n \"EarningPercent\": 123,\n \"EarningAmount\": 123,\n \"SubTotal\": 123,\n \"TotalPrice\": 123,\n \"ExtraField1\": \"<string>\",\n \"ExtraField2\": \"<string>\",\n \"ExtraField3\": \"<string>\",\n \"ExtraField4\": \"<string>\",\n \"ExtraField5\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Quote: {
QuoteId: 123,
SaleId: 123,
QuoteConnectionId: 123,
ERPQuoteKey: '<string>',
ERPOrderKey: '<string>',
ActiveQuoteVersionId: 123,
AcceptedQuoteAlternativeId: 123,
UseValuesFromQuote: 123,
DocumentId: 123,
PoNumber: '<string>',
OrderComment: '<string>',
PreferredEmailCulture: '<string>',
ActiveQuoteVersion: {
QuoteVersionId: 123,
ERPQuoteVersionKey: '<string>',
QuoteId: 123,
Description: '<string>',
Number: '<string>',
Reason: '<string>',
LikelyQuoteAlternativeId: 123,
SentDate: '2023-11-07T05:31:56Z',
FollowupId: 123,
ExpirationDate: '2023-11-07T05:31:56Z',
DeliveryCountryId: 123,
HasOwnDeliveryAddress: true,
InvoiceCountryId: 123,
HasOwnInvoiceAddress: true,
ERPPaymentTermsKey: '<string>',
ERPPaymentTypeKey: '<string>',
ERPDeliveryTermsKey: '<string>',
ERPDeliveryTypeKey: '<string>',
Rank: 123,
ApprovedBy: 123,
ApprovedText: '<string>',
ApprovedRegisteredBy: 123,
ApprovedRegisteredDate: '2023-11-07T05:31:56Z',
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
LastRecalculated: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
UpdatedAssociateId: 123,
Registered: '2023-11-07T05:31:56Z',
RegisteredAssociateId: 123,
RequestAssociateId: 123,
RequestComment: '<string>',
QuoteAlternatives: [
{
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FavoriteQuoteAlternative: {
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveQuote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/Agents/Quote/SaveQuote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Quote' => [
'QuoteId' => 123,
'SaleId' => 123,
'QuoteConnectionId' => 123,
'ERPQuoteKey' => '<string>',
'ERPOrderKey' => '<string>',
'ActiveQuoteVersionId' => 123,
'AcceptedQuoteAlternativeId' => 123,
'UseValuesFromQuote' => 123,
'DocumentId' => 123,
'PoNumber' => '<string>',
'OrderComment' => '<string>',
'PreferredEmailCulture' => '<string>',
'ActiveQuoteVersion' => [
'QuoteVersionId' => 123,
'ERPQuoteVersionKey' => '<string>',
'QuoteId' => 123,
'Description' => '<string>',
'Number' => '<string>',
'Reason' => '<string>',
'LikelyQuoteAlternativeId' => 123,
'SentDate' => '2023-11-07T05:31:56Z',
'FollowupId' => 123,
'ExpirationDate' => '2023-11-07T05:31:56Z',
'DeliveryCountryId' => 123,
'HasOwnDeliveryAddress' => true,
'InvoiceCountryId' => 123,
'HasOwnInvoiceAddress' => true,
'ERPPaymentTermsKey' => '<string>',
'ERPPaymentTypeKey' => '<string>',
'ERPDeliveryTermsKey' => '<string>',
'ERPDeliveryTypeKey' => '<string>',
'Rank' => 123,
'ApprovedBy' => 123,
'ApprovedText' => '<string>',
'ApprovedRegisteredBy' => 123,
'ApprovedRegisteredDate' => '2023-11-07T05:31:56Z',
'ExtraField1' => '<string>',
'ExtraField2' => '<string>',
'ExtraField3' => '<string>',
'ExtraField4' => '<string>',
'ExtraField5' => '<string>',
'LastRecalculated' => '2023-11-07T05:31:56Z',
'Updated' => '2023-11-07T05:31:56Z',
'UpdatedAssociateId' => 123,
'Registered' => '2023-11-07T05:31:56Z',
'RegisteredAssociateId' => 123,
'RequestAssociateId' => 123,
'RequestComment' => '<string>',
'QuoteAlternatives' => [
[
'QuoteAlternativeId' => 123,
'ERPQuoteAlternativeKey' => '<string>',
'QuoteVersionId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Reason' => '<string>',
'ERPDiscountPercent' => 123,
'ERPDiscountAmount' => 123,
'DiscountPercent' => 123,
'DiscountAmount' => 123,
'VATInfo' => '<string>',
'VAT' => 123,
'EarningPercent' => 123,
'EarningAmount' => 123,
'SubTotal' => 123,
'TotalPrice' => 123,
'ExtraField1' => '<string>',
'ExtraField2' => '<string>',
'ExtraField3' => '<string>',
'ExtraField4' => '<string>',
'ExtraField5' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FavoriteQuoteAlternative' => [
'QuoteAlternativeId' => 123,
'ERPQuoteAlternativeKey' => '<string>',
'QuoteVersionId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Reason' => '<string>',
'ERPDiscountPercent' => 123,
'ERPDiscountAmount' => 123,
'DiscountPercent' => 123,
'DiscountAmount' => 123,
'VATInfo' => '<string>',
'VAT' => 123,
'EarningPercent' => 123,
'EarningAmount' => 123,
'SubTotal' => 123,
'TotalPrice' => 123,
'ExtraField1' => '<string>',
'ExtraField2' => '<string>',
'ExtraField3' => '<string>',
'ExtraField4' => '<string>',
'ExtraField5' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/Agents/Quote/SaveQuote"
payload = { "Quote": {
"QuoteId": 123,
"SaleId": 123,
"QuoteConnectionId": 123,
"ERPQuoteKey": "<string>",
"ERPOrderKey": "<string>",
"ActiveQuoteVersionId": 123,
"AcceptedQuoteAlternativeId": 123,
"UseValuesFromQuote": 123,
"DocumentId": 123,
"PoNumber": "<string>",
"OrderComment": "<string>",
"PreferredEmailCulture": "<string>",
"ActiveQuoteVersion": {
"QuoteVersionId": 123,
"ERPQuoteVersionKey": "<string>",
"QuoteId": 123,
"Description": "<string>",
"Number": "<string>",
"Reason": "<string>",
"LikelyQuoteAlternativeId": 123,
"SentDate": "2023-11-07T05:31:56Z",
"FollowupId": 123,
"ExpirationDate": "2023-11-07T05:31:56Z",
"DeliveryCountryId": 123,
"HasOwnDeliveryAddress": True,
"InvoiceCountryId": 123,
"HasOwnInvoiceAddress": True,
"ERPPaymentTermsKey": "<string>",
"ERPPaymentTypeKey": "<string>",
"ERPDeliveryTermsKey": "<string>",
"ERPDeliveryTypeKey": "<string>",
"Rank": 123,
"ApprovedBy": 123,
"ApprovedText": "<string>",
"ApprovedRegisteredBy": 123,
"ApprovedRegisteredDate": "2023-11-07T05:31:56Z",
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"LastRecalculated": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"UpdatedAssociateId": 123,
"Registered": "2023-11-07T05:31:56Z",
"RegisteredAssociateId": 123,
"RequestAssociateId": 123,
"RequestComment": "<string>",
"QuoteAlternatives": [
{
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FavoriteQuoteAlternative": {
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
} }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Quote: {
QuoteId: 123,
SaleId: 123,
QuoteConnectionId: 123,
ERPQuoteKey: '<string>',
ERPOrderKey: '<string>',
ActiveQuoteVersionId: 123,
AcceptedQuoteAlternativeId: 123,
UseValuesFromQuote: 123,
DocumentId: 123,
PoNumber: '<string>',
OrderComment: '<string>',
PreferredEmailCulture: '<string>',
ActiveQuoteVersion: {
QuoteVersionId: 123,
ERPQuoteVersionKey: '<string>',
QuoteId: 123,
Description: '<string>',
Number: '<string>',
Reason: '<string>',
LikelyQuoteAlternativeId: 123,
SentDate: '2023-11-07T05:31:56Z',
FollowupId: 123,
ExpirationDate: '2023-11-07T05:31:56Z',
DeliveryCountryId: 123,
HasOwnDeliveryAddress: true,
InvoiceCountryId: 123,
HasOwnInvoiceAddress: true,
ERPPaymentTermsKey: '<string>',
ERPPaymentTypeKey: '<string>',
ERPDeliveryTermsKey: '<string>',
ERPDeliveryTypeKey: '<string>',
Rank: 123,
ApprovedBy: 123,
ApprovedText: '<string>',
ApprovedRegisteredBy: 123,
ApprovedRegisteredDate: '2023-11-07T05:31:56Z',
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
LastRecalculated: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
UpdatedAssociateId: 123,
Registered: '2023-11-07T05:31:56Z',
RegisteredAssociateId: 123,
RequestAssociateId: 123,
RequestComment: '<string>',
QuoteAlternatives: [
{
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FavoriteQuoteAlternative: {
QuoteAlternativeId: 123,
ERPQuoteAlternativeKey: '<string>',
QuoteVersionId: 123,
Name: '<string>',
Description: '<string>',
Reason: '<string>',
ERPDiscountPercent: 123,
ERPDiscountAmount: 123,
DiscountPercent: 123,
DiscountAmount: 123,
VATInfo: '<string>',
VAT: 123,
EarningPercent: 123,
EarningAmount: 123,
SubTotal: 123,
TotalPrice: 123,
ExtraField1: '<string>',
ExtraField2: '<string>',
ExtraField3: '<string>',
ExtraField4: '<string>',
ExtraField5: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveQuote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"QuoteId": 123,
"SaleId": 123,
"QuoteConnectionId": 123,
"ERPQuoteKey": "<string>",
"ERPOrderKey": "<string>",
"ActiveQuoteVersionId": 123,
"AcceptedQuoteAlternativeId": 123,
"UseValuesFromQuote": 123,
"DocumentId": 123,
"PoNumber": "<string>",
"OrderComment": "<string>",
"PreferredEmailCulture": "<string>",
"ActiveQuoteVersion": {
"QuoteVersionId": 123,
"ERPQuoteVersionKey": "<string>",
"QuoteId": 123,
"Description": "<string>",
"Number": "<string>",
"State": "Unknown",
"ArchivedState": "Unknown",
"Status": "Ok",
"Reason": "<string>",
"LikelyQuoteAlternativeId": 123,
"SentDate": "2023-11-07T05:31:56Z",
"FollowupId": 123,
"ExpirationDate": "2023-11-07T05:31:56Z",
"DeliveryCountryId": 123,
"HasOwnDeliveryAddress": true,
"InvoiceCountryId": 123,
"HasOwnInvoiceAddress": true,
"ERPPaymentTermsKey": "<string>",
"ERPPaymentTypeKey": "<string>",
"ERPDeliveryTermsKey": "<string>",
"ERPDeliveryTypeKey": "<string>",
"Rank": 123,
"ApprovedBy": 123,
"ApprovedText": "<string>",
"ApprovedRegisteredBy": 123,
"ApprovedRegisteredDate": "2023-11-07T05:31:56Z",
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"LastRecalculated": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"UpdatedAssociateId": 123,
"Registered": "2023-11-07T05:31:56Z",
"RegisteredAssociateId": 123,
"RequestAssociateId": 123,
"RequestComment": "<string>",
"QuoteAlternatives": [
{
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Status": "Ok",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"UserValueOverride": "None",
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FavoriteQuoteAlternative": {
"QuoteAlternativeId": 123,
"ERPQuoteAlternativeKey": "<string>",
"QuoteVersionId": 123,
"Name": "<string>",
"Description": "<string>",
"Status": "Ok",
"Reason": "<string>",
"ERPDiscountPercent": 123,
"ERPDiscountAmount": 123,
"DiscountPercent": 123,
"DiscountAmount": 123,
"UserValueOverride": "None",
"VATInfo": "<string>",
"VAT": 123,
"EarningPercent": 123,
"EarningAmount": 123,
"SubTotal": 123,
"TotalPrice": 123,
"ExtraField1": "<string>",
"ExtraField2": "<string>",
"ExtraField3": "<string>",
"ExtraField4": "<string>",
"ExtraField5": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}Headers
Convert string references and multi-language values into a specified language (iso2) code.
Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
Specify the timezone code that you would like date/time responses converted to.
The application token that identifies the partner app. Used when calling Online WebAPI from a server.
Query Parameters
Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields.
Body
Quote
SaveQuote: Saves a Quote
Quote carrier with the active quote version and favorite alternative. Carrier object for Quote. Services for the Quote Carrier is available from the Quote Agent.
Show child attributes
Show child attributes
Response
OK
Quote carrier with the active quote version and favorite alternative. Carrier object for Quote. Services for the Quote Carrier is available from the Quote Agent.
Primary key
The foreign key to the corresponding sale
The connection in the CRM system to where this quote came from. Identifies the ERP connection used for this quote. Each quote is bound to one and only one connection.
Foreign key of quote (if available). The key in the ERP system that identifies this sale's Quote (as opposed to the later Order information)
The key in the ERP system that identifies this sale's Order, as transferred and possibly later edited in the ERP system. Only filled out if there exists a corresponding order representation of the quote in the ERP system.
The primary key of the Quote Version that is currently active. (The active version will always be the latest version.)
The primary key of the Quote Alternative which was finally accepted by the customer. Set when the user is marking a quote as accepted.
If true, then the Earning, Earning_Percent and Amount fields are populated from the QuoteVersion.QuoteAlternative (current revision, most-likely alternative).
The ID of the main Quote Document
Customer's Purchase order number
A comment that is intended for the Invoice, Order, Packing list and similar stages - AFTER the quote has become an order and goes to ERP for processing
When emails are sent (offer or confirmation), a language can be chosen in the GUI; this field saves the most recent choice and can be used to default the next such choice. Default-default is user's current language
Information about a version of the . Carrier object for QuoteVersion. Services for the QuoteVersion Carrier is available from the Quote Agent.
Show child attributes
Show child attributes
Information about a connection to the ERP system. Carrier object for QuoteAlternative. Services for the QuoteAlternative Carrier is available from the Quote Agent.
Show child attributes
Show child attributes
Wraps a table right together with an explanatory reason. Code can indicate why access is restricted.
Show child attributes
Show child attributes
Field property dictionary mapping field names to field access rights.
Show child attributes
Show child attributes
Related topics
Save Quote VersionSave Quote LineSave Quote LinesSave Quote EntitySave Quote AlternativeCreate And Save Quote