Issue Loyalty Points

Last Updated on : 2024-01-12 02:43:27download

Issue loyalty points of the specified store to the specified user.

API address

POST: /v1.0/cloud/ecm/store/point/deliver

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
mall_codeStringbodytrueThe code of the specified mall.
shop_codeStringbodytrueThe code of the specified store.
user_idStringbodytrueThe user ID (UID).
point_numIntegerbodytrueThe number of loyalty points.
remarkStringbodytrueThe remarks.

Return parameter

Parameter nameTypeDescription
tidStringThe link ID.
successBooleanIndicates whether the operation is successful.
tStringThe timestamp.

Request example

POST: /v1.0/cloud/ecm/store/point/deliver
{
  "mall_code": "8h*****",
  "shop_code": "Pd*****",
  "user_id": "sh*****",
  "point_num": 10,
  "remark": "#1001"
}

Return example

{
    "tid": "c4******",
    "t": 1703732219617,
    "success": true
}

Error code

For more information, see error code.

Error codeError messageDescription
21000000unknown errorAn unknown error occurs.
21000001user not foundThe user does not exist.
21000002mall not existThe mall does not exist.
21000003shop not existThe store does not exist.
21000004app not foundThe app does not exist.
21000005invalid paramThe request parameter is invalid.