Last Updated on : 2024-01-12 02:44:07download
Users spend loyalty points at the specified store.
POST: /v1.0/cloud/ecm/store/point/spend
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
mall_code | String | true | The code of the specified mall. | |
shop_code | String | true | The code of the specified store. | |
user_id | String | true | The user ID (UID). | |
point_num | Integer | true | The number of loyalty points. |
Parameter name | Type | Description |
---|---|---|
tid | String | The link ID. |
success | Boolean | Indicates whether the operation is successful. |
t | Long | The timestamp. |
POST: /v1.0/cloud/ecm/store/point/spend
{
"mall_code": "8h*****",
"shop_code": "Pd*****",
"user_id": "sh*****",
"point_num": 10
}
{
"tid": "c4*****",
"t": 1703732219617,
"success": true
}
For more information, see error code.
Error code | Error message | Description |
---|---|---|
21000000 | unknown error | An unknown error occurs. |
21000001 | user not found | The user does not exist. |
21000002 | mall not exist | The mall does not exist. |
21000003 | shop not exist | The store does not exist. |
21000004 | app not found | The app does not exist. |
21000005 | invalid param | The request parameter is invalid. |
21000006 | insufficient points | There are insufficient loyalty points available. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback