POST api/Paymentgateway/order?api={api}
Tạo QRCode cho phiếu thu
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| api |
Mã API do hệ thống cung cấp |
string |
Required |
Body Parameters
đối tượng phiếu thu
OrderCashierModel| Name | Description | Type | Additional information |
|---|---|---|---|
| patientid |
Mã bệnh nhân |
string |
None. |
| order_code |
Mã phiếu |
string |
None. |
| order_description |
Mô tả phiếu thu |
string |
None. |
| amount |
Số tiền |
decimal number |
None. |
| buyer_fullname |
Tên bệnh nhân |
string |
None. |
| buyer_email |
Email bệnh nhân |
string |
None. |
| buyer_mobile |
Điện thoại bệnh nhân |
string |
None. |
| buyer_address |
Địa chỉ bệnh nhân |
string |
None. |
| payment_method_code |
Hình thức thanh toán |
string |
None. |
| bank_code |
Tên ngân hàng |
string |
None. |
| status_url |
link |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"patientid": "sample string 1",
"order_code": "sample string 2",
"order_description": "sample string 3",
"amount": 1.1,
"buyer_fullname": "sample string 4",
"buyer_email": "sample string 5",
"buyer_mobile": "sample string 6",
"buyer_address": "sample string 7",
"payment_method_code": "sample string 8",
"bank_code": "sample string 9",
"status_url": "sample string 10"
}
application/xml, text/xml
Sample:
<OrderCashierModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiIVF.Models"> <amount>1.1</amount> <bank_code>sample string 9</bank_code> <buyer_address>sample string 7</buyer_address> <buyer_email>sample string 5</buyer_email> <buyer_fullname>sample string 4</buyer_fullname> <buyer_mobile>sample string 6</buyer_mobile> <order_code>sample string 2</order_code> <order_description>sample string 3</order_description> <patientid>sample string 1</patientid> <payment_method_code>sample string 8</payment_method_code> <status_url>sample string 10</status_url> </OrderCashierModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
objResultOrderCashier| Name | Description | Type | Additional information |
|---|---|---|---|
| result_code |
Mã |
string |
None. |
| result_message |
Thông báo |
string |
None. |
| result_qrcode |
qroce |
string |
None. |
| result_qrcode_string | string |
None. |
|
| token_code |
token |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result_code": "sample string 1",
"result_message": "sample string 2",
"result_qrcode": "sample string 3",
"result_qrcode_string": "sample string 4",
"token_code": "sample string 5"
}
application/xml, text/xml
Sample:
<objResultOrderCashier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiIVF.Models"> <result_code>sample string 1</result_code> <result_message>sample string 2</result_message> <result_qrcode>sample string 3</result_qrcode> <result_qrcode_string>sample string 4</result_qrcode_string> <token_code>sample string 5</token_code> </objResultOrderCashier>