Skip to main content

Add bonus points

Add bonus points to a specific customer.

POST/account/points/bonus

Request body​

ParameterTypeRequiredDescription
account_codestringYesCustomer code
pointintYesNumber of bonus points to add
reasonstringYesNote 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_points field is the total points after the update.
  • Make sure account_code is valid to avoid errors.