Update Customer Store Credits
Changed onTo update customer store credits with open API<br>使用open API更新顧客購物金
Request
- Base URLhttps://open.shopline.io/v1
- URLhttps://open.shopline.io/v1/customers/{id}/store_credits
- AuthHTTP bearer
Path parameters
Customer ID<br>顧客ID
Query parameters
Exclude certain parameters in the response<br>結果要排除哪些參數
[ "status" ]
Only show certain parameters in the response<br> 結果只顯示哪些參數
[ "status" ]
Request body
Example request
{
"value": 100,
"remarks": "add 100 store credits",
"expires_at": "2027-11-30",
"email_target": 1,
"sms_notification_target": 1,
"replace": true,
"type": "manual_credit"
}Response
CREATED
Example response
{
"_id": "5f55ad58d9ce6d003c1fd62f",
"customer_id": "5f47c96a86a983001614a834",
"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",
"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"
}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
request property format changed from no format todate - breaking
the response property
became nullable for the status - warning
the
request property's maxLength was set to49 - warning
the
request property's max was set to999999.00 - warning
the
request property's min was set to-999999.00 - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- breaking