Query Details of Loyalty Points

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

Query the details of the specified user's loyalty points.

API address

GET: /v1.0/cloud/ecm/store/point/detail

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
mall_codeStringquerytrueThe code of the specified mall.
shop_codeStringquerytrueThe code of the specified store.
user_idStringquerytrueThe user ID (UID).

Return parameter

Parameter nameTypeDescription
resultObjectThe returned result.
successBooleanIndicates whether the operation is successful.
tidStringThe link ID.

Description of result

Parameter nameTypeDescription
user_idStringThe user ID (UID).
usable_amountIntegerThe available loyalty points of the specified user.

Request example

GET: /v1.0/cloud/ecm/store/point/detail
{
  "mall_code": "8h*****",
  "shop_code": "Pd*****",
  "user_id": "sh*****"
}

Return example

{
    "tid": "0b*****",
    "result": {
        "userId": "sh*****",
        "usableAmount": 240
    },
    "t": 1703582445353,
    "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.