POST api/TranferData/change?api={api}&idphieuthu={idphieuthu}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| api | string |
Required |
|
| idphieuthu | integer |
Default value is 0 |
Body Parameters
ReceiptModelBak| Name | Description | Type | Additional information |
|---|---|---|---|
| idphieuthu | integer |
None. |
|
| masothu | string |
None. |
|
| maphieuthu | integer |
None. |
|
| idluotkham | integer |
None. |
|
| mabenhnhan | string |
None. |
|
| tenbenhnhan | string |
None. |
|
| gioitinh | integer |
None. |
|
| ngaysinh | string |
None. |
|
| sodienthoai | string |
None. |
|
| diachi | string |
None. |
|
| ngaydontiep | string |
None. |
|
| ngayravien | string |
None. |
|
| sotienphieu | decimal number |
None. |
|
| ngaythutien | string |
None. |
|
| nguoithutien | string |
None. |
|
| is_sysc_oliu | boolean |
None. |
|
| lstservice | Collection of ReceiptDetailBak |
None. |
Request Formats
application/json, text/json
Sample:
{
"idphieuthu": 1,
"masothu": "sample string 1",
"maphieuthu": 1,
"idluotkham": 1,
"mabenhnhan": "sample string 2",
"tenbenhnhan": "sample string 3",
"gioitinh": 1,
"ngaysinh": "sample string 4",
"sodienthoai": "sample string 5",
"diachi": "sample string 6",
"ngaydontiep": "sample string 7",
"ngayravien": "sample string 8",
"sotienphieu": 1.1,
"ngaythutien": "sample string 9",
"nguoithutien": "sample string 10",
"is_sysc_oliu": true,
"lstservice": [
{
"servicedataid": 1,
"service_code": "sample string 1",
"service_name": "sample string 2",
"service_unit": "sample string 3",
"service_quantity": 1.1,
"service_price": 1.1,
"service_amount": 1.1,
"service_discount": 1.1,
"payment_bhyt": 1.1,
"payment_patient": 1.1,
"payment_patient_is": 1.1
},
{
"servicedataid": 1,
"service_code": "sample string 1",
"service_name": "sample string 2",
"service_unit": "sample string 3",
"service_quantity": 1.1,
"service_price": 1.1,
"service_amount": 1.1,
"service_discount": 1.1,
"payment_bhyt": 1.1,
"payment_patient": 1.1,
"payment_patient_is": 1.1
}
]
}
application/xml, text/xml
Sample:
<ReceiptModelBak xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models.his">
<diachi>sample string 6</diachi>
<gioitinh>1</gioitinh>
<idluotkham>1</idluotkham>
<idphieuthu>1</idphieuthu>
<is_sysc_oliu>true</is_sysc_oliu>
<lstservice>
<ReceiptDetailBak>
<payment_bhyt>1.1</payment_bhyt>
<payment_patient>1.1</payment_patient>
<payment_patient_is>1.1</payment_patient_is>
<service_amount>1.1</service_amount>
<service_code>sample string 1</service_code>
<service_discount>1.1</service_discount>
<service_name>sample string 2</service_name>
<service_price>1.1</service_price>
<service_quantity>1.1</service_quantity>
<service_unit>sample string 3</service_unit>
<servicedataid>1</servicedataid>
</ReceiptDetailBak>
<ReceiptDetailBak>
<payment_bhyt>1.1</payment_bhyt>
<payment_patient>1.1</payment_patient>
<payment_patient_is>1.1</payment_patient_is>
<service_amount>1.1</service_amount>
<service_code>sample string 1</service_code>
<service_discount>1.1</service_discount>
<service_name>sample string 2</service_name>
<service_price>1.1</service_price>
<service_quantity>1.1</service_quantity>
<service_unit>sample string 3</service_unit>
<servicedataid>1</servicedataid>
</ReceiptDetailBak>
</lstservice>
<mabenhnhan>sample string 2</mabenhnhan>
<maphieuthu>1</maphieuthu>
<masothu>sample string 1</masothu>
<ngaydontiep>sample string 7</ngaydontiep>
<ngayravien>sample string 8</ngayravien>
<ngaysinh>sample string 4</ngaysinh>
<ngaythutien>sample string 9</ngaythutien>
<nguoithutien>sample string 10</nguoithutien>
<sodienthoai>sample string 5</sodienthoai>
<sotienphieu>1.1</sotienphieu>
<tenbenhnhan>sample string 3</tenbenhnhan>
</ReceiptModelBak>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DataUpdate| Name | Description | Type | Additional information |
|---|---|---|---|
| status | string |
None. |
|
| message | string |
None. |
|
| id | string |
None. |
|
| code | string |
None. |
|
| code1 | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "sample string 1",
"message": "sample string 2",
"id": "sample string 3",
"code": "sample string 4",
"code1": "sample string 5"
}
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"status":"sample string 1","message":"sample string 2","id":"sample string 3","code":"sample string 4","code1":"sample string 5"});
application/xml, text/xml
Sample:
<DataUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models"> <code>sample string 4</code> <code1>sample string 5</code1> <id>sample string 3</id> <message>sample string 2</message> <status>sample string 1</status> </DataUpdate>