Pay via fund
Record a sales order payment via a fund.
POST/api/v6.1/sale_order_payment/fund
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | Number | ID of the order to pay | |
order_code | String | Code of the order to pay | |
fund_name | String | Name of the fund used for payment | |
amount | Number | Payment amount | |
description | String | Transaction description | |
pay_date | String (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"
}
}