इसके अलावा, Merchant API में कई नए फ़ील्ड भी जोड़े गए हैं.
Merchant API फ़ील्ड
ब्यौरा
"restockingFee": {
object (RestockingFee)
},
ज़रूरी नहीं. यह रीस्टॉकिंग शुल्क, सामान लौटाने की सभी वजहों पर लागू होता है.
अगर वैल्यू सेट नहीं की जाती है, तो इसे बिना शुल्क के रीस्टॉक करने के तौर पर माना जाएगा.
"returnMethods": [
enum (ReturnMethod)
]
ज़रूरी नहीं. सामान लौटाने के तरीके, जिनसे खरीदार किसी सामान को लौटा सकते हैं. इस वैल्यू को खाली नहीं छोड़ा जा सकता. हालांकि, अगर सामान लौटाने की नीति noReturns है, तो इसे खाली छोड़ा जा सकता है.
"itemConditions": [ enum (ItemCondition) ],
ज़रूरी नहीं. सामान लौटाने से जुड़ी शर्तें पूरी करने पर, सामान को लौटाया जा सकता है. हालांकि, अगर सामान लौटाने की नीति noReturns. है, तो यह एट्रिब्यूट खाली नहीं होना चाहिए
ज़रूरी नहीं. सामान लौटाने के लिए खरीदार से लिया जाने वाला शिपिंग शुल्क. इस विकल्प को सिर्फ़ तब सेट किया जाना चाहिए, जब खरीदार को सामान लौटाने का लेबल डाउनलोड और प्रिंट करना हो.
"returnPolicyUri": string
ज़रूरी है. सामान लौटाने की नीति का यूआरआई. Google इसका इस्तेमाल, नीति की पुष्टि करने के लिए करता है.
यह एक मान्य यूआरएल होना चाहिए.
"acceptDefectiveOnly": boolean
ज़रूरी है. इससे पता चलता है कि कारोबारी या कंपनी, सिर्फ़ खराब प्रॉडक्ट लौटाने की सुविधा देती है.
"processRefundDays": integer
ज़रूरी नहीं. इससे यह पता चलता है कि कारोबारियों या कंपनियों को रिफ़ंड प्रोसेस करने में कितने दिन लगते हैं.
"acceptExchange": boolean
ज़रूरी नहीं. इससे यह पता चलता है कि कारोबारी या कंपनी, खरीदारों को प्रॉडक्ट बदलने की अनुमति देती है या नहीं.
"returnLabelSource": enum (ReturnLabelSource)
इससे, सामान लौटाने के लेबल के सोर्स के बारे में पता चलता है. सामान लौटाने का तरीका BY_MAIL होने पर, यह एट्रिब्यूट ज़रूरी है.
ReturnPolicyPolicy
Content API ReturnPolicyPolicy, Merchant API में Policy हो जाता है. यहां बताया गया है कि फ़ील्ड में क्या बदलाव हुए हैं.
Content API
Merchant API
"type": string,
"type": enum (Type)
इन वैल्यू का इस्तेमाल किया जा सकता है
NUMBER_OF_DAYS_AFTER_DELIVERY, NO_RETURNS or LIFETIME_RETURNS.
"numberOfDays": string
"days": string
"lastReturnDate": string
इसके बजाय, days का इस्तेमाल करें. इससे यह पता चलता है कि डिलीवरी के बाद, खरीदार कितने दिनों तक सामान लौटा सकते हैं. इसमें एक दिन का मतलब, डिलीवरी के टाइमस्टैंप के 24 घंटे बाद से होता है. NUMBER_OF_DAYS_AFTER_DELIVERY को लौटाने के लिए ज़रूरी है.
ReturnPolicySeasonalOverride
Content API ReturnPolicySeasonalOverride, Merchant API में SeasonalOverride हो जाता है. फ़ील्ड में बदलाव के अलावा, अतिरिक्त फ़ील्ड return_window एक यूनीयन है. यह returnDays या returnUntilDate हो सकता है:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-08 (UTC) को अपडेट किया गया."],[],[],null,["# Migrate online return policy management\n\nThe Content API resource `OnlineReturnPolicy` and associated fields including\n`ReturnPolicyPolicy` and `ReturnPolicySeasonalOverride` have changed.\n\nThe Merchant API equivalent of the\n[`returnpolicy`](/shopping-content/reference/rest/v2.1/returnpolicy) resource in\nContent API is\n[`accounts.onlineReturnPolicies`](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies).\n\nThis table explains what changes in `OnlineReturnPolicy`.\n\n| Content API | Merchant API |\n|------------------------------------------------------------------------|-------------------------------------------------------------|\n| ` \"country\": string ` | ` \"countries\": [ string ] ` |\n| ` \"policy\": { object (ReturnPolicyPolicy) } ` | ` \"policy\": { object (Policy) } ` |\n| ` \"seasonalOverrides\": [ { object (ReturnPolicySeasonalOverride) } ] ` | ` \"seasonalOverrides\": [ { object (SeasonalOverride) } ], ` |\n| ` nonFreeReturnReasons\": [ string ] ` | This field goes away.` ` |\n| `kind ` | This field goes away.` ` |\n| ` \"returnShippingFee\": { object (Price) } ` | ` \"returnShippingFee\": { object (ReturnShippingFee) } ` |\n\nIn addition, a number of fields are new with Merchant API.\n\n| Merchant API field | Description |\n|---------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` \"restockingFee\": { object (RestockingFee) }, ` | Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set. ` ` |\n| ` \"returnMethods\": [ enum (ReturnMethod) ] ` | Optional. The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns. ` ` |\n| ` \"itemConditions\": [ enum (ItemCondition) ], ` | Optional. The item conditions accepted for returns must not be empty unless the type of return policy is `noReturns.` |\n| ` \"returnShippingFee\": { object (ReturnShippingFee) } ` | Optional. The return shipping fee. Should be set only when customer need to download and print the return label. ` ` |\n| ` \"returnPolicyUri\": string ` | Required. The return policy URI. Google uses this to validate the policy. It must be a valid URL. ` ` |\n| ` \"acceptDefectiveOnly\": boolean ` | Required. Specifies that a merchant accepts only defective products for returns. ` ` |\n| ` \"processRefundDays\": integer ` | Optional. Specifies the number of days it takes for merchants to process refunds. ` ` |\n| ` \"acceptExchange\": boolean ` | Optional. Specifies whether the merchant allows customers to exchange products. |\n| ` \"returnLabelSource\": enum (ReturnLabelSource) ` | Specifies the return label source. Required when return method is BY_MAIL. ` ` |\n\nReturnPolicyPolicy\n------------------\n\nThe Content API `ReturnPolicyPolicy` becomes `Policy` in Merchant API. Here's\nhow the fields have changed.\n\n| Content API | Merchant API |\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` \"type\": string, ` | ` \"type\": enum (Type) ` Possible values include ` NUMBER_OF_DAYS_AFTER_DELIVERY, NO_RETURNS or LIFETIME_RETURNS. ` |\n| ` \"numberOfDays\": string ` | ` \"days\": string ` |\n| ` \"lastReturnDate\": string ` | Use `days` instead. It represents the number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for `NUMBER_OF_DAYS_AFTER_DELIVERY` returns. |\n\nReturnPolicySeasonalOverride\n----------------------------\n\nThe Content API `ReturnPolicySeasonalOverride` becomes `SeasonalOverride` in\nMerchant API. In addition to the changes in fields, the additional field\n`return_window` is a union that can be either `returnDays` or `returnUntilDate`: \n\n \"returnDays\": integer,\n \"returnUntilDate\": {\n object (Date)\n\nThey have the following meanings:\n\n- `returnDays`: Number of days (from the delivery date) that the product can still be returned.\n- `returnUntilDate`: Fixed end date until which the product can be returned.\n\nHere's how the fields have changed.\n\n| Content API | Merchant API |\n|-----------------------------------------------|------------------------------------|\n| ` \"name\": string ` | ` \"label\": string ` |\n| ` \"startDate\": string ` | ` \"startDate\": { object (Date) } ` |\n| ` \"endDate\": string ` | ` \"endDate\": { object (Date) } ` |\n| ` \"policy\": { object (ReturnPolicyPolicy) } ` | Use `policy` instead. |\n\nDefinitions of other objects\n----------------------------\n\nFor definitions of the new Merchant API objects\n\n- `RestockingFee`\n- `ReturnMethod`\n- `ItemCondition`\n- `ReturnShippingFee`\n- `Type`\n- `ReturnLabelSource`\n\nsee\n[`accounts.onlineReturnPolicies`](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies).\n\nMethods\n-------\n\nWith Merchant API, there are some changes from the Content API methods as well.\n\n| Content API | Merchant API |\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` customBatch ` | With Mechant API, there is a different approach. See [Refactor code for concurrent requests.](/merchant/api/guides/compatibility/refactor-concurrent-requests) |\n| ` delete ` | ` delete ` |\n| ` get ` | ` get ` |\n| ` insert ` | `create` |\n| ` list ` | ` list ` |"]]