Add bonus points
Add bonus points to a specific customer.
POST/account/points/bonus
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
account_code | string | Yes | Customer code |
point | int | Yes | Number of bonus points to add |
reason | string | Yes | Note on the reason for adding points |
Example request
curl --location 'https://example.getflycrm.com/api/v6.1/account/points/bonus' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <your_api_key>' \
--data '{
"account_code": "KH/2025/011987",
"point": 301,
"reason": "Cho khách hàng thêm 301 điểm thưởng"
}'
Response
200 OK
{
"message": "Cập nhật thành công",
"account_code": "KH/2025/011987",
"account_id": 12037,
"account_points": 602
}
Notes
- Paths are relative to the Base URL
{baseUrl}/api/v6.1. - The
account_pointsfield is the total points after the update. - Make sure
account_codeis valid to avoid errors.