Add reward points to a Customer

Use this method to add reward points to your customers. This reward points are visible on the sales screens, invoices, dashboards, and statements.

Valid Tokens: Company.

If you want to enable this option, please contact us.



Request


URL: https://api.kometsales.com/api/customer.reward.set

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


customerId (required) (integer:20)

Customer ID.

You can get this value from the customer.list API method.


value (required) (integer:10)

The number of points for the Customer.


{ "authenticationToken":"35hnsucsvikb79559ra8ioka3g", "customerId":29767, "value":12 }

 

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


{ "status": "1", "message": "The points have been successfully saved" }
Peacock