Method: loyaltyclass.insert
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chèn một hạng khách hàng thân thiết có mã nhận dạng và các thuộc tính đã cho.
Yêu cầu HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass
URL sử dụng cú pháp Chuyển mã gRPC.
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của LoyaltyClass
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể mới tạo của LoyaltyClass
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/wallet_object.issuer
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["Inserts a new loyalty class with the specified ID and properties using an HTTP POST request."],["The request body must contain a LoyaltyClass object with the desired properties for the new loyalty class."],["If successful, the API returns the newly created LoyaltyClass object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope to access and modify loyalty class information."]]],["A `POST` request is made to `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass` to insert a loyalty class, using gRPC Transcoding. The request body must include a `LoyaltyClass` instance. Upon success, the response body will contain the newly created `LoyaltyClass`. The operation requires OAuth scope authorization: `https://www.googleapis.com/auth/wallet_object.issuer`.\n"]]