Skip to main content

Pay via fund

Record a sales order payment via a fund.

POST/api/v6.1/sale_order_payment/fund

Request body​

ParameterTypeRequiredDescription
order_idNumberID of the order to pay
order_codeStringCode of the order to pay
fund_nameStringName of the fund used for payment
amountNumberPayment amount
descriptionStringTransaction description
pay_dateString (YYYY-MM-DD)Payment date

Example request​

curl --location --request POST 'https://example.getflycrm.com/api/v6.1/sale_order_payment/fund' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <your_api_key>' \
--data-raw '{
"order_code": "DH_TET_2025_2",
"fund_name": "Customer support fund",
"amount": 50000,
"description": "Payment from fund",
"pay_date": "2025-02-03"
}'

Response​

Successful response

{
"message": "Thêm mới thành công",
"data": {
"via": "fund",
"id": 27,
"sheet_code": "PT/2025-03/0022"
}
}