Skip to main content

更新會員

介面路徑

請求方式API 路徑
POST{DOMAIN_NAME} /api/v1/customer/update

請求電文

Http.header 參數

Content-TypeString必填
固定值:application/json
platformIdString選填
SLP 平台 ID,平台特店必填
merchantIdString必填
直連特店串接:SLP 分配的特店 ID;平台特店串接:SLP 分配的子特店 ID
apiKeyString必填
API 介面金鑰
requestIdString(32)必填
請求流水號,每個 HTTP 請求唯一
idempotentKeyString(32)選填
冪等 KEY

Http.body

customerIdString(32)必填
會員 ID
referenceCustomerIdString(32)選填
特店顧客唯一標識,需為唯一值

回應電文

處理結果 http.statusCode

* 500 /429 /400:處理異常

codeString必填
錯誤碼,錯誤碼及錯誤描述詳情查看: Server 錯誤碼
msgString必填
錯誤描述,錯誤碼及錯誤描述詳情查看: Server 錯誤碼

* 200:處理成功

customerIdString(32)必填
付款中台會員 ID
referenceCustomerIdString(32)必填
特店會員 ID
attachDataMap選填
透傳資訊
POST/api/v1/trade/payment/update

sandbox api

https://api-sandbox.shoplinepayments.com/api/v1/trade/payment/update

live api

https://api.shoplinepayments.com/api/v1/trade/payment/update
請求電文範例
{
"customerId":"dasdasasfa",//String/必填/平台ID
"referenceCustomerId": "xxxxxx",////String/選填/业务方会员ID
"customer": //Customer/必填/會員資訊
{
"email":"yy@1asda.com",//String/選填/顧客郵箱,郵箱和電話二者需至少傳入其一
"phoneNumber":"8866545615" //String/選填/顧客電話,需帶國碼,舉例 +6287654321876,郵箱和電話二者需至少傳入其一
}
}
回應電文範例
{
"customerId": "10372311021698909339649020300",
"referenceCustomerId": "165165165165165633"
}