GET api/Paymentgateway/checkorder?api={api}&code={code}&token={token}
Kiểm tra trạng thái thanh toán từ phần mềm HIS sang ngân hàng
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| api |
Mã API do hệ thống cung cấp |
string |
Required |
| code |
Mã phiếu thu |
string |
Default value is |
| token |
đối tượng phiếu thu |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
objCheckOrderToHis| Name | Description | Type | Additional information |
|---|---|---|---|
| result_code |
Trạng thái (0000-Thành công, 01- Không thành công) |
string |
None. |
| result_message |
Thông báo |
string |
None. |
| version |
version |
string |
None. |
| order_code |
Mã phiếu thu |
string |
None. |
| order_description |
Mô tả |
string |
None. |
| amount |
Số tiền |
decimal number |
None. |
| sender_fee |
Phí |
decimal number |
None. |
| receiver_fee |
Phí |
decimal number |
None. |
| currency |
Đồng tiền |
string |
None. |
| status |
Trạng thái: 1- Mới tạo, 2-Đang thanh toán, 3-Đã thanh toán |
integer |
None. |
| payment_method_code |
QR-CODE |
string |
None. |
| payment_method_name |
Đồng tiền |
string |
None. |
| token_code |
Đồng tiền |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result_code": "sample string 1",
"result_message": "sample string 2",
"version": "sample string 3",
"order_code": "sample string 4",
"order_description": "sample string 5",
"amount": 1.1,
"sender_fee": 1.1,
"receiver_fee": 1.1,
"currency": "sample string 6",
"status": 1,
"payment_method_code": "sample string 7",
"payment_method_name": "sample string 8",
"token_code": "sample string 9"
}
application/xml, text/xml
Sample:
<objCheckOrderToHis xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiIVF.Models"> <amount>1.1</amount> <currency>sample string 6</currency> <order_code>sample string 4</order_code> <order_description>sample string 5</order_description> <payment_method_code>sample string 7</payment_method_code> <payment_method_name>sample string 8</payment_method_name> <receiver_fee>1.1</receiver_fee> <result_code>sample string 1</result_code> <result_message>sample string 2</result_message> <sender_fee>1.1</sender_fee> <status>1</status> <token_code>sample string 9</token_code> <version>sample string 3</version> </objCheckOrderToHis>