curl -X POST \
-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/DeliveryReceipt/Save" \
-d '{
"Warehouse" : {
"Description" : "Description",
"IsActive" : true,
"TotalNumberOfDistinctProducts" : 4,
"Users" : [ {
"FirstName" : "FirstName",
"IsActive" : true,
"PositionOrOccupation" : "PositionOrOccupation",
"EmailAddress" : "EmailAddress",
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"BSID" : "BSID",
"IsEmployee" : true,
"CreatedWith" : "CreatedWith",
"ID" : 5,
"LastName" : "LastName"
}, {
"FirstName" : "FirstName",
"IsActive" : true,
"PositionOrOccupation" : "PositionOrOccupation",
"EmailAddress" : "EmailAddress",
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"BSID" : "BSID",
"IsEmployee" : true,
"CreatedWith" : "CreatedWith",
"ID" : 5,
"LastName" : "LastName"
} ],
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"Version" : 9.965781217890562,
"SyncLogs" : [ {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 6,
"LastImportDateTime_offset" : 3,
"LastExportDateTime_offset" : 6,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 1,
"ID" : 9,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
}, {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 6,
"LastImportDateTime_offset" : 3,
"LastExportDateTime_offset" : 6,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 1,
"ID" : 9,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
} ],
"WarehouseTypeID" : 8,
"ID" : 9,
"DefaultPOSCustomerName" : "DefaultPOSCustomerName",
"MinimumStockHoldingValue" : 3.0205796992916243,
"IsDefault" : true,
"DefaultPOSCustomerID" : 7,
"TenantLocationName" : "TenantLocationName",
"Code" : "Code",
"TotalStockValue" : 7.740351818741173,
"RowNumber" : 5,
"BSID" : "BSID",
"MaximumStockHoldingValue" : 3.0576100241049344,
"TenantLocationID" : 6,
"Barcode" : "Barcode",
"WarehouseType" : {
"Description" : "Description",
"WarehouseTypeID" : 0,
"ID" : 6,
"IsVirtual" : true,
"Name" : "Name",
"RefNumberPrefix" : "RefNumberPrefix"
},
"TotalSOH" : 8.969578798196912,
"IsSystem" : true,
"CostCentreCode" : "CostCentreCode",
"Location" : {
"IsActive" : true,
"TimeZoneName" : "TimeZoneName",
"GUID" : "00000000-0000-0000-0000-000000000000",
"EmailAddress" : "EmailAddress",
"Name" : "Name",
"LocationName" : "LocationName",
"GUIDstring" : "GUIDstring",
"Addresses" : [ {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 0,
"Latitude" : 3.0937452626664474,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 3,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 7.143538047012306,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 7,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
}, {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 0,
"Latitude" : 3.0937452626664474,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 3,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 7.143538047012306,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 7,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
} ],
"UtcOffset" : 6,
"IsVisibleToPublic" : true,
"Contacts" : [ {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 6,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 6,
"LastName" : "LastName",
"BusinessID" : 5
}, {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 6,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 6,
"LastName" : "LastName",
"BusinessID" : 5
} ],
"Phone" : "Phone",
"IsSystem" : true,
"ID" : 2,
"Fax" : "Fax",
"IsDefaultLocation" : true
},
"IsStockOpeningBalanceComplete" : true
},
"IsActive" : true,
"DeliveryDate" : "2000-01-23T04:56:07.000+00:00",
"WarehouseID" : 4,
"LineCount" : 0,
"Attachments" : [ {
"AttachmentType" : "AttachmentType",
"LineID" : 5,
"IsActive" : true,
"ThumbnailURI" : "ThumbnailURI",
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"IsImage" : true,
"URI" : "URI",
"AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"Caption" : "Caption",
"GUIDstring" : "GUIDstring",
"IsPDF" : true,
"IsFromParent" : true,
"ID" : 0,
"AttachedByUserID" : 1,
"MessageID" : 6
}, {
"AttachmentType" : "AttachmentType",
"LineID" : 5,
"IsActive" : true,
"ThumbnailURI" : "ThumbnailURI",
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"IsImage" : true,
"URI" : "URI",
"AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"Caption" : "Caption",
"GUIDstring" : "GUIDstring",
"IsPDF" : true,
"IsFromParent" : true,
"ID" : 0,
"AttachedByUserID" : 1,
"MessageID" : 6
} ],
"TotalLines" : 4,
"GUIDstring" : "GUIDstring",
"SupplierID" : 1,
"TenantID" : 5,
"SupplierDeliveryNoteGUID" : "SupplierDeliveryNoteGUID",
"PurchaseOrderID" : 5,
"CreatedByUserName" : "CreatedByUserName",
"PurchaseInvoiceID" : 6,
"ID" : 1,
"CompletedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"IsReadOnly" : true,
"StartedDateTime_offset" : 4,
"ModifiedDateTime_offset" : 1,
"Status" : "Status",
"CompletedByUserID" : 9,
"PurchaseOrders" : [ {
"Status" : "Status",
"AppliedDate" : "2000-01-23T04:56:07.000+00:00",
"DatTypeString" : "DatTypeString",
"ShortDatTypeString" : "ShortDatTypeString",
"Description" : "Description",
"Issues" : "Issues",
"RefNumber" : "RefNumber",
"AppliedAmount" : 9.132027271330688,
"DatTypeID" : 6,
"TotalInc" : 4.258773108174356,
"LineCount" : 1,
"TransSubType" : "TransSubType",
"QuantityCount" : 4.678947989005849,
"GUIDstring" : "GUIDstring",
"TotalEx" : 7.260521264802104,
"RecipientName" : "RecipientName",
"ID" : 0
}, {
"Status" : "Status",
"AppliedDate" : "2000-01-23T04:56:07.000+00:00",
"DatTypeString" : "DatTypeString",
"ShortDatTypeString" : "ShortDatTypeString",
"Description" : "Description",
"Issues" : "Issues",
"RefNumber" : "RefNumber",
"AppliedAmount" : 9.132027271330688,
"DatTypeID" : 6,
"TotalInc" : 4.258773108174356,
"LineCount" : 1,
"TransSubType" : "TransSubType",
"QuantityCount" : 4.678947989005849,
"GUIDstring" : "GUIDstring",
"TotalEx" : 7.260521264802104,
"RecipientName" : "RecipientName",
"ID" : 0
} ],
"PickSlipID" : 7,
"RefNumber" : "RefNumber",
"ModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"GUID" : "00000000-0000-0000-0000-000000000000",
"NoteFromSupplier" : "NoteFromSupplier",
"InternalNote" : "InternalNote",
"CompletedByUserName" : "CompletedByUserName",
"StartedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"ModifiedByUserName" : "ModifiedByUserName",
"ExpectedItemsCount" : 3,
"RowNumber" : 6,
"CreatedByUserID" : 2,
"BSID" : "BSID",
"StartedByUserName" : "StartedByUserName",
"SupplierName" : "SupplierName",
"CreatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"StartedByUserID" : 2,
"StockReplenishmentID" : 1,
"DeliveryNoteID" : 1,
"ModifiedByUserID" : 7,
"CompletedDateTime_offset" : 3,
"FriendlyStatus" : "FriendlyStatus",
"CreatedDateTime_offset" : 7,
"Lines" : [ {
"Description" : "Description",
"ReceiveInventoryBatchID" : 5,
"CostPriceEx" : 7.386281948385884,
"IsActive" : true,
"StockReplenishmentLineID" : 4,
"InventoryID" : 1,
"ShortDescription" : "ShortDescription",
"QuantityToBeReceived" : 1.1730742509559433,
"GUIDstring" : "GUIDstring",
"UoM" : "UoM",
"ReceivedByUserID" : 2,
"ReceiveComment" : "ReceiveComment",
"SequenceNumber" : 9,
"QuantityIncorrect" : 7.457744773683766,
"ID" : 6,
"AssetID" : 3,
"Comment" : "Comment",
"InventoryCode" : "InventoryCode",
"InventoryGUIDstring" : "InventoryGUIDstring",
"InventoryType" : "InventoryType",
"GUID" : "00000000-0000-0000-0000-000000000000",
"UoMDescription" : "UoMDescription",
"ReceiveWarehouseLocationID" : 5,
"ReceivedDateTime_offset" : 7,
"ReceivedByUserName" : "ReceivedByUserName",
"ReceivedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"EAN" : "EAN",
"IsStockAdjustmentComplete" : true,
"QuantityFaulty" : 1.4894159098541704,
"Barcode" : "Barcode",
"QuantityOrdered" : 1.2315135367772556,
"QuantityReceived" : 1.0246457001441578,
"QuantityOutOfDate" : 6.84685269835264,
"SKU" : "SKU",
"IsAssetItem" : true,
"PurchaseOrderLineID" : 2
}, {
"Description" : "Description",
"ReceiveInventoryBatchID" : 5,
"CostPriceEx" : 7.386281948385884,
"IsActive" : true,
"StockReplenishmentLineID" : 4,
"InventoryID" : 1,
"ShortDescription" : "ShortDescription",
"QuantityToBeReceived" : 1.1730742509559433,
"GUIDstring" : "GUIDstring",
"UoM" : "UoM",
"ReceivedByUserID" : 2,
"ReceiveComment" : "ReceiveComment",
"SequenceNumber" : 9,
"QuantityIncorrect" : 7.457744773683766,
"ID" : 6,
"AssetID" : 3,
"Comment" : "Comment",
"InventoryCode" : "InventoryCode",
"InventoryGUIDstring" : "InventoryGUIDstring",
"InventoryType" : "InventoryType",
"GUID" : "00000000-0000-0000-0000-000000000000",
"UoMDescription" : "UoMDescription",
"ReceiveWarehouseLocationID" : 5,
"ReceivedDateTime_offset" : 7,
"ReceivedByUserName" : "ReceivedByUserName",
"ReceivedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"EAN" : "EAN",
"IsStockAdjustmentComplete" : true,
"QuantityFaulty" : 1.4894159098541704,
"Barcode" : "Barcode",
"QuantityOrdered" : 1.2315135367772556,
"QuantityReceived" : 1.0246457001441578,
"QuantityOutOfDate" : 6.84685269835264,
"SKU" : "SKU",
"IsAssetItem" : true,
"PurchaseOrderLineID" : 2
} ]
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<DeliveryReceiptT>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<IsReadOnly>true</IsReadOnly>
<LineCount>123</LineCount>
<FriendlyStatus>aeiou</FriendlyStatus>
<BusTransAttachmentT>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<Title>aeiou</Title>
<IsImage>true</IsImage>
<IsPDF>true</IsPDF>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<MessageID>123</MessageID>
<URI>aeiou</URI>
<AttachedByUserID>123</AttachedByUserID>
<AttachedDateTime_utc>2000-01-23T04:56:07.000Z</AttachedDateTime_utc>
<IsActive>true</IsActive>
<Caption>aeiou</Caption>
<ThumbnailURI>aeiou</ThumbnailURI>
<AttachmentType>aeiou</AttachmentType>
<IsFromParent>true</IsFromParent>
<LineID>123</LineID>
</BusTransAttachmentT>
<RowNumber>123</RowNumber>
<ID>123</ID>
<PurchaseOrderID>123</PurchaseOrderID>
<TenantID>123</TenantID>
<GUIDstring>aeiou</GUIDstring>
<RefNumber>aeiou</RefNumber>
<IsActive>true</IsActive>
<Status>aeiou</Status>
<BSID>aeiou</BSID>
<DeliveryDate>2000-01-23T04:56:07.000Z</DeliveryDate>
<CreatedByUserID>123</CreatedByUserID>
<CreatedByUserName>aeiou</CreatedByUserName>
<CreatedDateTime_utc>2000-01-23T04:56:07.000Z</CreatedDateTime_utc>
<CreatedDateTime_offset>123</CreatedDateTime_offset>
<CompletedByUserID>123</CompletedByUserID>
<CompletedByUserName>aeiou</CompletedByUserName>
<CompletedDateTime_utc>2000-01-23T04:56:07.000Z</CompletedDateTime_utc>
<CompletedDateTime_offset>123</CompletedDateTime_offset>
<StartedByUserID>123</StartedByUserID>
<StartedByUserName>aeiou</StartedByUserName>
<StartedDateTime_utc>2000-01-23T04:56:07.000Z</StartedDateTime_utc>
<StartedDateTime_offset>123</StartedDateTime_offset>
<ModifiedByUserID>123</ModifiedByUserID>
<ModifiedByUserName>aeiou</ModifiedByUserName>
<ModifiedDateTime_utc>2000-01-23T04:56:07.000Z</ModifiedDateTime_utc>
<ModifiedDateTime_offset>123</ModifiedDateTime_offset>
<SupplierID>123</SupplierID>
<SupplierName>aeiou</SupplierName>
<SupplierDeliveryNoteGUID>aeiou</SupplierDeliveryNoteGUID>
<NoteFromSupplier>aeiou</NoteFromSupplier>
<InternalNote>aeiou</InternalNote>
<StockReplenishmentID>123</StockReplenishmentID>
<PurchaseInvoiceID>123</PurchaseInvoiceID>
<PickSlipID>123</PickSlipID>
<DeliveryNoteID>123</DeliveryNoteID>
<WarehouseID>123</WarehouseID>
<null>
<IsSystem>true</IsSystem>
<RowNumber>123456789</RowNumber>
<Version>3.149</Version>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<BSID>aeiou</BSID>
<TenantLocationID>123</TenantLocationID>
<TenantLocationName>aeiou</TenantLocationName>
<WarehouseTypeID>123</WarehouseTypeID>
<Code>aeiou</Code>
<Name>aeiou</Name>
<Description>aeiou</Description>
<Barcode>aeiou</Barcode>
<IsDefault>true</IsDefault>
<IsActive>true</IsActive>
<TotalNumberOfDistinctProducts>123456789</TotalNumberOfDistinctProducts>
<TotalSOH>3.149</TotalSOH>
<TotalStockValue>3.149</TotalStockValue>
<IsStockOpeningBalanceComplete>true</IsStockOpeningBalanceComplete>
<MinimumStockHoldingValue>3.149</MinimumStockHoldingValue>
<MaximumStockHoldingValue>3.149</MaximumStockHoldingValue>
<DefaultPOSCustomerID>123</DefaultPOSCustomerID>
<DefaultPOSCustomerName>aeiou</DefaultPOSCustomerName>
<CostCentreCode>aeiou</CostCentreCode>
</null>
<ExpectedItemsCount>123</ExpectedItemsCount>
<TotalLines>123</TotalLines>
<null>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<InventoryID>123</InventoryID>
<InventoryCode>aeiou</InventoryCode>
<InventoryGUIDstring>aeiou</InventoryGUIDstring>
<InventoryType>aeiou</InventoryType>
<Barcode>aeiou</Barcode>
<EAN>aeiou</EAN>
<SKU>aeiou</SKU>
<ShortDescription>aeiou</ShortDescription>
<Description>aeiou</Description>
<UoM>aeiou</UoM>
<UoMDescription>aeiou</UoMDescription>
<ReceiveWarehouseLocationID>123</ReceiveWarehouseLocationID>
<ReceiveInventoryBatchID>123</ReceiveInventoryBatchID>
<IsActive>true</IsActive>
<ReceivedByUserID>123</ReceivedByUserID>
<ReceivedByUserName>aeiou</ReceivedByUserName>
<ReceivedDateTime_utc>2000-01-23T04:56:07.000Z</ReceivedDateTime_utc>
<ReceivedDateTime_offset>123</ReceivedDateTime_offset>
<ReceiveComment>aeiou</ReceiveComment>
<SequenceNumber>123</SequenceNumber>
<IsAssetItem>true</IsAssetItem>
<AssetID>123</AssetID>
<Comment>aeiou</Comment>
<IsStockAdjustmentComplete>true</IsStockAdjustmentComplete>
<PurchaseOrderLineID>123</PurchaseOrderLineID>
<StockReplenishmentLineID>123</StockReplenishmentLineID>
<CostPriceEx>3.149</CostPriceEx>
<QuantityOrdered>3.149</QuantityOrdered>
<QuantityReceived>3.149</QuantityReceived>
<QuantityFaulty>3.149</QuantityFaulty>
<QuantityOutOfDate>3.149</QuantityOutOfDate>
<QuantityIncorrect>3.149</QuantityIncorrect>
<QuantityToBeReceived>3.149</QuantityToBeReceived>
</null>
<null>
<ShortDatTypeString>aeiou</ShortDatTypeString>
<DatTypeString>aeiou</DatTypeString>
<TransSubType>aeiou</TransSubType>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<DatTypeID>123</DatTypeID>
<Status>aeiou</Status>
<RefNumber>aeiou</RefNumber>
<Description>aeiou</Description>
<TotalInc>3.149</TotalInc>
<Issues>aeiou</Issues>
<RecipientName>aeiou</RecipientName>
<LineCount>123</LineCount>
<QuantityCount>3.149</QuantityCount>
<TotalEx>3.149</TotalEx>
<AppliedAmount>3.149</AppliedAmount>
<AppliedDate>2000-01-23T04:56:07.000Z</AppliedDate>
</null>
</DeliveryReceiptT>' \
-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();
DeliveryReceiptT deliveryReceiptT = {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]}; // DeliveryReceiptT |
try {
ActionResults_IDRefNumber_ result = apiInstance.deliveryReceiptSave(deliveryReceiptT);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deliveryReceiptSave");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final DeliveryReceiptT deliveryReceiptT = new DeliveryReceiptT(); // DeliveryReceiptT |
try {
final result = await api_instance.deliveryReceiptSave(deliveryReceiptT);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->deliveryReceiptSave: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
DeliveryReceiptT deliveryReceiptT = {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]}; // DeliveryReceiptT |
try {
ActionResults_IDRefNumber_ result = apiInstance.deliveryReceiptSave(deliveryReceiptT);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deliveryReceiptSave");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
DeliveryReceiptT *deliveryReceiptT = {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]}; // (optional)
// DeliveryReceipt_Save
[apiInstance deliveryReceiptSaveWith:deliveryReceiptT
completionHandler: ^(ActionResults_IDRefNumber_ output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiDeliveryReceipt = require('as_server_api_delivery_receipt');
// Create an instance of the API class
var api = new AsServerApiDeliveryReceipt.DefaultApi()
var opts = {
'deliveryReceiptT': {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]} // {DeliveryReceiptT}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deliveryReceiptSave(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deliveryReceiptSaveExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var deliveryReceiptT = new DeliveryReceiptT(); // DeliveryReceiptT | (optional)
try {
// DeliveryReceipt_Save
ActionResults_IDRefNumber_ result = apiInstance.deliveryReceiptSave(deliveryReceiptT);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deliveryReceiptSave: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$deliveryReceiptT = {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]}; // DeliveryReceiptT |
try {
$result = $api_instance->deliveryReceiptSave($deliveryReceiptT);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deliveryReceiptSave: ', $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 $deliveryReceiptT = WWW::OPenAPIClient::Object::DeliveryReceiptT->new(); # DeliveryReceiptT |
eval {
my $result = $api_instance->deliveryReceiptSave(deliveryReceiptT => $deliveryReceiptT);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->deliveryReceiptSave: $@\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()
deliveryReceiptT = {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]} # DeliveryReceiptT | (optional)
try:
# DeliveryReceipt_Save
api_response = api_instance.delivery_receipt_save(deliveryReceiptT=deliveryReceiptT)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->deliveryReceiptSave: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let deliveryReceiptT = {"GUID":"00000000-0000-0000-0000-000000000000","IsReadOnly":true,"LineCount":0,"FriendlyStatus":"string","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}],"RowNumber":0,"ID":0,"PurchaseOrderID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","IsActive":true,"Status":"string","BSID":"string","DeliveryDate":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedByUserID":0,"CompletedByUserName":"string","CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"StartedByUserID":0,"StartedByUserName":"string","StartedDateTime_utc":"string","StartedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedByUserName":"string","ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"SupplierID":0,"SupplierName":"string","SupplierDeliveryNoteGUID":"string","NoteFromSupplier":"string","InternalNote":"string","StockReplenishmentID":0,"PurchaseInvoiceID":0,"PickSlipID":0,"DeliveryNoteID":0,"WarehouseID":0,"Warehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]},"ExpectedItemsCount":0,"TotalLines":0,"Lines":[{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","InventoryID":0,"InventoryCode":"string","InventoryGUIDstring":"string","InventoryType":"string","Barcode":"string","EAN":"string","SKU":"string","ShortDescription":"string","Description":"string","UoM":"string","UoMDescription":"string","ReceiveWarehouseLocationID":0,"ReceiveInventoryBatchID":0,"IsActive":true,"ReceivedByUserID":0,"ReceivedByUserName":"string","ReceivedDateTime_utc":"string","ReceivedDateTime_offset":0,"ReceiveComment":"string","SequenceNumber":0,"IsAssetItem":true,"AssetID":0,"Comment":"string","IsStockAdjustmentComplete":true,"PurchaseOrderLineID":0,"StockReplenishmentLineID":0,"CostPriceEx":0,"QuantityOrdered":0,"QuantityReceived":0,"QuantityFaulty":0,"QuantityOutOfDate":0,"QuantityIncorrect":0,"QuantityToBeReceived":0}],"PurchaseOrders":[{"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"}]}; // DeliveryReceiptT
let mut context = DefaultApi::Context::default();
let result = client.deliveryReceiptSave(deliveryReceiptT, &context).wait();
println!("{:?}", result);
}