using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/Quote/SaveConnection");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"Connection\": {\n \"QuoteConnectionId\": 123,\n \"ERPName\": \"<string>\",\n \"DisplayName\": \"<string>\",\n \"DisplayDescription\": \"<string>\",\n \"Rank\": 123,\n \"ConnectorName\": \"<string>\",\n \"ErpConnectionId\": 123,\n \"ExtraData\": \"<string>\",\n \"IsAvailable\": true,\n \"InitializeResponse\": {\n \"IsOk\": true,\n \"UserExplanation\": \"<string>\",\n \"TechExplanation\": \"<string>\",\n \"ErrorCode\": \"<string>\",\n \"Changes\": {\n \"AddedRecords\": [\n {\n \"Tablename\": \"<string>\",\n \"RecordId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"UpdatedRecords\": [\n {\n \"Tablename\": \"<string>\",\n \"RecordId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"DeletedRecords\": [\n {\n \"Tablename\": \"<string>\",\n \"RecordId\": 123,\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 \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"PriceLists\": [\n {\n \"PriceListId\": 123,\n \"ERPPriceListKey\": \"<string>\",\n \"QuoteConnectionId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Currency\": \"<string>\",\n \"CurrencyName\": \"<string>\",\n \"ValidFrom\": \"2023-11-07T05:31:56Z\",\n \"ValidTo\": \"2023-11-07T05:31:56Z\",\n \"IsActive\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"AllAccess\": true,\n \"Deleted\": true,\n \"UserGroupAccessIds\": [\n 123\n ],\n \"AssociateAccessIds\": [\n 123\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({
Connection: {
QuoteConnectionId: 123,
ERPName: '<string>',
DisplayName: '<string>',
DisplayDescription: '<string>',
Rank: 123,
ConnectorName: '<string>',
ErpConnectionId: 123,
ExtraData: '<string>',
IsAvailable: true,
InitializeResponse: {
IsOk: true,
UserExplanation: '<string>',
TechExplanation: '<string>',
ErrorCode: '<string>',
Changes: {
AddedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
UpdatedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
DeletedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PriceLists: [
{
PriceListId: 123,
ERPPriceListKey: '<string>',
QuoteConnectionId: 123,
Name: '<string>',
Description: '<string>',
Currency: '<string>',
CurrencyName: '<string>',
ValidFrom: '2023-11-07T05:31:56Z',
ValidTo: '2023-11-07T05:31:56Z',
IsActive: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AllAccess: true,
Deleted: true,
UserGroupAccessIds: [123],
AssociateAccessIds: [123],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveConnection', 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/SaveConnection",
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([
'Connection' => [
'QuoteConnectionId' => 123,
'ERPName' => '<string>',
'DisplayName' => '<string>',
'DisplayDescription' => '<string>',
'Rank' => 123,
'ConnectorName' => '<string>',
'ErpConnectionId' => 123,
'ExtraData' => '<string>',
'IsAvailable' => true,
'InitializeResponse' => [
'IsOk' => true,
'UserExplanation' => '<string>',
'TechExplanation' => '<string>',
'ErrorCode' => '<string>',
'Changes' => [
'AddedRecords' => [
[
'Tablename' => '<string>',
'RecordId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'UpdatedRecords' => [
[
'Tablename' => '<string>',
'RecordId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'DeletedRecords' => [
[
'Tablename' => '<string>',
'RecordId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'PriceLists' => [
[
'PriceListId' => 123,
'ERPPriceListKey' => '<string>',
'QuoteConnectionId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Currency' => '<string>',
'CurrencyName' => '<string>',
'ValidFrom' => '2023-11-07T05:31:56Z',
'ValidTo' => '2023-11-07T05:31:56Z',
'IsActive' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'AllAccess' => true,
'Deleted' => true,
'UserGroupAccessIds' => [
123
],
'AssociateAccessIds' => [
123
],
'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/SaveConnection"
payload = { "Connection": {
"QuoteConnectionId": 123,
"ERPName": "<string>",
"DisplayName": "<string>",
"DisplayDescription": "<string>",
"Rank": 123,
"ConnectorName": "<string>",
"ErpConnectionId": 123,
"ExtraData": "<string>",
"IsAvailable": True,
"InitializeResponse": {
"IsOk": True,
"UserExplanation": "<string>",
"TechExplanation": "<string>",
"ErrorCode": "<string>",
"Changes": {
"AddedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"UpdatedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"DeletedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PriceLists": [
{
"PriceListId": 123,
"ERPPriceListKey": "<string>",
"QuoteConnectionId": 123,
"Name": "<string>",
"Description": "<string>",
"Currency": "<string>",
"CurrencyName": "<string>",
"ValidFrom": "2023-11-07T05:31:56Z",
"ValidTo": "2023-11-07T05:31:56Z",
"IsActive": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AllAccess": True,
"Deleted": True,
"UserGroupAccessIds": [123],
"AssociateAccessIds": [123],
"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({
Connection: {
QuoteConnectionId: 123,
ERPName: '<string>',
DisplayName: '<string>',
DisplayDescription: '<string>',
Rank: 123,
ConnectorName: '<string>',
ErpConnectionId: 123,
ExtraData: '<string>',
IsAvailable: true,
InitializeResponse: {
IsOk: true,
UserExplanation: '<string>',
TechExplanation: '<string>',
ErrorCode: '<string>',
Changes: {
AddedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
UpdatedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
DeletedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PriceLists: [
{
PriceListId: 123,
ERPPriceListKey: '<string>',
QuoteConnectionId: 123,
Name: '<string>',
Description: '<string>',
Currency: '<string>',
CurrencyName: '<string>',
ValidFrom: '2023-11-07T05:31:56Z',
ValidTo: '2023-11-07T05:31:56Z',
IsActive: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AllAccess: true,
Deleted: true,
UserGroupAccessIds: [123],
AssociateAccessIds: [123],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveConnection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"QuoteConnectionId": 123,
"ERPName": "<string>",
"DisplayName": "<string>",
"DisplayDescription": "<string>",
"Rank": 123,
"ConnectorName": "<string>",
"ErpConnectionId": 123,
"ExtraData": "<string>",
"IsAvailable": true,
"InitializeResponse": {
"IsOk": true,
"UserExplanation": "<string>",
"TechExplanation": "<string>",
"ErrorCode": "<string>",
"Changes": {
"AddedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"UpdatedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"DeletedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Status": "Ok",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PriceLists": [
{
"PriceListId": 123,
"ERPPriceListKey": "<string>",
"QuoteConnectionId": 123,
"Name": "<string>",
"Description": "<string>",
"Currency": "<string>",
"CurrencyName": "<string>",
"ValidFrom": "2023-11-07T05:31:56Z",
"ValidTo": "2023-11-07T05:31:56Z",
"IsActive": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AllAccess": true,
"Deleted": true,
"UserGroupAccessIds": [
123
],
"AssociateAccessIds": [
123
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}Saves a connection to the database.
NsApiSlow threshold: 5000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/Quote/SaveConnection");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"Connection\": {\n \"QuoteConnectionId\": 123,\n \"ERPName\": \"<string>\",\n \"DisplayName\": \"<string>\",\n \"DisplayDescription\": \"<string>\",\n \"Rank\": 123,\n \"ConnectorName\": \"<string>\",\n \"ErpConnectionId\": 123,\n \"ExtraData\": \"<string>\",\n \"IsAvailable\": true,\n \"InitializeResponse\": {\n \"IsOk\": true,\n \"UserExplanation\": \"<string>\",\n \"TechExplanation\": \"<string>\",\n \"ErrorCode\": \"<string>\",\n \"Changes\": {\n \"AddedRecords\": [\n {\n \"Tablename\": \"<string>\",\n \"RecordId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"UpdatedRecords\": [\n {\n \"Tablename\": \"<string>\",\n \"RecordId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"DeletedRecords\": [\n {\n \"Tablename\": \"<string>\",\n \"RecordId\": 123,\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 \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"PriceLists\": [\n {\n \"PriceListId\": 123,\n \"ERPPriceListKey\": \"<string>\",\n \"QuoteConnectionId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Currency\": \"<string>\",\n \"CurrencyName\": \"<string>\",\n \"ValidFrom\": \"2023-11-07T05:31:56Z\",\n \"ValidTo\": \"2023-11-07T05:31:56Z\",\n \"IsActive\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"AllAccess\": true,\n \"Deleted\": true,\n \"UserGroupAccessIds\": [\n 123\n ],\n \"AssociateAccessIds\": [\n 123\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({
Connection: {
QuoteConnectionId: 123,
ERPName: '<string>',
DisplayName: '<string>',
DisplayDescription: '<string>',
Rank: 123,
ConnectorName: '<string>',
ErpConnectionId: 123,
ExtraData: '<string>',
IsAvailable: true,
InitializeResponse: {
IsOk: true,
UserExplanation: '<string>',
TechExplanation: '<string>',
ErrorCode: '<string>',
Changes: {
AddedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
UpdatedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
DeletedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PriceLists: [
{
PriceListId: 123,
ERPPriceListKey: '<string>',
QuoteConnectionId: 123,
Name: '<string>',
Description: '<string>',
Currency: '<string>',
CurrencyName: '<string>',
ValidFrom: '2023-11-07T05:31:56Z',
ValidTo: '2023-11-07T05:31:56Z',
IsActive: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AllAccess: true,
Deleted: true,
UserGroupAccessIds: [123],
AssociateAccessIds: [123],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveConnection', 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/SaveConnection",
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([
'Connection' => [
'QuoteConnectionId' => 123,
'ERPName' => '<string>',
'DisplayName' => '<string>',
'DisplayDescription' => '<string>',
'Rank' => 123,
'ConnectorName' => '<string>',
'ErpConnectionId' => 123,
'ExtraData' => '<string>',
'IsAvailable' => true,
'InitializeResponse' => [
'IsOk' => true,
'UserExplanation' => '<string>',
'TechExplanation' => '<string>',
'ErrorCode' => '<string>',
'Changes' => [
'AddedRecords' => [
[
'Tablename' => '<string>',
'RecordId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'UpdatedRecords' => [
[
'Tablename' => '<string>',
'RecordId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'DeletedRecords' => [
[
'Tablename' => '<string>',
'RecordId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'PriceLists' => [
[
'PriceListId' => 123,
'ERPPriceListKey' => '<string>',
'QuoteConnectionId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Currency' => '<string>',
'CurrencyName' => '<string>',
'ValidFrom' => '2023-11-07T05:31:56Z',
'ValidTo' => '2023-11-07T05:31:56Z',
'IsActive' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'AllAccess' => true,
'Deleted' => true,
'UserGroupAccessIds' => [
123
],
'AssociateAccessIds' => [
123
],
'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/SaveConnection"
payload = { "Connection": {
"QuoteConnectionId": 123,
"ERPName": "<string>",
"DisplayName": "<string>",
"DisplayDescription": "<string>",
"Rank": 123,
"ConnectorName": "<string>",
"ErpConnectionId": 123,
"ExtraData": "<string>",
"IsAvailable": True,
"InitializeResponse": {
"IsOk": True,
"UserExplanation": "<string>",
"TechExplanation": "<string>",
"ErrorCode": "<string>",
"Changes": {
"AddedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"UpdatedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"DeletedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PriceLists": [
{
"PriceListId": 123,
"ERPPriceListKey": "<string>",
"QuoteConnectionId": 123,
"Name": "<string>",
"Description": "<string>",
"Currency": "<string>",
"CurrencyName": "<string>",
"ValidFrom": "2023-11-07T05:31:56Z",
"ValidTo": "2023-11-07T05:31:56Z",
"IsActive": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AllAccess": True,
"Deleted": True,
"UserGroupAccessIds": [123],
"AssociateAccessIds": [123],
"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({
Connection: {
QuoteConnectionId: 123,
ERPName: '<string>',
DisplayName: '<string>',
DisplayDescription: '<string>',
Rank: 123,
ConnectorName: '<string>',
ErpConnectionId: 123,
ExtraData: '<string>',
IsAvailable: true,
InitializeResponse: {
IsOk: true,
UserExplanation: '<string>',
TechExplanation: '<string>',
ErrorCode: '<string>',
Changes: {
AddedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
UpdatedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
DeletedRecords: [
{
Tablename: '<string>',
RecordId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PriceLists: [
{
PriceListId: 123,
ERPPriceListKey: '<string>',
QuoteConnectionId: 123,
Name: '<string>',
Description: '<string>',
Currency: '<string>',
CurrencyName: '<string>',
ValidFrom: '2023-11-07T05:31:56Z',
ValidTo: '2023-11-07T05:31:56Z',
IsActive: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AllAccess: true,
Deleted: true,
UserGroupAccessIds: [123],
AssociateAccessIds: [123],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Quote/SaveConnection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"QuoteConnectionId": 123,
"ERPName": "<string>",
"DisplayName": "<string>",
"DisplayDescription": "<string>",
"Rank": 123,
"ConnectorName": "<string>",
"ErpConnectionId": 123,
"ExtraData": "<string>",
"IsAvailable": true,
"InitializeResponse": {
"IsOk": true,
"UserExplanation": "<string>",
"TechExplanation": "<string>",
"ErrorCode": "<string>",
"Changes": {
"AddedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"UpdatedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"DeletedRecords": [
{
"Tablename": "<string>",
"RecordId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Status": "Ok",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PriceLists": [
{
"PriceListId": 123,
"ERPPriceListKey": "<string>",
"QuoteConnectionId": 123,
"Name": "<string>",
"Description": "<string>",
"Currency": "<string>",
"CurrencyName": "<string>",
"ValidFrom": "2023-11-07T05:31:56Z",
"ValidTo": "2023-11-07T05:31:56Z",
"IsActive": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AllAccess": true,
"Deleted": true,
"UserGroupAccessIds": [
123
],
"AssociateAccessIds": [
123
],
"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
Connection
SaveConnection: Saves a connection to the database.
Information about a connection to the ERP system. Carrier object for QuoteConnection. Services for the QuoteConnection Carrier is available from the Quote Agent.
Show child attributes
Show child attributes
Response
OK
Information about a connection to the ERP system. Carrier object for QuoteConnection. Services for the QuoteConnection Carrier is available from the Quote Agent.
Primary key
Name of the ERP system (programmatic).
Connection name shown to user; multi-language support. The name of the connector to display in a list so that the users can choose between them. Typically the name of the client, with maybe the ERP system in parenthesis.
Tooltip/description shown to user; multi-language support. Any other info available that would make an uncertain user chose the right connector. Typically, used for tooltip.
Rank order
Programmatic name of the Connector plugin that implements this kind of connection
The ERP Connection that this Quote connection is an extension of
Optional extra data, in XML format, for configuring the connector. Connector-specific!
Whether or not the specified connection is available. Typically, without network access the availability is false.
PluginResponse exists to be able to respond with more than just a true/false, but also an explanation. Such an explanation can be displayed on for instance a disabled “Place Order” button. Carrier object for PluginResponse. Services for the PluginResponse Carrier is available from the Quote Agent.
Show child attributes
Show child attributes
The PriceLists that this connection offers.
Show child attributes
Show child attributes
Is this connection accessible to everyone? If not, then the QuoteConnectionAccess table tells us who can access it.
If set, then this is a row that has been 'deleted'; we do not physically delete rows to avoid disaster.
Array of ids containing usergroups that will have access to this connection.
Array of ids containing associates that will have access to this connection.
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 ConnectionSave Connection Config FieldsSave Connection List MappingsSetting up ERP Sync connectionNSQuoteAgentSOAP Sync Service