WebService_EMRInvoice


Click here for a complete list of operations.

SaveInvoice

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
invoice_id:
user_id:
invoice_no:
invoice_type:
visit_id:
patient_id:
invoice_on:
status:
payment:
total_cost:
disc_per:
disc:
balance:
other1:
other1_amount:
other2:
other2_amount:
remark:
currency:
location_id:
RequestID:

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 /Modules/EMR/WebServices/WebService_EMRInvoice.asmx HTTP/1.1
Host: 10.20.1.42
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SaveInvoice"

<?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>
    <SaveInvoice xmlns="http://tempuri.org/">
      <invoice_id>string</invoice_id>
      <user_id>string</user_id>
      <invoice_no>string</invoice_no>
      <invoice_type>string</invoice_type>
      <visit_id>string</visit_id>
      <patient_id>string</patient_id>
      <invoice_on>string</invoice_on>
      <status>string</status>
      <payment>string</payment>
      <total_cost>string</total_cost>
      <disc_per>string</disc_per>
      <disc>string</disc>
      <balance>string</balance>
      <other1>string</other1>
      <other1_amount>string</other1_amount>
      <other2>string</other2>
      <other2_amount>string</other2_amount>
      <remark>string</remark>
      <currency>string</currency>
      <location_id>string</location_id>
      <RequestID>string</RequestID>
    </SaveInvoice>
  </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>
    <SaveInvoiceResponse xmlns="http://tempuri.org/">
      <SaveInvoiceResult>string</SaveInvoiceResult>
    </SaveInvoiceResponse>
  </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 /Modules/EMR/WebServices/WebService_EMRInvoice.asmx HTTP/1.1
Host: 10.20.1.42
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>
    <SaveInvoice xmlns="http://tempuri.org/">
      <invoice_id>string</invoice_id>
      <user_id>string</user_id>
      <invoice_no>string</invoice_no>
      <invoice_type>string</invoice_type>
      <visit_id>string</visit_id>
      <patient_id>string</patient_id>
      <invoice_on>string</invoice_on>
      <status>string</status>
      <payment>string</payment>
      <total_cost>string</total_cost>
      <disc_per>string</disc_per>
      <disc>string</disc>
      <balance>string</balance>
      <other1>string</other1>
      <other1_amount>string</other1_amount>
      <other2>string</other2>
      <other2_amount>string</other2_amount>
      <remark>string</remark>
      <currency>string</currency>
      <location_id>string</location_id>
      <RequestID>string</RequestID>
    </SaveInvoice>
  </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>
    <SaveInvoiceResponse xmlns="http://tempuri.org/">
      <SaveInvoiceResult>string</SaveInvoiceResult>
    </SaveInvoiceResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /Modules/EMR/WebServices/WebService_EMRInvoice.asmx/SaveInvoice?invoice_id=string&user_id=string&invoice_no=string&invoice_type=string&visit_id=string&patient_id=string&invoice_on=string&status=string&payment=string&total_cost=string&disc_per=string&disc=string&balance=string&other1=string&other1_amount=string&other2=string&other2_amount=string&remark=string&currency=string&location_id=string&RequestID=string HTTP/1.1
Host: 10.20.1.42
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_EMRInvoice.asmx/SaveInvoice HTTP/1.1
Host: 10.20.1.42
Content-Type: application/x-www-form-urlencoded
Content-Length: length

invoice_id=string&user_id=string&invoice_no=string&invoice_type=string&visit_id=string&patient_id=string&invoice_on=string&status=string&payment=string&total_cost=string&disc_per=string&disc=string&balance=string&other1=string&other1_amount=string&other2=string&other2_amount=string&remark=string&currency=string&location_id=string&RequestID=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>