v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBCustomers
Update Customer Store Credits
To update customer store credits with open API<br>使用open API更新顧客購物金
post/customers/{id}/store_credits
Path parameters
idstring required
Customer ID<br>顧客ID
Query parameters
excludes[]string[]
Exclude certain parameters in the response<br>結果要排除哪些參數
[ "status" ]
fields[]string[]
Only show certain parameters in the response<br> 結果只顯示哪些參數
[ "status" ]
Request body
Example request
{
"value": 100,
"remarks": "add 100 store credits",
"expires_at": "2021-11-30",
"email_target": 1,
"sms_notification_target": 1,
"replace": true,
"type": "manual_credit"
}Response
CREATED
Example response
{
"_id": "5f55ad58d9ce6d003c1fd62f",
"customer_id": "5f47c96a86a983001614a834",
"credit_balance": 160,
"remarks": "hello",
"value": 20,
"end_at": "2021-11-30T00:00:00.000+00:00",
"performer_id": "61ad96bda6633e004cafe7db",
"performer_name": "staff1",
"fulfillment_balance": 10,
"type": "manual_credit",
"created_at": "2020-09-07T03:47:44.061Z",
"customer_ref_user_id": "MEMBR000000000000019034194",
"status": "active",
"order_id": "621701406dcff70039642cde",
"value_dollar": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"user_credit_rule_id": "583d630a69702d70850c0000",
"order_number": "2019052707260498"
}