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"
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock99333365-a678-4ff6-a5f3-64096fccc39fari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocka6f5bf91-197a-4073-b819-50c611dc7836defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock99333365-a678-4ff6-a5f3-64096fccc39fari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocka6f5bf91-197a-4073-b819-50c611dc7836