会員更新
PATCH /customers/{customer_id}
会員情報を更新します。
対象プラン
- プレミアムプラス
- フードビジネス
- リテールビジネス
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”会員ID
Request Body
Section titled “Request Body ”object
ユニーク値
ユニーク値
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
(0:不明、1:男、2:女)
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
値を指定した場合、ポイント付与単位(ポイント)も必須
値を指定した場合、ポイント付与単位(金額)も必須
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
(0:拒否、1:許可)
APIからのみ登録可能。商品コードをカンマ区切りで設定可能。
APIからのみ登録可能。商品コードをカンマ区切りで設定可能。
(0:利用可、1:利用停止、2:紛失、3:退会、4:名寄せ)
会員自由項目
object
会員自由項目番号:会員自由項目に付与されている番号
会員自由項目の値
会員必須項目設定で必須項目に設定されている場合nullまたは空文字の指定不可
nullまたは空文字を指定した場合はnullに更新し、未設定の場合は値を更新しません。
Example
{ "customerCode": "string", "customerNo": "string", "rank": "string", "staffRank": "string", "firstName": "string", "lastName": "string", "firstKana": "string", "lastKana": "string", "postCode": "string", "address": "string", "phoneNumber": "string", "faxNumber": "string", "mobileNumber": "string", "mailAddress": "test@example.com", "mailAddress2": "test@example.com", "mailAddress3": "test@example.com", "companyName": "string", "departmentName": "string", "managerialPosition": "string", "sex": "0", "birthDate": "2000-01-23", "pointExpireDate": "2000-01-23", "entryDate": "2000-01-23", "leaveDate": "2000-01-23", "pointGivingUnitPrice": "12345", "pointGivingUnit": "99999.99", "pinCode": "string", "passportNo": "string", "nationality": "string", "alphabetName": "string", "mailReceiveFlag": "0", "note": "string", "note2": "string", "favoriteList": "string", "browsingList": "string", "status": "0", "storeId": "1", "customFields": [ { "no": 1, "value": "string" } ]}Responses
Section titled “ Responses ”更新成功
object
会員ID
会員コード
会員番号
会員ランク
社員ランク
名
姓
フリガナ(名)
フリガナ(姓)
郵便番号
住所
電話番号
FAX番号
携帯電話番号
メールアドレス
メールアドレス2
メールアドレス3
会社名
部署名
役職
性別(0:不明、1:男、2:女)
生年月日
ポイント失効予定日
最終来店日時
入会日
退会日
ポイント付与単位(金額)
ポイント付与単位(ポイント)
PINコード
旅券番号
国籍
アルファベット氏名
案内メール受取許可フラグ(0:拒否、1:許可)
備考
備考2
お気に入りリスト
閲覧履歴リスト
会員状態区分(0:利用可、1:利用停止、2:紛失、3:退会、4:名寄せ)
対象店舗ID
登録日時:登録時の日時。[YYYY-MM-DDThh:mm:ssTZD]
更新日時:登録時・更新時の日時。[YYYY-MM-DDThh:mm:ssTZD]
会員自由項目
object
会員自由項目番号
会員自由項目の値
Example
{ "customerId": "string", "customerCode": "string", "customerNo": "string", "rank": "string", "staffRank": "string", "firstName": "string", "lastName": "string", "firstKana": "string", "lastKana": "string", "postCode": "string", "address": "string", "phoneNumber": "string", "faxNumber": "string", "mobileNumber": "string", "mailAddress": "string", "mailAddress2": "string", "mailAddress3": "string", "companyName": "string", "departmentName": "string", "managerialPosition": "string", "sex": "0", "birthDate": "string", "pointExpireDate": "string", "lastComeDateTime": "string", "entryDate": "string", "leaveDate": "string", "pointGivingUnitPrice": "string", "pointGivingUnit": "string", "pinCode": "string", "passportNo": "string", "nationality": "string", "alphabetName": "string", "mailReceiveFlag": "0", "note": "string", "note2": "string", "favoriteList": "string", "browsingList": "string", "status": "0", "storeId": "string", "insDateTime": "string", "updDateTime": "string", "customFields": [ { "no": 1, "value": "string" } ]}- 入力チェックエラーの場合
- 指定した会員ランクが存在しない場合
- 指定した社員ランクが存在しない場合
- 会員コードが重複している場合
- 対象店舗IDの店舗が存在しない場合
- 対象店舗IDに倉庫の店舗IDが指定された場合
- 会員自由項目番号が重複している場合
- 存在しない会員自由項目番号を指定した場合
object
Examples
{ "type": "about:blank", "title": "Bad Request", "detail": "request_json:[customerCode]は[20]文字以下である必要があります", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[rank] 存在しない会員ランクが指定されています。(rank-171)", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[staffRank] 存在しない社員ランクが指定されています。(staffRank-171)", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[customerCode] customerId:171 既に登録されている会員コードです", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[storeId] 存在しない店舗IDです。(storeId-171)", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[storeId] 会員の対象店舗に倉庫は指定できません。(storeId-171)", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[customFields.no] 会員自由項目番号が重複しています。(customFields.no-{no})", "status": 400}{ "type": "about:blank", "title": "Bad Request", "detail": "[customFields.no] 存在しない会員自由項目番号です。(customFields.no-{no})", "status": 400}- レコードが見つからない場合
object
Examples
{ "type": "about:blank", "title": "NotFound", "detail": "指定されたIDのリソースが見つかりません", "status": 404}