Payment
Pay for an order on Getfly
Direct Payment
For cases where the Fund feature is not used
HTTP Requests
POST /api/v3/orders/paid
Body
Parameter | Default | Description |
---|---|---|
order_code | Order code, required | |
payment_info | Payment information, including - amount: Amount to be paid - pay_date: Payment date - description: Description |
{
"order_code": "DH0012",
"payment_info": {
"amount": 1000,
"pay_date": "02/05/2023",
"description": "Payment content"
}
}
Pay for an order via receipt/payment voucher
For cases where the Fund feature is used
HTTP Request
POST /api/v3/orders/paid_via_fund
Body
Parameter | Default | Description |
---|---|---|
user_id | Creator of the voucher | |
order_code | Order code, required | |
payment_info | Payment information, including - amount: Amount to be paid - pay_date: Payment date - description: Description |
{
"user_id": 3, //Voucher creator
"order_code": "DH14398", //Order code
"payment_info": {
"amount": 100000, //Payment amount
"pay_date": "20/12/2022", //Request date
"fund_id": 3, //Voucher ID
"sheet_description": "Description", //Description
"method_id": 1, //Payment method
"payment_slip_receiver": "Nguyen Trung Hieu" //Payer/Receiver
}
}