Pay with points
Pay a sales order using the customer's accumulated points.
POST/api/v6.1/sale_order_payment/point
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | Number | Yes (one of) | ID of the order to pay |
order_code | String | Yes (one of) | Code of the order to pay |
point | Number | Number of points used for payment | |
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/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_idororder_code(do not send both).