Jika belum mengaktifkan
persetujuan penawaran otomatis
untuk produk software as a service (SaaS), Anda akan menerima pesan
Pub/Sub yang berbeda dari yang dijelaskan dalam artikel ini. Untuk mengetahui detail
pesan Pub/Sub tersebut, lihat
Mengelola hak untuk penawaran pribadi.
Untuk mengetahui detail tentang cara menggunakan Partner Procurement API untuk penawaran pribadi, buka
dokumentasi referensi.
Memverifikasi kapan penawaran pelanggan Anda akan aktif
Saat mengaktifkan persetujuan penawaran otomatis untuk produk SaaS, Anda akan menerima pesan Pub/Sub yang berbeda dengan pesan yang Anda terima untuk produk SaaS yang tidak mengaktifkan persetujuan otomatis.
Karena produk SaaS dengan persetujuan penawaran otomatis mendukung tanggal mulai
terjadwal, setelah penawaran pribadi diterima, Anda harus memverifikasi kapan penawaran
diperkirakan akan dimulai, sehingga Anda dapat menyediakan resource pada waktu yang tepat.
Saat pelanggan membeli penawaran pribadi, Cloud Marketplace akan membuat
hak dan mengirim pesan Pub/Sub berikut ke produk Anda:
{"eventId":"...","eventType":"ENTITLEMENT_OFFER_ACCEPTED","entitlement":{"id":"ENTITLEMENT_ID","updateTime":"...","newOfferDuration":"",// Contract duration for the offer"newOfferStartTime":"...",// Starting time for the offer"newOfferEndTime":"...",// Ending time for the offer},}
Dalam contoh ini, ENTITLEMENT_ID adalah ID yang dibuat oleh
Cloud Marketplace.
Di sistem Anda, perbarui akun pengguna untuk menunjukkan bahwa mereka telah membeli
penawaran. Gunakan kolom newOfferStartTime untuk memverifikasi waktu penawaran
diperkirakan akan dimulai, sehingga Anda dapat menyediakan resource sesuai kebutuhan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["# Manage entitlements for private offers with automatic offer approval\n\nWhen a customer purchases a [private offer](/marketplace/docs/partners/offers),\nGoogle creates an *entitlement*, which indicates that the customer has bought\nthe offer from Cloud Marketplace.\n\nThis article reviews how to manage entitlements for your\n[private offers that have automatic offer approval turned on](/marketplace/docs/partners/offers/automatic-approval)\nby using the Partner Procurement API.\n| **Caution:** Once you turn on automatic offer approval for a SaaS product, you no longer receive `ENTITLEMENT_CREATION_REQUESTED` or `ENTITLEMENT_PLAN_CHANGE_REQUESTED` Pub/Sub messages for that SaaS product.\n\nIf you haven't turned on\n[automatic offer approval](/marketplace/docs/partners/offers/automatic-approval)\nfor your software as a service (SaaS) product, you receive different\nPub/Sub messages than those described in this article. For details\nof those Pub/Sub messages, refer to\n[Manage entitlements for private offers](/marketplace/docs/partners/offers/manage-entitlements).\n\nFor details on using the Partner Procurement API for private offers, visit\nthe [reference documentation](/marketplace/docs/partners/offers/rest-resources).\n| **Note:** You can also perform some management tasks in Producer Portal when you view your list of offers.\n\nVerify when your customer's offers will become active\n-----------------------------------------------------\n\nWhen you turn on\n[automatic offer approval](/marketplace/docs/partners/offers/automatic-approval)\nfor a SaaS product, you receive different Pub/Sub messages than those\nyou receive for SaaS products that don't have automatic approval turned on.\nBecause SaaS products with automatic offer approval support scheduled start\ndates, after a private offer is accepted, you must verify when the offer is\nexpected to begin, so that you can provision resources at the right time.\n| **Note:** If you've turned on automatic offer approval for SaaS products, you still must [approve your customer's account](/marketplace/docs/partners/offers/approve-offer) before an offer can take effect. If you don't approve your customer's account before the scheduled start date of their offer, that offer is automatically rejected, for both new offers and amendments to existing offers.\n\nWhen a customer purchases a private offer, Cloud Marketplace creates an\nentitlement and sends the following Pub/Sub message to your product: \n\n```json\n{\n \"eventId\": \"...\",\n \"eventType\": \"ENTITLEMENT_OFFER_ACCEPTED\",\n \"entitlement\": {\n \"id\": \"\u003cvar translate=\"no\"\u003eENTITLEMENT_ID\u003c/var\u003e\",\n \"updateTime\": \"...\",\n \"newOfferDuration\": \"\", // Contract duration for the offer\n \"newOfferStartTime\": \"...\", // Starting time for the offer\n \"newOfferEndTime\": \"...\", // Ending time for the offer\n },\n}\n```\n\nIn this example, \u003cvar translate=\"no\"\u003eENTITLEMENT_ID\u003c/var\u003e is an ID created by\nCloud Marketplace.\n\nIn your system, update the user's account to reflect that they've purchased the\noffer. Use the `newOfferStartTime` field to verify the time that the offer is\nexpected to start, so that you can provision resources as needed.\n\nWhat's next\n-----------\n\n- [Turn on automatic offer approval](/marketplace/docs/partners/offers/automatic-approval)\n for SaaS products that you offer.\n\n- [Create a private offer](/marketplace/docs/partners/offers/create-private-offers)\n for a specific customer."]]