Skip to main content

Pay with points

Pay a sales order using the customer's accumulated points.

POST/api/v6.1/sale_order_payment/point

Request body​

ParameterTypeRequiredDescription
order_idNumberYes (one of)ID of the order to pay
order_codeStringYes (one of)Code of the order to pay
pointNumberNumber of points used for payment
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/point' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <your_api_key>' \
--data-raw '{
"order_code": "DH_TET_2025_2",
"point": 10,
"description": "Partial payment",
"pay_date": "2025-02-03"
}'

Response​

Successful response

{
"message": "Thêm mới thành công",
"data": {
"via": "point",
"id": 38,
"order_id": 197
}
}

Notes​

Provide only one of: order_id or order_code (do not send both).