Method: subscriptions.insert
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সদস্যতা তৈরি বা স্থানান্তর করে।
একটি গ্রাহকের অ্যাকাউন্টের জন্য একটি সাবস্ক্রিপশন তৈরি করুন যা আপনি অর্ডার একটি নতুন গ্রাহক অ্যাকাউন্ট পদ্ধতি ব্যবহার করে অর্ডার করেছেন৷ বিভিন্ন পেমেন্ট প্ল্যানের জন্য একটি সাবস্ক্রিপশন তৈরি করার বিষয়ে আরও তথ্যের জন্য, সাবস্ক্রিপশন পরিচালনা দেখুন।\
আপনি গ্রাহক সন্নিবেশ পদ্ধতি ব্যবহার করে গ্রাহকের অ্যাকাউন্ট অর্ডার না করলে, সেই গ্রাহকের জন্য একটি সাবস্ক্রিপশন তৈরি করার সময় গ্রাহকের customerAuthToken
ব্যবহার করুন।
সংশ্লিষ্ট Google ড্রাইভ বা Google ভল্ট সাবস্ক্রিপশনের সাথে একটি G Suite সাবস্ক্রিপশন স্থানান্তর করলে, এই সমস্ত সদস্যতা স্থানান্তর করতে ব্যাচ অপারেশন ব্যবহার করুন। আরও তথ্যের জন্য, কীভাবে সদস্যতা স্থানান্তর করবেন তা দেখুন।
HTTP অনুরোধ
POST https://reseller.googleapis.com/apps/reseller/v1/customers/{customerId}/subscriptions
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
customerId | string এটি গ্রাহকের প্রাথমিক ডোমেন নাম বা গ্রাহকের অনন্য শনাক্তকারী হতে পারে। যদি একজন গ্রাহকের ডোমেন নাম পরিবর্তন হয়, তবে পুরানো ডোমেন নামটি গ্রাহককে অ্যাক্সেস করার জন্য ব্যবহার করা যাবে না, তবে গ্রাহকের অনন্য শনাক্তকারী (যেমন API দ্বারা ফেরত দেওয়া হয়েছে) সর্বদা ব্যবহার করা যেতে পারে। আমরা আপনার সিস্টেমে যেখানে প্রযোজ্য সেখানে অনন্য শনাক্তকারী সংরক্ষণ করার পরামর্শ দিই। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
customerAuthToken | string customerAuthToken ক্যোয়ারী স্ট্রিং প্রয়োজন হয় যখন একটি পুনঃবিক্রীত অ্যাকাউন্ট তৈরি করা হয় যা সরাসরি গ্রাহকের সদস্যতা স্থানান্তর করে বা অন্য রিসেলার গ্রাহকের সদস্যতা আপনার রিসেলার পরিচালনায় স্থানান্তর করে। এটি একটি হেক্সাডেসিমেল প্রমাণীকরণ টোকেন যা সদস্যতা স্থানান্তর সম্পূর্ণ করার জন্য প্রয়োজন৷ আরও তথ্যের জন্য, প্রশাসক সহায়তা কেন্দ্র দেখুন। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে Subscription
একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Subscription
একটি নতুন তৈরি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/apps.order
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: subscriptions.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates or transfer a subscription.\n\nCreate a subscription for a customer's account that you ordered using the [Order a new customer account](/workspace/admin/reseller/v1/reference/customers/insert) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/workspace/admin/reseller/v1/how-tos/manage_subscriptions#create_subscription).\\\\\n\nIf you did not order the customer's account using the customer insert method, use the customer's `customerAuthToken` when creating a subscription for that customer.\n\nIf transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/workspace/admin/reseller/v1/how-tos/batch) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/workspace/admin/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).\n\n### HTTP request\n\n`POST https://reseller.googleapis.com/apps/reseller/v1/customers/{customerId}/subscriptions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerId` | `string` This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. |\n\n### Query parameters\n\n| Parameters ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerAuthToken` | `string` The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the [administrator help center](//support.google.com/a/bin/answer.py?answer=142336). |\n\n### Request body\n\nThe request body contains an instance of [Subscription](/workspace/admin/reseller/reference/rest/v1/subscriptions#Subscription).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Subscription](/workspace/admin/reseller/reference/rest/v1/subscriptions#Subscription).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.order`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]