Customers
Update Customer Member Points
Changed onUsing open API to update customer member points
post/customers/{id}/member_points
Request
- Base URLhttps://open.shopline.io/v1
- URLhttps://open.shopline.io/v1/customers/{id}/member_points
- AuthHTTP bearer
Path parameters
idstring required
Customer ID<br>顧客ID
Request body
Example request
{
"value": 39,
"remarks": "add 100 member points",
"email_target": 1,
"sms_notification_target": 1,
"expire_date": "2027-03-19"
}Response
CREATED
Example response
{
"customer_id": "5f8e5dc08a8bb70a5c9cd93c",
"point_balance": 500,
"remarks": "Reward",
"value": 100,
"order_id": "5f8e5dc08a8bb70a5c9cd93c",
"type": "auto_reward",
"end_at": "2020-10-20T03:50:00.323Z",
"created_at": "2019-12-30T09:16:46.142Z"
}Changes
- breaking
request body became required
- breaking
for the
pathrequest parameterid, the minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the response property
became nullable for the status - warning
the
request property's maxLength was set to50 - warning
the
request property's max was set to999999.00 - warning
the
request property's min was set to-999999.00
- breaking