Skip to main content

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

ParameterDefaultDescription
order_codeOrder code, required
payment_infoPayment 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

ParameterDefaultDescription
user_idCreator of the voucher
order_codeOrder code, required
payment_infoPayment 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
}
}