SalesPurchase
Click here for a complete list of operations.
DirectDistributionSalesInsertForSubBranch
For Pernod Richard
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /SAASWebService/Sales/SalesPurchase.asmx HTTP/1.1
Host: vp.golfdondurma.com.tr
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/DirectDistributionSalesInsertForSubBranch"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<DirectDistributionSalesInsertForSubBranch xmlns="http://tempuri.org/">
<SalesInvoice>
<Lines>
<InvoiceLineParameter>
<ProgressPaymentDetail xsi:nil="true" />
<ProgressPaymentCustomerDetail xsi:nil="true" />
<InvoiceLineSerial xsi:nil="true" />
<LineRefDocuments xsi:nil="true" />
<LineNumber>long</LineNumber>
<ItemId>string</ItemId>
<UnitSetId>string</UnitSetId>
<UnitId>string</UnitId>
<ConvFact1>decimal</ConvFact1>
<ConvFact2>decimal</ConvFact2>
<InvoiceQuantity>decimal</InvoiceQuantity>
<VatRate>decimal</VatRate>
<TotalVat>decimal</TotalVat>
<TotalItemDiscount>decimal</TotalItemDiscount>
<TotalOtherDiscount>decimal</TotalOtherDiscount>
<Price>decimal</Price>
<GrossTotal>decimal</GrossTotal>
<NetTotal>decimal</NetTotal>
<Genexp1>string</Genexp1>
<IsFreeItem>short</IsFreeItem>
<StatusId>string</StatusId>
<IsCanceled>short</IsCanceled>
<CancelReasonId>string</CancelReasonId>
<RefDocumentId>string</RefDocumentId>
<FreeReasonId>string</FreeReasonId>
<CalculatedVat>decimal</CalculatedVat>
<ContractId>string</ContractId>
<SalesVolumeId>string</SalesVolumeId>
<PriceListPrice>decimal</PriceListPrice>
<ProgressTransactionId>string</ProgressTransactionId>
<SalesQuantity1>decimal</SalesQuantity1>
<SalesUnit1Id>string</SalesUnit1Id>
<SalesQuantity2>decimal</SalesQuantity2>
<SalesUnit2Id>string</SalesUnit2Id>
<SalesGrossTotal>decimal</SalesGrossTotal>
<SalesNetTotal>decimal</SalesNetTotal>
<SalesPrice>decimal</SalesPrice>
<SalesTotalVat>decimal</SalesTotalVat>
<SalesVatRate>decimal</SalesVatRate>
<DiscountRateText>string</DiscountRateText>
<PackageQuantity>decimal</PackageQuantity>
<PieceQuantity>decimal</PieceQuantity>
<ContractDiscountRate>decimal</ContractDiscountRate>
<ItemCardType>string</ItemCardType>
<RejectedQuantity>decimal</RejectedQuantity>
<RejectedQuantity1>decimal</RejectedQuantity1>
<RejectedQuantity2>decimal</RejectedQuantity2>
</InvoiceLineParameter>
<InvoiceLineParameter>
<ProgressPaymentDetail xsi:nil="true" />
<ProgressPaymentCustomerDetail xsi:nil="true" />
<InvoiceLineSerial xsi:nil="true" />
<LineRefDocuments xsi:nil="true" />
<LineNumber>long</LineNumber>
<ItemId>string</ItemId>
<UnitSetId>string</UnitSetId>
<UnitId>string</UnitId>
<ConvFact1>decimal</ConvFact1>
<ConvFact2>decimal</ConvFact2>
<InvoiceQuantity>decimal</InvoiceQuantity>
<VatRate>decimal</VatRate>
<TotalVat>decimal</TotalVat>
<TotalItemDiscount>decimal</TotalItemDiscount>
<TotalOtherDiscount>decimal</TotalOtherDiscount>
<Price>decimal</Price>
<GrossTotal>decimal</GrossTotal>
<NetTotal>decimal</NetTotal>
<Genexp1>string</Genexp1>
<IsFreeItem>short</IsFreeItem>
<StatusId>string</StatusId>
<IsCanceled>short</IsCanceled>
<CancelReasonId>string</CancelReasonId>
<RefDocumentId>string</RefDocumentId>
<FreeReasonId>string</FreeReasonId>
<CalculatedVat>decimal</CalculatedVat>
<ContractId>string</ContractId>
<SalesVolumeId>string</SalesVolumeId>
<PriceListPrice>decimal</PriceListPrice>
<ProgressTransactionId>string</ProgressTransactionId>
<SalesQuantity1>decimal</SalesQuantity1>
<SalesUnit1Id>string</SalesUnit1Id>
<SalesQuantity2>decimal</SalesQuantity2>
<SalesUnit2Id>string</SalesUnit2Id>
<SalesGrossTotal>decimal</SalesGrossTotal>
<SalesNetTotal>decimal</SalesNetTotal>
<SalesPrice>decimal</SalesPrice>
<SalesTotalVat>decimal</SalesTotalVat>
<SalesVatRate>decimal</SalesVatRate>
<DiscountRateText>string</DiscountRateText>
<PackageQuantity>decimal</PackageQuantity>
<PieceQuantity>decimal</PieceQuantity>
<ContractDiscountRate>decimal</ContractDiscountRate>
<ItemCardType>string</ItemCardType>
<RejectedQuantity>decimal</RejectedQuantity>
<RejectedQuantity1>decimal</RejectedQuantity1>
<RejectedQuantity2>decimal</RejectedQuantity2>
</InvoiceLineParameter>
</Lines>
<Discounts>
<InvoiceDiscountParameter>
<DiscountClassId>string</DiscountClassId>
<DiscountReasonId>string</DiscountReasonId>
<DiscountId>string</DiscountId>
<IsItemLineDiscount>short</IsItemLineDiscount>
<TotalDiscount>decimal</TotalDiscount>
<DiscountPercent>float</DiscountPercent>
<LoyaltyId>string</LoyaltyId>
<LoyaltyValue>decimal</LoyaltyValue>
<SalesVolumeId>string</SalesVolumeId>
<ContractId>string</ContractId>
<ContractDescription>string</ContractDescription>
<ItemId>string</ItemId>
<IsContractDiscount>short</IsContractDiscount>
<DiscountCategoryId>string</DiscountCategoryId>
<DiscountKindId>string</DiscountKindId>
</InvoiceDiscountParameter>
<InvoiceDiscountParameter>
<DiscountClassId>string</DiscountClassId>
<DiscountReasonId>string</DiscountReasonId>
<DiscountId>string</DiscountId>
<IsItemLineDiscount>short</IsItemLineDiscount>
<TotalDiscount>decimal</TotalDiscount>
<DiscountPercent>float</DiscountPercent>
<LoyaltyId>string</LoyaltyId>
<LoyaltyValue>decimal</LoyaltyValue>
<SalesVolumeId>string</SalesVolumeId>
<ContractId>string</ContractId>
<ContractDescription>string</ContractDescription>
<ItemId>string</ItemId>
<IsContractDiscount>short</IsContractDiscount>
<DiscountCategoryId>string</DiscountCategoryId>
<DiscountKindId>string</DiscountKindId>
</InvoiceDiscountParameter>
</Discounts>
<RefDocuments>
<InvoiceRefDocumentParameter>
<InvoiceId>string</InvoiceId>
<RefDocumentTypeId>string</RefDocumentTypeId>
<RefDocumentId>string</RefDocumentId>
<RefDocumentNumber>string</RefDocumentNumber>
<RefDocumentSystemNumber>string</RefDocumentSystemNumber>
<RefDocumentRepresentativeId>string</RefDocumentRepresentativeId>
<RefDocumentCustomerId>string</RefDocumentCustomerId>
<RefDocumentDate>dateTime</RefDocumentDate>
</InvoiceRefDocumentParameter>
<InvoiceRefDocumentParameter>
<InvoiceId>string</InvoiceId>
<RefDocumentTypeId>string</RefDocumentTypeId>
<RefDocumentId>string</RefDocumentId>
<RefDocumentNumber>string</RefDocumentNumber>
<RefDocumentSystemNumber>string</RefDocumentSystemNumber>
<RefDocumentRepresentativeId>string</RefDocumentRepresentativeId>
<RefDocumentCustomerId>string</RefDocumentCustomerId>
<RefDocumentDate>dateTime</RefDocumentDate>
</InvoiceRefDocumentParameter>
</RefDocuments>
<DiscountItemDetails>
<InvoiceDiscountItemDetailParameter>
<InvoiceId>long</InvoiceId>
<DiscountTotal>decimal</DiscountTotal>
<StatusId>long</StatusId>
<DiscountId>string</DiscountId>
<DiscountRate>decimal</DiscountRate>
<GivenQuantity>decimal</GivenQuantity>
<ItemId>string</ItemId>
</InvoiceDiscountItemDetailParameter>
<InvoiceDiscountItemDetailParameter>
<InvoiceId>long</InvoiceId>
<DiscountTotal>decimal</DiscountTotal>
<StatusId>long</StatusId>
<DiscountId>string</DiscountId>
<DiscountRate>decimal</DiscountRate>
<GivenQuantity>decimal</GivenQuantity>
<ItemId>string</ItemId>
</InvoiceDiscountItemDetailParameter>
</DiscountItemDetails>
<PaymentPlans>
<InvoicePaymentPlanParameter>
<InvoiceId>long</InvoiceId>
<PaymentPeriod>long</PaymentPeriod>
<PaymentDate>dateTime</PaymentDate>
<Amount>decimal</Amount>
<Paid>decimal</Paid>
<ReorganizationId>long</ReorganizationId>
</InvoicePaymentPlanParameter>
<InvoicePaymentPlanParameter>
<InvoiceId>long</InvoiceId>
<PaymentPeriod>long</PaymentPeriod>
<PaymentDate>dateTime</PaymentDate>
<Amount>decimal</Amount>
<Paid>decimal</Paid>
<ReorganizationId>long</ReorganizationId>
</InvoicePaymentPlanParameter>
</PaymentPlans>
<DiscountPrints>
<InvoiceDiscountPrintParameter>
<DiscountRate>decimal</DiscountRate>
<DiscountTotal>decimal</DiscountTotal>
</InvoiceDiscountPrintParameter>
<InvoiceDiscountPrintParameter>
<DiscountRate>decimal</DiscountRate>
<DiscountTotal>decimal</DiscountTotal>
</InvoiceDiscountPrintParameter>
</DiscountPrints>
<ProgressPayments>
<InvoiceId>string</InvoiceId>
<ItemId>string</ItemId>
<RecordId>string</RecordId>
<CustomerId>string</CustomerId>
<PaymentTotal>decimal</PaymentTotal>
<TransactionTotal>decimal</TransactionTotal>
<Details>
<InvoiceProgressPaymentDetailParameter xsi:nil="true" />
<InvoiceProgressPaymentDetailParameter xsi:nil="true" />
</Details>
</ProgressPayments>
<PalletQuantityParams>
<PalletQuantityParams>
<Code>string</Code>
<CompanyId>decimal</CompanyId>
<BranchId>decimal</BranchId>
<Description1>string</Description1>
<UserId>decimal</UserId>
<Barcode>string</Barcode>
<Quantity>decimal</Quantity>
<DocumentId>decimal</DocumentId>
<DespatchNumber>string</DespatchNumber>
<CompanyCode>string</CompanyCode>
<CustomerCode>string</CustomerCode>
</PalletQuantityParams>
<PalletQuantityParams>
<Code>string</Code>
<CompanyId>decimal</CompanyId>
<BranchId>decimal</BranchId>
<Description1>string</Description1>
<UserId>decimal</UserId>
<Barcode>string</Barcode>
<Quantity>decimal</Quantity>
<DocumentId>decimal</DocumentId>
<DespatchNumber>string</DespatchNumber>
<CompanyCode>string</CompanyCode>
<CustomerCode>string</CustomerCode>
</PalletQuantityParams>
</PalletQuantityParams>
<InvoiceNumber>string</InvoiceNumber>
<DocumentNumber>string</DocumentNumber>
<InvoiceTypeId>string</InvoiceTypeId>
<DocumentClassId>string</DocumentClassId>
<InvoiceKindId>string</InvoiceKindId>
<CustomerId>string</CustomerId>
<DocumentDate>dateTime</DocumentDate>
<DocumentTime>string</DocumentTime>
<RecvLocationId>string</RecvLocationId>
<WarehouseId>string</WarehouseId>
<RepresentativeId>string</RepresentativeId>
<Canceled>short</Canceled>
<Printed>short</Printed>
<TerminalOrPc>string</TerminalOrPc>
<PaymentTypeId>string</PaymentTypeId>
<PaymentPeriodId>string</PaymentPeriodId>
<PriceListId>string</PriceListId>
<CurrencyId>string</CurrencyId>
<TotalUserDiscount>decimal</TotalUserDiscount>
<TotalItemDiscount>decimal</TotalItemDiscount>
<TotalOtherDiscount>decimal</TotalOtherDiscount>
<TotalDiscount>decimal</TotalDiscount>
<TotalVat>decimal</TotalVat>
<GrossTotal>decimal</GrossTotal>
<NetTotal>decimal</NetTotal>
<ReportCurrency1Id>string</ReportCurrency1Id>
<ReportCurrency1Rate>decimal</ReportCurrency1Rate>
<ReportCurrency1NetTotal>decimal</ReportCurrency1NetTotal>
<ReportCurrency2Id>string</ReportCurrency2Id>
<ReportCurrency2Rate>decimal</ReportCurrency2Rate>
<ReportCurrency2NetTotal>decimal</ReportCurrency2NetTotal>
<Genexp1>string</Genexp1>
<Genexp2>string</Genexp2>
<Genexp3>string</Genexp3>
<InvoiceGroupId>string</InvoiceGroupId>
<CancelReasonId>string</CancelReasonId>
<RouteId>string</RouteId>
<StatusId>string</StatusId>
<CanceledUser>string</CanceledUser>
<CanceledDatetime>dateTime</CanceledDatetime>
<PaymentStatusId>string</PaymentStatusId>
<VehicleId>string</VehicleId>
<AssetLocationId>string</AssetLocationId>
<DocumentTypeId>string</DocumentTypeId>
<DeliveryRepresentativeId>string</DeliveryRepresentativeId>
<RecvLocationCustomerId>string</RecvLocationCustomerId>
<IsVehicleWarehouse>short</IsVehicleWarehouse>
<RmaReasonId>string</RmaReasonId>
<RmaReasonDesc>string</RmaReasonDesc>
<TransportTotal>decimal</TransportTotal>
<InsuranceTotal>decimal</InsuranceTotal>
<CurrencyRate>decimal</CurrencyRate>
<ExportType>string</ExportType>
<SalesNetTotal>decimal</SalesNetTotal>
<SalesGrossTotal>decimal</SalesGrossTotal>
<DeclarationDate>dateTime</DeclarationDate>
<IsExport>short</IsExport>
<DeclarationNo>string</DeclarationNo>
<ExportNumber>string</ExportNumber>
<DeliveryPlace>string</DeliveryPlace>
<LoadingPlace>string</LoadingPlace>
<CustomDate>dateTime</CustomDate>
<CustomsAgencyId>string</CustomsAgencyId>
<ExportTypeId>string</ExportTypeId>
<DeliveryTypeId>string</DeliveryTypeId>
<ExportPaymentTypeId>string</ExportPaymentTypeId>
<ImportCreditTypeId>string</ImportCreditTypeId>
<CustomsId>string</CustomsId>
<TransportTypeId>string</TransportTypeId>
<TransportCurrencyId>string</TransportCurrencyId>
<InsuranceCurrencyId>string</InsuranceCurrencyId>
<ArrivalCountryId>string</ArrivalCountryId>
<ExportPaymentCredit>decimal</ExportPaymentCredit>
<ForeignTransporterCompany>string</ForeignTransporterCompany>
<DomesticTransporterCompany>string</DomesticTransporterCompany>
<DeclarationStartDate>dateTime</DeclarationStartDate>
<IsProforma>short</IsProforma>
<SystemNumber>string</SystemNumber>
<CustomerFinanceCode>string</CustomerFinanceCode>
<WarehouseFinanceCode>string</WarehouseFinanceCode>
<RepresentativeFinanceCode>string</RepresentativeFinanceCode>
<RefSalesWaybillId>string</RefSalesWaybillId>
<RmaTypeId>string</RmaTypeId>
<CustomerRecordType>string</CustomerRecordType>
<UpperCustomer>string</UpperCustomer>
<CashPaymentFinanceSystemNumber>string</CashPaymentFinanceSystemNumber>
<ConnectedReturnInvoiceExists>boolean</ConnectedReturnInvoiceExists>
<CustomerName>string</CustomerName>
<SalesRepCode>string</SalesRepCode>
<CustomerBranchCode>string</CustomerBranchCode>
<HasBrokenForm>boolean</HasBrokenForm>
<PurchaseReturnWaybillNumber>string</PurchaseReturnWaybillNumber>
<Category1Code>string</Category1Code>
<Category2Code>string</Category2Code>
<Category3Code>string</Category3Code>
<RecordTypeCode>string</RecordTypeCode>
<ShippingDate>dateTime</ShippingDate>
<RmaStatus>string</RmaStatus>
<RmaType>string</RmaType>
<IsThereError>boolean</IsThereError>
<InvoiceErrorDescription>string</InvoiceErrorDescription>
<IsCentralCustomer>boolean</IsCentralCustomer>
<RefDeliveryWaybillNumber>string</RefDeliveryWaybillNumber>
<RefSalesWaybillNumber>string</RefSalesWaybillNumber>
<RelatedDeliveryWaybill>boolean</RelatedDeliveryWaybill>
<ManualDeliveryParam>
<RecordId>long</RecordId>
<DeliveryCompanyId>long</DeliveryCompanyId>
<VehicleTypeId>long</VehicleTypeId>
<TruckPlate>string</TruckPlate>
<TrailerPlate>string</TrailerPlate>
</ManualDeliveryParam>
</SalesInvoice>
<AuthorizationKey>string</AuthorizationKey>
</DirectDistributionSalesInsertForSubBranch>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<DirectDistributionSalesInsertForSubBranchResponse xmlns="http://tempuri.org/">
<DirectDistributionSalesInsertForSubBranchResult>
<isCompleted>boolean</isCompleted>
<Message>string</Message>
<Code>string</Code>
<StackTrace>string</StackTrace>
</DirectDistributionSalesInsertForSubBranchResult>
</DirectDistributionSalesInsertForSubBranchResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /SAASWebService/Sales/SalesPurchase.asmx HTTP/1.1
Host: vp.golfdondurma.com.tr
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<DirectDistributionSalesInsertForSubBranch xmlns="http://tempuri.org/">
<SalesInvoice>
<Lines>
<InvoiceLineParameter>
<ProgressPaymentDetail xsi:nil="true" />
<ProgressPaymentCustomerDetail xsi:nil="true" />
<InvoiceLineSerial xsi:nil="true" />
<LineRefDocuments xsi:nil="true" />
<LineNumber>long</LineNumber>
<ItemId>string</ItemId>
<UnitSetId>string</UnitSetId>
<UnitId>string</UnitId>
<ConvFact1>decimal</ConvFact1>
<ConvFact2>decimal</ConvFact2>
<InvoiceQuantity>decimal</InvoiceQuantity>
<VatRate>decimal</VatRate>
<TotalVat>decimal</TotalVat>
<TotalItemDiscount>decimal</TotalItemDiscount>
<TotalOtherDiscount>decimal</TotalOtherDiscount>
<Price>decimal</Price>
<GrossTotal>decimal</GrossTotal>
<NetTotal>decimal</NetTotal>
<Genexp1>string</Genexp1>
<IsFreeItem>short</IsFreeItem>
<StatusId>string</StatusId>
<IsCanceled>short</IsCanceled>
<CancelReasonId>string</CancelReasonId>
<RefDocumentId>string</RefDocumentId>
<FreeReasonId>string</FreeReasonId>
<CalculatedVat>decimal</CalculatedVat>
<ContractId>string</ContractId>
<SalesVolumeId>string</SalesVolumeId>
<PriceListPrice>decimal</PriceListPrice>
<ProgressTransactionId>string</ProgressTransactionId>
<SalesQuantity1>decimal</SalesQuantity1>
<SalesUnit1Id>string</SalesUnit1Id>
<SalesQuantity2>decimal</SalesQuantity2>
<SalesUnit2Id>string</SalesUnit2Id>
<SalesGrossTotal>decimal</SalesGrossTotal>
<SalesNetTotal>decimal</SalesNetTotal>
<SalesPrice>decimal</SalesPrice>
<SalesTotalVat>decimal</SalesTotalVat>
<SalesVatRate>decimal</SalesVatRate>
<DiscountRateText>string</DiscountRateText>
<PackageQuantity>decimal</PackageQuantity>
<PieceQuantity>decimal</PieceQuantity>
<ContractDiscountRate>decimal</ContractDiscountRate>
<ItemCardType>string</ItemCardType>
<RejectedQuantity>decimal</RejectedQuantity>
<RejectedQuantity1>decimal</RejectedQuantity1>
<RejectedQuantity2>decimal</RejectedQuantity2>
</InvoiceLineParameter>
<InvoiceLineParameter>
<ProgressPaymentDetail xsi:nil="true" />
<ProgressPaymentCustomerDetail xsi:nil="true" />
<InvoiceLineSerial xsi:nil="true" />
<LineRefDocuments xsi:nil="true" />
<LineNumber>long</LineNumber>
<ItemId>string</ItemId>
<UnitSetId>string</UnitSetId>
<UnitId>string</UnitId>
<ConvFact1>decimal</ConvFact1>
<ConvFact2>decimal</ConvFact2>
<InvoiceQuantity>decimal</InvoiceQuantity>
<VatRate>decimal</VatRate>
<TotalVat>decimal</TotalVat>
<TotalItemDiscount>decimal</TotalItemDiscount>
<TotalOtherDiscount>decimal</TotalOtherDiscount>
<Price>decimal</Price>
<GrossTotal>decimal</GrossTotal>
<NetTotal>decimal</NetTotal>
<Genexp1>string</Genexp1>
<IsFreeItem>short</IsFreeItem>
<StatusId>string</StatusId>
<IsCanceled>short</IsCanceled>
<CancelReasonId>string</CancelReasonId>
<RefDocumentId>string</RefDocumentId>
<FreeReasonId>string</FreeReasonId>
<CalculatedVat>decimal</CalculatedVat>
<ContractId>string</ContractId>
<SalesVolumeId>string</SalesVolumeId>
<PriceListPrice>decimal</PriceListPrice>
<ProgressTransactionId>string</ProgressTransactionId>
<SalesQuantity1>decimal</SalesQuantity1>
<SalesUnit1Id>string</SalesUnit1Id>
<SalesQuantity2>decimal</SalesQuantity2>
<SalesUnit2Id>string</SalesUnit2Id>
<SalesGrossTotal>decimal</SalesGrossTotal>
<SalesNetTotal>decimal</SalesNetTotal>
<SalesPrice>decimal</SalesPrice>
<SalesTotalVat>decimal</SalesTotalVat>
<SalesVatRate>decimal</SalesVatRate>
<DiscountRateText>string</DiscountRateText>
<PackageQuantity>decimal</PackageQuantity>
<PieceQuantity>decimal</PieceQuantity>
<ContractDiscountRate>decimal</ContractDiscountRate>
<ItemCardType>string</ItemCardType>
<RejectedQuantity>decimal</RejectedQuantity>
<RejectedQuantity1>decimal</RejectedQuantity1>
<RejectedQuantity2>decimal</RejectedQuantity2>
</InvoiceLineParameter>
</Lines>
<Discounts>
<InvoiceDiscountParameter>
<DiscountClassId>string</DiscountClassId>
<DiscountReasonId>string</DiscountReasonId>
<DiscountId>string</DiscountId>
<IsItemLineDiscount>short</IsItemLineDiscount>
<TotalDiscount>decimal</TotalDiscount>
<DiscountPercent>float</DiscountPercent>
<LoyaltyId>string</LoyaltyId>
<LoyaltyValue>decimal</LoyaltyValue>
<SalesVolumeId>string</SalesVolumeId>
<ContractId>string</ContractId>
<ContractDescription>string</ContractDescription>
<ItemId>string</ItemId>
<IsContractDiscount>short</IsContractDiscount>
<DiscountCategoryId>string</DiscountCategoryId>
<DiscountKindId>string</DiscountKindId>
</InvoiceDiscountParameter>
<InvoiceDiscountParameter>
<DiscountClassId>string</DiscountClassId>
<DiscountReasonId>string</DiscountReasonId>
<DiscountId>string</DiscountId>
<IsItemLineDiscount>short</IsItemLineDiscount>
<TotalDiscount>decimal</TotalDiscount>
<DiscountPercent>float</DiscountPercent>
<LoyaltyId>string</LoyaltyId>
<LoyaltyValue>decimal</LoyaltyValue>
<SalesVolumeId>string</SalesVolumeId>
<ContractId>string</ContractId>
<ContractDescription>string</ContractDescription>
<ItemId>string</ItemId>
<IsContractDiscount>short</IsContractDiscount>
<DiscountCategoryId>string</DiscountCategoryId>
<DiscountKindId>string</DiscountKindId>
</InvoiceDiscountParameter>
</Discounts>
<RefDocuments>
<InvoiceRefDocumentParameter>
<InvoiceId>string</InvoiceId>
<RefDocumentTypeId>string</RefDocumentTypeId>
<RefDocumentId>string</RefDocumentId>
<RefDocumentNumber>string</RefDocumentNumber>
<RefDocumentSystemNumber>string</RefDocumentSystemNumber>
<RefDocumentRepresentativeId>string</RefDocumentRepresentativeId>
<RefDocumentCustomerId>string</RefDocumentCustomerId>
<RefDocumentDate>dateTime</RefDocumentDate>
</InvoiceRefDocumentParameter>
<InvoiceRefDocumentParameter>
<InvoiceId>string</InvoiceId>
<RefDocumentTypeId>string</RefDocumentTypeId>
<RefDocumentId>string</RefDocumentId>
<RefDocumentNumber>string</RefDocumentNumber>
<RefDocumentSystemNumber>string</RefDocumentSystemNumber>
<RefDocumentRepresentativeId>string</RefDocumentRepresentativeId>
<RefDocumentCustomerId>string</RefDocumentCustomerId>
<RefDocumentDate>dateTime</RefDocumentDate>
</InvoiceRefDocumentParameter>
</RefDocuments>
<DiscountItemDetails>
<InvoiceDiscountItemDetailParameter>
<InvoiceId>long</InvoiceId>
<DiscountTotal>decimal</DiscountTotal>
<StatusId>long</StatusId>
<DiscountId>string</DiscountId>
<DiscountRate>decimal</DiscountRate>
<GivenQuantity>decimal</GivenQuantity>
<ItemId>string</ItemId>
</InvoiceDiscountItemDetailParameter>
<InvoiceDiscountItemDetailParameter>
<InvoiceId>long</InvoiceId>
<DiscountTotal>decimal</DiscountTotal>
<StatusId>long</StatusId>
<DiscountId>string</DiscountId>
<DiscountRate>decimal</DiscountRate>
<GivenQuantity>decimal</GivenQuantity>
<ItemId>string</ItemId>
</InvoiceDiscountItemDetailParameter>
</DiscountItemDetails>
<PaymentPlans>
<InvoicePaymentPlanParameter>
<InvoiceId>long</InvoiceId>
<PaymentPeriod>long</PaymentPeriod>
<PaymentDate>dateTime</PaymentDate>
<Amount>decimal</Amount>
<Paid>decimal</Paid>
<ReorganizationId>long</ReorganizationId>
</InvoicePaymentPlanParameter>
<InvoicePaymentPlanParameter>
<InvoiceId>long</InvoiceId>
<PaymentPeriod>long</PaymentPeriod>
<PaymentDate>dateTime</PaymentDate>
<Amount>decimal</Amount>
<Paid>decimal</Paid>
<ReorganizationId>long</ReorganizationId>
</InvoicePaymentPlanParameter>
</PaymentPlans>
<DiscountPrints>
<InvoiceDiscountPrintParameter>
<DiscountRate>decimal</DiscountRate>
<DiscountTotal>decimal</DiscountTotal>
</InvoiceDiscountPrintParameter>
<InvoiceDiscountPrintParameter>
<DiscountRate>decimal</DiscountRate>
<DiscountTotal>decimal</DiscountTotal>
</InvoiceDiscountPrintParameter>
</DiscountPrints>
<ProgressPayments>
<InvoiceId>string</InvoiceId>
<ItemId>string</ItemId>
<RecordId>string</RecordId>
<CustomerId>string</CustomerId>
<PaymentTotal>decimal</PaymentTotal>
<TransactionTotal>decimal</TransactionTotal>
<Details>
<InvoiceProgressPaymentDetailParameter xsi:nil="true" />
<InvoiceProgressPaymentDetailParameter xsi:nil="true" />
</Details>
</ProgressPayments>
<PalletQuantityParams>
<PalletQuantityParams>
<Code>string</Code>
<CompanyId>decimal</CompanyId>
<BranchId>decimal</BranchId>
<Description1>string</Description1>
<UserId>decimal</UserId>
<Barcode>string</Barcode>
<Quantity>decimal</Quantity>
<DocumentId>decimal</DocumentId>
<DespatchNumber>string</DespatchNumber>
<CompanyCode>string</CompanyCode>
<CustomerCode>string</CustomerCode>
</PalletQuantityParams>
<PalletQuantityParams>
<Code>string</Code>
<CompanyId>decimal</CompanyId>
<BranchId>decimal</BranchId>
<Description1>string</Description1>
<UserId>decimal</UserId>
<Barcode>string</Barcode>
<Quantity>decimal</Quantity>
<DocumentId>decimal</DocumentId>
<DespatchNumber>string</DespatchNumber>
<CompanyCode>string</CompanyCode>
<CustomerCode>string</CustomerCode>
</PalletQuantityParams>
</PalletQuantityParams>
<InvoiceNumber>string</InvoiceNumber>
<DocumentNumber>string</DocumentNumber>
<InvoiceTypeId>string</InvoiceTypeId>
<DocumentClassId>string</DocumentClassId>
<InvoiceKindId>string</InvoiceKindId>
<CustomerId>string</CustomerId>
<DocumentDate>dateTime</DocumentDate>
<DocumentTime>string</DocumentTime>
<RecvLocationId>string</RecvLocationId>
<WarehouseId>string</WarehouseId>
<RepresentativeId>string</RepresentativeId>
<Canceled>short</Canceled>
<Printed>short</Printed>
<TerminalOrPc>string</TerminalOrPc>
<PaymentTypeId>string</PaymentTypeId>
<PaymentPeriodId>string</PaymentPeriodId>
<PriceListId>string</PriceListId>
<CurrencyId>string</CurrencyId>
<TotalUserDiscount>decimal</TotalUserDiscount>
<TotalItemDiscount>decimal</TotalItemDiscount>
<TotalOtherDiscount>decimal</TotalOtherDiscount>
<TotalDiscount>decimal</TotalDiscount>
<TotalVat>decimal</TotalVat>
<GrossTotal>decimal</GrossTotal>
<NetTotal>decimal</NetTotal>
<ReportCurrency1Id>string</ReportCurrency1Id>
<ReportCurrency1Rate>decimal</ReportCurrency1Rate>
<ReportCurrency1NetTotal>decimal</ReportCurrency1NetTotal>
<ReportCurrency2Id>string</ReportCurrency2Id>
<ReportCurrency2Rate>decimal</ReportCurrency2Rate>
<ReportCurrency2NetTotal>decimal</ReportCurrency2NetTotal>
<Genexp1>string</Genexp1>
<Genexp2>string</Genexp2>
<Genexp3>string</Genexp3>
<InvoiceGroupId>string</InvoiceGroupId>
<CancelReasonId>string</CancelReasonId>
<RouteId>string</RouteId>
<StatusId>string</StatusId>
<CanceledUser>string</CanceledUser>
<CanceledDatetime>dateTime</CanceledDatetime>
<PaymentStatusId>string</PaymentStatusId>
<VehicleId>string</VehicleId>
<AssetLocationId>string</AssetLocationId>
<DocumentTypeId>string</DocumentTypeId>
<DeliveryRepresentativeId>string</DeliveryRepresentativeId>
<RecvLocationCustomerId>string</RecvLocationCustomerId>
<IsVehicleWarehouse>short</IsVehicleWarehouse>
<RmaReasonId>string</RmaReasonId>
<RmaReasonDesc>string</RmaReasonDesc>
<TransportTotal>decimal</TransportTotal>
<InsuranceTotal>decimal</InsuranceTotal>
<CurrencyRate>decimal</CurrencyRate>
<ExportType>string</ExportType>
<SalesNetTotal>decimal</SalesNetTotal>
<SalesGrossTotal>decimal</SalesGrossTotal>
<DeclarationDate>dateTime</DeclarationDate>
<IsExport>short</IsExport>
<DeclarationNo>string</DeclarationNo>
<ExportNumber>string</ExportNumber>
<DeliveryPlace>string</DeliveryPlace>
<LoadingPlace>string</LoadingPlace>
<CustomDate>dateTime</CustomDate>
<CustomsAgencyId>string</CustomsAgencyId>
<ExportTypeId>string</ExportTypeId>
<DeliveryTypeId>string</DeliveryTypeId>
<ExportPaymentTypeId>string</ExportPaymentTypeId>
<ImportCreditTypeId>string</ImportCreditTypeId>
<CustomsId>string</CustomsId>
<TransportTypeId>string</TransportTypeId>
<TransportCurrencyId>string</TransportCurrencyId>
<InsuranceCurrencyId>string</InsuranceCurrencyId>
<ArrivalCountryId>string</ArrivalCountryId>
<ExportPaymentCredit>decimal</ExportPaymentCredit>
<ForeignTransporterCompany>string</ForeignTransporterCompany>
<DomesticTransporterCompany>string</DomesticTransporterCompany>
<DeclarationStartDate>dateTime</DeclarationStartDate>
<IsProforma>short</IsProforma>
<SystemNumber>string</SystemNumber>
<CustomerFinanceCode>string</CustomerFinanceCode>
<WarehouseFinanceCode>string</WarehouseFinanceCode>
<RepresentativeFinanceCode>string</RepresentativeFinanceCode>
<RefSalesWaybillId>string</RefSalesWaybillId>
<RmaTypeId>string</RmaTypeId>
<CustomerRecordType>string</CustomerRecordType>
<UpperCustomer>string</UpperCustomer>
<CashPaymentFinanceSystemNumber>string</CashPaymentFinanceSystemNumber>
<ConnectedReturnInvoiceExists>boolean</ConnectedReturnInvoiceExists>
<CustomerName>string</CustomerName>
<SalesRepCode>string</SalesRepCode>
<CustomerBranchCode>string</CustomerBranchCode>
<HasBrokenForm>boolean</HasBrokenForm>
<PurchaseReturnWaybillNumber>string</PurchaseReturnWaybillNumber>
<Category1Code>string</Category1Code>
<Category2Code>string</Category2Code>
<Category3Code>string</Category3Code>
<RecordTypeCode>string</RecordTypeCode>
<ShippingDate>dateTime</ShippingDate>
<RmaStatus>string</RmaStatus>
<RmaType>string</RmaType>
<IsThereError>boolean</IsThereError>
<InvoiceErrorDescription>string</InvoiceErrorDescription>
<IsCentralCustomer>boolean</IsCentralCustomer>
<RefDeliveryWaybillNumber>string</RefDeliveryWaybillNumber>
<RefSalesWaybillNumber>string</RefSalesWaybillNumber>
<RelatedDeliveryWaybill>boolean</RelatedDeliveryWaybill>
<ManualDeliveryParam>
<RecordId>long</RecordId>
<DeliveryCompanyId>long</DeliveryCompanyId>
<VehicleTypeId>long</VehicleTypeId>
<TruckPlate>string</TruckPlate>
<TrailerPlate>string</TrailerPlate>
</ManualDeliveryParam>
</SalesInvoice>
<AuthorizationKey>string</AuthorizationKey>
</DirectDistributionSalesInsertForSubBranch>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<DirectDistributionSalesInsertForSubBranchResponse xmlns="http://tempuri.org/">
<DirectDistributionSalesInsertForSubBranchResult>
<isCompleted>boolean</isCompleted>
<Message>string</Message>
<Code>string</Code>
<StackTrace>string</StackTrace>
</DirectDistributionSalesInsertForSubBranchResult>
</DirectDistributionSalesInsertForSubBranchResponse>
</soap12:Body>
</soap12:Envelope>