servicebill
Click here for a complete list of operations.
saveServiceBill
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 /webmethod/servicebill.asmx HTTP/1.1 Host: nooralmamzar.dyndns.org Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/saveServiceBill" <?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> <saveServiceBill xmlns="http://tempuri.org/"> <service> <ServiceBillID>int</ServiceBillID> <ServiceBillNO>string</ServiceBillNO> <BillDate>dateTime</BillDate> <PatientID>int</PatientID> <PatientTypeID>int</PatientTypeID> <GrossAmount>float</GrossAmount> <DiscountPercentage>float</DiscountPercentage> <TaxPercent>float</TaxPercent> <CessPercentage>float</CessPercentage> <RoundOff>float</RoundOff> <NetAmount>float</NetAmount> <FinancialYearID>int</FinancialYearID> <StockPointID>int</StockPointID> <HostID>int</HostID> <Remark>string</Remark> <PaymentMode>string</PaymentMode> <Volatile>boolean</Volatile> <EnteredBy>int</EnteredBy> <EnteredOn>dateTime</EnteredOn> <Closed>int</Closed> <VisitID>int</VisitID> <InActive>boolean</InActive> <DiscountAmount>float</DiscountAmount> <DoctorId>int</DoctorId> <SpecialistId>int</SpecialistId> <ReferralDiscountPercentage>float</ReferralDiscountPercentage> <ReferralDiscountAmount>float</ReferralDiscountAmount> <DiscountGivenBy>string</DiscountGivenBy> <FormNo>string</FormNo> <CompanyId>int</CompanyId> <AdditionalDiscountApproved>boolean</AdditionalDiscountApproved> <AdvanceFlag>string</AdvanceFlag> <CancellingNote>string</CancellingNote> <CancelledBy>int</CancelledBy> <PatientPolicyId>int</PatientPolicyId> <PatientAppointmentID>int</PatientAppointmentID> <TotalVat>float</TotalVat> <AdjustedAvance>float</AdjustedAvance> <BalanceGiven>float</BalanceGiven> <AdvanceBill>boolean</AdvanceBill> <EclaimDoctorId>string</EclaimDoctorId> <IncludeVAT>boolean</IncludeVAT> <Sales>int</Sales> <BillingRemarks>string</BillingRemarks> <BranchCode>string</BranchCode> <InvoiceNo>string</InvoiceNo> <GenerateInvoiceDate>dateTime</GenerateInvoiceDate> <tally_cstatus>boolean</tally_cstatus> <tally_astatus>boolean</tally_astatus> <tally_iscancelled>boolean</tally_iscancelled> <IsNeedInvoiceNo>boolean</IsNeedInvoiceNo> <WalletAddition>float</WalletAddition> <WalletDeduction>float</WalletDeduction> <lstServicebillDetails> <ServiceBillDetails> <ServiceBillDetailsID>int</ServiceBillDetailsID> <ServiceBillID>int</ServiceBillID> <BillTypeID>int</BillTypeID> <ServiceID>int</ServiceID> <PatientShare>float</PatientShare> <PayerShare>float</PayerShare> <Rate>float</Rate> <DiscountPercentage>float</DiscountPercentage> <DiscountType>int</DiscountType> <IsApproval>boolean</IsApproval> <IsExcluded>boolean</IsExcluded> <Description>string</Description> <Qty>float</Qty> <SpecialityID>int</SpecialityID> <BatchID>int</BatchID> <ActivityPrescriptonId>int</ActivityPrescriptonId> <ActivityValue>int</ActivityValue> <AuthenticationNo>string</AuthenticationNo> <PriorRequest>int</PriorRequest> <Marked>boolean</Marked> <Expense>float</Expense> <VatAmount>float</VatAmount> <VatFlag>boolean</VatFlag> <IndividualDiscount>float</IndividualDiscount> <PayerShareChanged>boolean</PayerShareChanged> <BillSessionCode>string</BillSessionCode> <IsPartiallyBilled>boolean</IsPartiallyBilled> <IsIncludeVat>boolean</IsIncludeVat> <Session>int</Session> <Department>string</Department> <IsRefund>boolean</IsRefund> <RefundAmt>float</RefundAmt> </ServiceBillDetails> <ServiceBillDetails> <ServiceBillDetailsID>int</ServiceBillDetailsID> <ServiceBillID>int</ServiceBillID> <BillTypeID>int</BillTypeID> <ServiceID>int</ServiceID> <PatientShare>float</PatientShare> <PayerShare>float</PayerShare> <Rate>float</Rate> <DiscountPercentage>float</DiscountPercentage> <DiscountType>int</DiscountType> <IsApproval>boolean</IsApproval> <IsExcluded>boolean</IsExcluded> <Description>string</Description> <Qty>float</Qty> <SpecialityID>int</SpecialityID> <BatchID>int</BatchID> <ActivityPrescriptonId>int</ActivityPrescriptonId> <ActivityValue>int</ActivityValue> <AuthenticationNo>string</AuthenticationNo> <PriorRequest>int</PriorRequest> <Marked>boolean</Marked> <Expense>float</Expense> <VatAmount>float</VatAmount> <VatFlag>boolean</VatFlag> <IndividualDiscount>float</IndividualDiscount> <PayerShareChanged>boolean</PayerShareChanged> <BillSessionCode>string</BillSessionCode> <IsPartiallyBilled>boolean</IsPartiallyBilled> <IsIncludeVat>boolean</IsIncludeVat> <Session>int</Session> <Department>string</Department> <IsRefund>boolean</IsRefund> <RefundAmt>float</RefundAmt> </ServiceBillDetails> </lstServicebillDetails> <lstGNReceipts> <GNReceipts> <ReceiptID>int</ReceiptID> <ReceiptNo>string</ReceiptNo> <ReceiptDate>dateTime</ReceiptDate> <PatientId>int</PatientId> <PatientTypeID>int</PatientTypeID> <PayementMode>string</PayementMode> <ReceiptAmount>float</ReceiptAmount> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> <ReceiptType>string</ReceiptType> <Remarks>string</Remarks> <HostID>int</HostID> <FinancialYearID>int</FinancialYearID> <EnteredOn>dateTime</EnteredOn> <EnteredBy>int</EnteredBy> <Volatile>boolean</Volatile> <Cash>float</Cash> <Credit>float</Credit> <Wallet>float</Wallet> <Cheque>float</Cheque> <OnlinePayment>float</OnlinePayment> </GNReceipts> <GNReceipts> <ReceiptID>int</ReceiptID> <ReceiptNo>string</ReceiptNo> <ReceiptDate>dateTime</ReceiptDate> <PatientId>int</PatientId> <PatientTypeID>int</PatientTypeID> <PayementMode>string</PayementMode> <ReceiptAmount>float</ReceiptAmount> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> <ReceiptType>string</ReceiptType> <Remarks>string</Remarks> <HostID>int</HostID> <FinancialYearID>int</FinancialYearID> <EnteredOn>dateTime</EnteredOn> <EnteredBy>int</EnteredBy> <Volatile>boolean</Volatile> <Cash>float</Cash> <Credit>float</Credit> <Wallet>float</Wallet> <Cheque>float</Cheque> <OnlinePayment>float</OnlinePayment> </GNReceipts> </lstGNReceipts> <lstGNReceiptDetails> <GNReceiptDetails> <ReceiptDetailsID>int</ReceiptDetailsID> <ReceiptID>int</ReceiptID> <BillID>int</BillID> <ReceiptAmount>float</ReceiptAmount> <BillTypeID>int</BillTypeID> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> </GNReceiptDetails> <GNReceiptDetails> <ReceiptDetailsID>int</ReceiptDetailsID> <ReceiptID>int</ReceiptID> <BillID>int</BillID> <ReceiptAmount>float</ReceiptAmount> <BillTypeID>int</BillTypeID> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> </GNReceiptDetails> </lstGNReceiptDetails> <lstCardDetails> <CardDetails> <CardDetailsId>int</CardDetailsId> <ReceiptId>int</ReceiptId> <CardNumber>string</CardNumber> <CardName>string</CardName> <Bank>string</Bank> <Amount>float</Amount> </CardDetails> <CardDetails> <CardDetailsId>int</CardDetailsId> <ReceiptId>int</ReceiptId> <CardNumber>string</CardNumber> <CardName>string</CardName> <Bank>string</Bank> <Amount>float</Amount> </CardDetails> </lstCardDetails> <lstChequeDetails> <ChequeDetails> <ChequeDetailsId>int</ChequeDetailsId> <ReceiptId>int</ReceiptId> <ChequeNo>string</ChequeNo> <ChequeDate>dateTime</ChequeDate> <Bank>string</Bank> <Amount>float</Amount> </ChequeDetails> <ChequeDetails> <ChequeDetailsId>int</ChequeDetailsId> <ReceiptId>int</ReceiptId> <ChequeNo>string</ChequeNo> <ChequeDate>dateTime</ChequeDate> <Bank>string</Bank> <Amount>float</Amount> </ChequeDetails> </lstChequeDetails> <lstOnlinePaymentDetails> <OnlinePaymentDetails> <OnlinePaymentId>int</OnlinePaymentId> <ReceiptId>int</ReceiptId> <BankName>string</BankName> <TransactionNumber>string</TransactionNumber> <TypeID>int</TypeID> <Amount>float</Amount> </OnlinePaymentDetails> <OnlinePaymentDetails> <OnlinePaymentId>int</OnlinePaymentId> <ReceiptId>int</ReceiptId> <BankName>string</BankName> <TransactionNumber>string</TransactionNumber> <TypeID>int</TypeID> <Amount>float</Amount> </OnlinePaymentDetails> </lstOnlinePaymentDetails> </service> </saveServiceBill> </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> <saveServiceBillResponse xmlns="http://tempuri.org/"> <saveServiceBillResult> <message>string</message> <status>boolean</status> <ID>int</ID> <ReceiptID>int</ReceiptID> </saveServiceBillResult> </saveServiceBillResponse> </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 /webmethod/servicebill.asmx HTTP/1.1 Host: nooralmamzar.dyndns.org 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> <saveServiceBill xmlns="http://tempuri.org/"> <service> <ServiceBillID>int</ServiceBillID> <ServiceBillNO>string</ServiceBillNO> <BillDate>dateTime</BillDate> <PatientID>int</PatientID> <PatientTypeID>int</PatientTypeID> <GrossAmount>float</GrossAmount> <DiscountPercentage>float</DiscountPercentage> <TaxPercent>float</TaxPercent> <CessPercentage>float</CessPercentage> <RoundOff>float</RoundOff> <NetAmount>float</NetAmount> <FinancialYearID>int</FinancialYearID> <StockPointID>int</StockPointID> <HostID>int</HostID> <Remark>string</Remark> <PaymentMode>string</PaymentMode> <Volatile>boolean</Volatile> <EnteredBy>int</EnteredBy> <EnteredOn>dateTime</EnteredOn> <Closed>int</Closed> <VisitID>int</VisitID> <InActive>boolean</InActive> <DiscountAmount>float</DiscountAmount> <DoctorId>int</DoctorId> <SpecialistId>int</SpecialistId> <ReferralDiscountPercentage>float</ReferralDiscountPercentage> <ReferralDiscountAmount>float</ReferralDiscountAmount> <DiscountGivenBy>string</DiscountGivenBy> <FormNo>string</FormNo> <CompanyId>int</CompanyId> <AdditionalDiscountApproved>boolean</AdditionalDiscountApproved> <AdvanceFlag>string</AdvanceFlag> <CancellingNote>string</CancellingNote> <CancelledBy>int</CancelledBy> <PatientPolicyId>int</PatientPolicyId> <PatientAppointmentID>int</PatientAppointmentID> <TotalVat>float</TotalVat> <AdjustedAvance>float</AdjustedAvance> <BalanceGiven>float</BalanceGiven> <AdvanceBill>boolean</AdvanceBill> <EclaimDoctorId>string</EclaimDoctorId> <IncludeVAT>boolean</IncludeVAT> <Sales>int</Sales> <BillingRemarks>string</BillingRemarks> <BranchCode>string</BranchCode> <InvoiceNo>string</InvoiceNo> <GenerateInvoiceDate>dateTime</GenerateInvoiceDate> <tally_cstatus>boolean</tally_cstatus> <tally_astatus>boolean</tally_astatus> <tally_iscancelled>boolean</tally_iscancelled> <IsNeedInvoiceNo>boolean</IsNeedInvoiceNo> <WalletAddition>float</WalletAddition> <WalletDeduction>float</WalletDeduction> <lstServicebillDetails> <ServiceBillDetails> <ServiceBillDetailsID>int</ServiceBillDetailsID> <ServiceBillID>int</ServiceBillID> <BillTypeID>int</BillTypeID> <ServiceID>int</ServiceID> <PatientShare>float</PatientShare> <PayerShare>float</PayerShare> <Rate>float</Rate> <DiscountPercentage>float</DiscountPercentage> <DiscountType>int</DiscountType> <IsApproval>boolean</IsApproval> <IsExcluded>boolean</IsExcluded> <Description>string</Description> <Qty>float</Qty> <SpecialityID>int</SpecialityID> <BatchID>int</BatchID> <ActivityPrescriptonId>int</ActivityPrescriptonId> <ActivityValue>int</ActivityValue> <AuthenticationNo>string</AuthenticationNo> <PriorRequest>int</PriorRequest> <Marked>boolean</Marked> <Expense>float</Expense> <VatAmount>float</VatAmount> <VatFlag>boolean</VatFlag> <IndividualDiscount>float</IndividualDiscount> <PayerShareChanged>boolean</PayerShareChanged> <BillSessionCode>string</BillSessionCode> <IsPartiallyBilled>boolean</IsPartiallyBilled> <IsIncludeVat>boolean</IsIncludeVat> <Session>int</Session> <Department>string</Department> <IsRefund>boolean</IsRefund> <RefundAmt>float</RefundAmt> </ServiceBillDetails> <ServiceBillDetails> <ServiceBillDetailsID>int</ServiceBillDetailsID> <ServiceBillID>int</ServiceBillID> <BillTypeID>int</BillTypeID> <ServiceID>int</ServiceID> <PatientShare>float</PatientShare> <PayerShare>float</PayerShare> <Rate>float</Rate> <DiscountPercentage>float</DiscountPercentage> <DiscountType>int</DiscountType> <IsApproval>boolean</IsApproval> <IsExcluded>boolean</IsExcluded> <Description>string</Description> <Qty>float</Qty> <SpecialityID>int</SpecialityID> <BatchID>int</BatchID> <ActivityPrescriptonId>int</ActivityPrescriptonId> <ActivityValue>int</ActivityValue> <AuthenticationNo>string</AuthenticationNo> <PriorRequest>int</PriorRequest> <Marked>boolean</Marked> <Expense>float</Expense> <VatAmount>float</VatAmount> <VatFlag>boolean</VatFlag> <IndividualDiscount>float</IndividualDiscount> <PayerShareChanged>boolean</PayerShareChanged> <BillSessionCode>string</BillSessionCode> <IsPartiallyBilled>boolean</IsPartiallyBilled> <IsIncludeVat>boolean</IsIncludeVat> <Session>int</Session> <Department>string</Department> <IsRefund>boolean</IsRefund> <RefundAmt>float</RefundAmt> </ServiceBillDetails> </lstServicebillDetails> <lstGNReceipts> <GNReceipts> <ReceiptID>int</ReceiptID> <ReceiptNo>string</ReceiptNo> <ReceiptDate>dateTime</ReceiptDate> <PatientId>int</PatientId> <PatientTypeID>int</PatientTypeID> <PayementMode>string</PayementMode> <ReceiptAmount>float</ReceiptAmount> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> <ReceiptType>string</ReceiptType> <Remarks>string</Remarks> <HostID>int</HostID> <FinancialYearID>int</FinancialYearID> <EnteredOn>dateTime</EnteredOn> <EnteredBy>int</EnteredBy> <Volatile>boolean</Volatile> <Cash>float</Cash> <Credit>float</Credit> <Wallet>float</Wallet> <Cheque>float</Cheque> <OnlinePayment>float</OnlinePayment> </GNReceipts> <GNReceipts> <ReceiptID>int</ReceiptID> <ReceiptNo>string</ReceiptNo> <ReceiptDate>dateTime</ReceiptDate> <PatientId>int</PatientId> <PatientTypeID>int</PatientTypeID> <PayementMode>string</PayementMode> <ReceiptAmount>float</ReceiptAmount> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> <ReceiptType>string</ReceiptType> <Remarks>string</Remarks> <HostID>int</HostID> <FinancialYearID>int</FinancialYearID> <EnteredOn>dateTime</EnteredOn> <EnteredBy>int</EnteredBy> <Volatile>boolean</Volatile> <Cash>float</Cash> <Credit>float</Credit> <Wallet>float</Wallet> <Cheque>float</Cheque> <OnlinePayment>float</OnlinePayment> </GNReceipts> </lstGNReceipts> <lstGNReceiptDetails> <GNReceiptDetails> <ReceiptDetailsID>int</ReceiptDetailsID> <ReceiptID>int</ReceiptID> <BillID>int</BillID> <ReceiptAmount>float</ReceiptAmount> <BillTypeID>int</BillTypeID> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> </GNReceiptDetails> <GNReceiptDetails> <ReceiptDetailsID>int</ReceiptDetailsID> <ReceiptID>int</ReceiptID> <BillID>int</BillID> <ReceiptAmount>float</ReceiptAmount> <BillTypeID>int</BillTypeID> <ReceivedPatientShare>float</ReceivedPatientShare> <ReceivedPayerShare>float</ReceivedPayerShare> </GNReceiptDetails> </lstGNReceiptDetails> <lstCardDetails> <CardDetails> <CardDetailsId>int</CardDetailsId> <ReceiptId>int</ReceiptId> <CardNumber>string</CardNumber> <CardName>string</CardName> <Bank>string</Bank> <Amount>float</Amount> </CardDetails> <CardDetails> <CardDetailsId>int</CardDetailsId> <ReceiptId>int</ReceiptId> <CardNumber>string</CardNumber> <CardName>string</CardName> <Bank>string</Bank> <Amount>float</Amount> </CardDetails> </lstCardDetails> <lstChequeDetails> <ChequeDetails> <ChequeDetailsId>int</ChequeDetailsId> <ReceiptId>int</ReceiptId> <ChequeNo>string</ChequeNo> <ChequeDate>dateTime</ChequeDate> <Bank>string</Bank> <Amount>float</Amount> </ChequeDetails> <ChequeDetails> <ChequeDetailsId>int</ChequeDetailsId> <ReceiptId>int</ReceiptId> <ChequeNo>string</ChequeNo> <ChequeDate>dateTime</ChequeDate> <Bank>string</Bank> <Amount>float</Amount> </ChequeDetails> </lstChequeDetails> <lstOnlinePaymentDetails> <OnlinePaymentDetails> <OnlinePaymentId>int</OnlinePaymentId> <ReceiptId>int</ReceiptId> <BankName>string</BankName> <TransactionNumber>string</TransactionNumber> <TypeID>int</TypeID> <Amount>float</Amount> </OnlinePaymentDetails> <OnlinePaymentDetails> <OnlinePaymentId>int</OnlinePaymentId> <ReceiptId>int</ReceiptId> <BankName>string</BankName> <TransactionNumber>string</TransactionNumber> <TypeID>int</TypeID> <Amount>float</Amount> </OnlinePaymentDetails> </lstOnlinePaymentDetails> </service> </saveServiceBill> </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> <saveServiceBillResponse xmlns="http://tempuri.org/"> <saveServiceBillResult> <message>string</message> <status>boolean</status> <ID>int</ID> <ReceiptID>int</ReceiptID> </saveServiceBillResult> </saveServiceBillResponse> </soap12:Body> </soap12:Envelope>