Tạo gói thuê bao thông báo cho một doanh nghiệp. Đối với tài khoản độc lập hoặc tài khoản phụ, doanh nghiệp có thể tự tạo gói thuê bao. Đối với tài khoản MCA, doanh nghiệp có thể tạo gói thuê bao cho tất cả tài khoản được quản lý hoặc cho một tài khoản phụ cụ thể.
Chúng tôi sẽ cho phép các loại gói thuê bao thông báo sau đây cùng tồn tại (mỗi doanh nghiệp là một người đăng ký cho mỗi loại sự kiện):
Gói thuê bao cho tất cả tài khoản được quản lý + gói thuê bao cho chính bạn.
Nhiều gói thuê bao "một phần" cho tài khoản được quản lý + gói thuê bao cho chính bạn.
chúng tôi sẽ không cho phép (mỗi doanh nghiệp là một người đăng ký theo mỗi loại sự kiện):
Nhiều gói thuê bao tự đăng ký.
Nhiều gói thuê bao "tất cả tài khoản được quản lý".
Gói thuê bao "Tất cả tài khoản được quản lý" và gói thuê bao một phần cùng một lúc.
Nhiều gói thuê bao một phần cho cùng một tài khoản mục tiêu.
Yêu cầu HTTP
POST https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-01-23 UTC."],[[["This API creates notification subscriptions for businesses, allowing them to receive updates on various events."],["Businesses can create subscriptions for themselves, all managed accounts, or specific sub-accounts, with certain restrictions to avoid redundancy."],["The API requires a POST request to a specific URL with the merchant account ID and a request body containing the subscription details."],["A successful response will return the newly created notification subscription details."],["Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope."]]],["This describes how to create a notification subscription for a business via a `POST` request to `https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions`. The request uses a `parent` path parameter specifying the merchant account. The request and response bodies are `NotificationSubscription` instances. Subscriptions can be for self or managed accounts, with restrictions preventing multiple full or partial subscriptions of the same type. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]