curl -X PATCH \
-H "Accept: application/json,text/json,application/xml,text/xml" \
-H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
"https://api.dev.spenda.co/api/ConsignmentNote/{consignmentNoteID}" \
-d 'Custom MIME type example not yet supported: text/json' \
-d '' \
-d 'Custom MIME type example not yet supported: text/xml' \
-d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Integer consignmentNoteID = 56; // Integer | Format - int32.
ActionRequestConsignmentNoteT actionRequestConsignmentNoteT = {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestConsignmentNoteT |
try {
ActionResults_ConsignmentNoteT_ result = apiInstance.consignmentNotePatch(consignmentNoteID, actionRequestConsignmentNoteT);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#consignmentNotePatch");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Integer consignmentNoteID = new Integer(); // Integer | Format - int32.
final ActionRequestConsignmentNoteT actionRequestConsignmentNoteT = new ActionRequestConsignmentNoteT(); // ActionRequestConsignmentNoteT |
try {
final result = await api_instance.consignmentNotePatch(consignmentNoteID, actionRequestConsignmentNoteT);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->consignmentNotePatch: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Integer consignmentNoteID = 56; // Integer | Format - int32.
ActionRequestConsignmentNoteT actionRequestConsignmentNoteT = {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestConsignmentNoteT |
try {
ActionResults_ConsignmentNoteT_ result = apiInstance.consignmentNotePatch(consignmentNoteID, actionRequestConsignmentNoteT);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#consignmentNotePatch");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *consignmentNoteID = 56; // Format - int32. (default to null)
ActionRequestConsignmentNoteT *actionRequestConsignmentNoteT = {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // (optional)
// ConsignmentNote_Patch
[apiInstance consignmentNotePatchWith:consignmentNoteID
actionRequestConsignmentNoteT:actionRequestConsignmentNoteT
completionHandler: ^(ActionResults_ConsignmentNoteT_ output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiConsignmentNote = require('as_server_api_consignment_note');
// Create an instance of the API class
var api = new AsServerApiConsignmentNote.DefaultApi()
var consignmentNoteID = 56; // {Integer} Format - int32.
var opts = {
'actionRequestConsignmentNoteT': {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestConsignmentNoteT}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.consignmentNotePatch(consignmentNoteID, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class consignmentNotePatchExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var consignmentNoteID = 56; // Integer | Format - int32. (default to null)
var actionRequestConsignmentNoteT = new ActionRequestConsignmentNoteT(); // ActionRequestConsignmentNoteT | (optional)
try {
// ConsignmentNote_Patch
ActionResults_ConsignmentNoteT_ result = apiInstance.consignmentNotePatch(consignmentNoteID, actionRequestConsignmentNoteT);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.consignmentNotePatch: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$consignmentNoteID = 56; // Integer | Format - int32.
$actionRequestConsignmentNoteT = {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestConsignmentNoteT |
try {
$result = $api_instance->consignmentNotePatch($consignmentNoteID, $actionRequestConsignmentNoteT);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->consignmentNotePatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $consignmentNoteID = 56; # Integer | Format - int32.
my $actionRequestConsignmentNoteT = WWW::OPenAPIClient::Object::ActionRequestConsignmentNoteT->new(); # ActionRequestConsignmentNoteT |
eval {
my $result = $api_instance->consignmentNotePatch(consignmentNoteID => $consignmentNoteID, actionRequestConsignmentNoteT => $actionRequestConsignmentNoteT);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->consignmentNotePatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
consignmentNoteID = 56 # Integer | Format - int32. (default to null)
actionRequestConsignmentNoteT = {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestConsignmentNoteT | (optional)
try:
# ConsignmentNote_Patch
api_response = api_instance.consignment_note_patch(consignmentNoteID, actionRequestConsignmentNoteT=actionRequestConsignmentNoteT)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->consignmentNotePatch: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let consignmentNoteID = 56; // Integer
let actionRequestConsignmentNoteT = {"Value":{"IsActive":true,"CustomerID":0,"CustomerName":"string","WarehouseID":0,"WarehouseName":"string","TrackingUrl":"string","SalesOrderInvoicingStatus":"string","LinkedTrans":[{"ShortDatTypeString":"string","DatTypeString":"string","TransSubType":"string","ID":0,"GUIDstring":"string","DatTypeID":0,"Status":"string","RefNumber":"string","Description":"string","TotalInc":0,"Issues":"string","RecipientName":"string","LineCount":0,"QuantityCount":0,"TotalEx":0,"AppliedAmount":0,"AppliedDate":"string"}],"ID":0,"Status":"string","RefNumber":"string","SalesOrderRefNumber":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"Description":"string","IsCustomerPickup":true,"LogisticServiceType":1,"LogisticServiceName":"string","LogisticServiceRefNumber":"string","TrackingNumber":"string","AccountCode":"string","Pickup":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","RequestedDateTime":"string","ActualPickupDateTime":"string"},"Delivery":{"CompanyName":"string","ContactName":"string","ContactPhone":"string","ContactEmail":"string","ContactMobile":"string","StreetAddress":"string","Suburb":"string","State":"string","Postcode":"string","Country":"string","Instructions":"string","ActualDeliveryDateTime":"string"},"TotalPackages":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalFreightCostEx":0,"TotalFreightCostTax":0,"TotalFreightCostInc":0,"LogisticServiceResponseStatus":"string","LogisticServiceResponseDetails":"string","Packages":[{"ConsignmentNoteID":0,"IsActive":true,"Lines":[{"ID":0,"IsActive":true,"ConsignmentNotePackageID":0,"PickSlipLineID":0,"QuantityPacked":0,"QuantityPicked":0,"QuantityOrdered":0,"InventoryID":0,"Code":"string","ShortDescription":"string","UoM":"string","UoMDescription":"string","Length_m":0,"Width_m":0,"Weight_kg":0,"Depth_m":0,"Volume":0,"IsStockAdjustmentComplete":true}],"ID":0,"RefNumber":"string","PackageUOM":"string","Barcode":"string","ArticleID":"string","LogisticServicePackageCode":"string","ContentDescription":"string","NumberOfItems":0,"TotalWeight_kg":0,"TotalVolume_m3":0,"TotalLength_m":0,"TotalWidth_m":0,"TotalHeight_m":0,"FreightCostEx":0,"FreightCostTax":0,"FreightCostInc":0,"PackageTypeID":0,"PackageTypeName":"string"}],"Messages":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}],"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestConsignmentNoteT
let mut context = DefaultApi::Context::default();
let result = client.consignmentNotePatch(consignmentNoteID, actionRequestConsignmentNoteT, &context).wait();
println!("{:?}", result);
}