शॉपिंग विज्ञापनों या मुफ़्त में दिखाई जाने वाली लिस्टिंग के ज़रिए प्रॉडक्ट दिखाने के लिए, returnpolicyonline
का इस्तेमाल किया जा सकता है. इससे ऑनलाइन सामान लौटाने की नीतियां बनाई, देखी, उनमें बदलाव किया या उन्हें मिटाया जा सकता है. इसके लिए, इन एट्रिब्यूट का इस्तेमाल किया जा सकता है:
- टारगेट किए गए देश
- रीस्टॉकिंग शुल्क (प्रॉडक्ट लौटाने पर लगने वाला शुल्क)
- सामान लौटाने के तरीके
- सामान लौटाने के लिए, आइटम की स्थिति से जुड़ी शर्तें
- सामान लौटाने की वजह की कैटगरी
- सामान लौटाने की नीति के यूआरएल
शॉपिंग विज्ञापनों या मुफ़्त में दिखाई जाने वाली लिस्टिंग के ज़रिए बेचे गए प्रॉडक्ट के लिए, सामान लौटाने का पता देना ज़रूरी नहीं है.
ज़्यादा जानकारी के लिए, शॉपिंग विज्ञापनों और मुफ़्त में दिखाई जाने वाली लिस्टिंग के लिए, सामान लौटाने की नीतियां सेट अप करना लेख पढ़ें.
सूची
returnpolicyonline.list
का इस्तेमाल करके, ऑनलाइन सामान लौटाने की अपनी सभी मौजूदा नीतियां देखी जा सकती हैं. आईडी के हिसाब से, सामान लौटाने की कोई खास नीति देखने के लिए, get देखें.
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/returnpolicyonline
जवाब का एक उदाहरण यहां दिया गया है:
{
"returnPolicies": [
{
"returnPolicyId": "transactions:US:default",
"label": "default",
"countries": [
"GB"
],
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"restockingFee": {
"fixedFee": {
"value": "5.99",
"currency": "GBP"
}
},
"returnMethods": [
"IN_STORE",
"BY_MAIL"
],
"itemConditions": [
"NEW",
"USED"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "GBP"
}
}
},
{
"returnReasonCategory": "BUYER_REMORSE",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "GBP"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
},
{
"returnPolicyId": "transactions:US:default",
"label": "default120days",
"countries": [
"US",
"FR"
],
"name": "returnpolicy120days",
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"restockingFee": {
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
},
"returnMethods": [
"BY_MAIL"
],
"itemConditions": [
"NEW",
"USED"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
},
{
"returnReasonCategory": "BUYER_REMORSE",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
}
]
}
सदस्यता लें
returnpolicyonline.get
का इस्तेमाल करके, returnPolicyId के हिसाब से, सामान लौटाने की कोई खास नीति देखी जा सकती है. इस तरीके से, सामान लौटाने की सिर्फ़ एक नीति दिखती है. सामान लौटाने की अपनी सभी नीतियां एक साथ देखने के लिए, list देखें.
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/returnpolicyonline/returnPolicyId
जवाब का एक उदाहरण यहां दिया गया है:
{
"returnPolicyId": "transactions:US:default",
"label": "default",
"countries": [
"US"
],
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"restockingFee": {
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
},
"returnMethods": [
"BY_MAIL"
],
"itemConditions": [
"NEW",
"USED"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
},
{
"returnReasonCategory": "BUYER_REMORSE",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
}
बनाएं
returnpolicyonline.create
का इस्तेमाल करके, सामान लौटाने की नई नीति जोड़ी जा सकती है. जवाब में, अपडेट की गई नीति शामिल होती है.
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/returnpolicyonline
अनुरोध का एक उदाहरण यहां दिया गया है:
{
"returnPolicyId": "12345678",
"label": "default90days",
"name": "returnpolicy90days",
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"countries": [
"US"
],
"itemConditions": [
"NEW",
"USED"
],
"restockingFee": {
"fixedFee": {
"currency": "USD",
"value": "0.00"
}
},
"returnMethods": [
"BY_MAIL"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
}
जवाब का एक उदाहरण यहां दिया गया है:
{
"returnPolicyId": "12345678",
"label": "default90days",
"countries": [
"US"
],
"name": "returnpolicy90days",
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"restockingFee": {
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
},
"returnMethods": [
"BY_MAIL"
],
"itemConditions": [
"NEW",
"USED"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
}
पैच
returnpolicyonline.patch
का इस्तेमाल करके, returnPolicyId के हिसाब से, ऑनलाइन सामान लौटाने की किसी मौजूदा नीति को अपडेट किया जा सकता है.
PATCH https://shoppingcontent.googleapis.com/content/v2.1/merchantId/returnpolicyonline/returnPolicyId
अनुरोध का एक उदाहरण यहां दिया गया है:
{
"returnPolicyId": "12345678",
"label": "default90days",
"countries": [
"US",
"FR"
],
"name": "returnpolicy90days",
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"restockingFee": {
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
},
"returnMethods": [
"BY_MAIL"
],
"itemConditions": [
"NEW",
"USED"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
},
{
"returnReasonCategory": "BUYER_REMORSE",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
}
जवाब का एक उदाहरण यहां दिया गया है:
{
"returnPolicyId": "12345678",
"label": "default90days",
"countries": [
"US",
"FR"
],
"name": "returnpolicy90days",
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "90"
},
"restockingFee": {
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
},
"returnMethods": [
"BY_MAIL"
],
"itemConditions": [
"NEW",
"USED"
],
"returnReasonCategoryInfo": [
{
"returnReasonCategory": "ITEM_DEFECT",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
},
{
"returnReasonCategory": "BUYER_REMORSE",
"returnLabelSource": "DOWNLOAD_AND_PRINT",
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"value": "0.00",
"currency": "USD"
}
}
}
],
"returnPolicyUri": "https://www.example.com/return-policy"
}
मिटाएं
returnpolicyonline.delete
का इस्तेमाल करके, returnPolicyId के हिसाब से, ऑनलाइन सामान लौटाने की किसी मौजूदा नीति को मिटाया जा सकता है. अगर अनुरोध पूरा होता है, तो इस तरीके से 200 कोड मिलता है. वहीं, अगर अनुरोध में कोई गड़बड़ी होती है, तो 404 कोड मिलता है.
DELETE https://shoppingcontent.googleapis.com/content/v2.1/merchantId/returnpolicyonline/returnPolicyId
अनुरोध का एक उदाहरण यहां दिया गया है:
{
"error": {
"code": "404",
"message": "Return policy not found.",
"status": "NOT_FOUND",
"details": [
{
"type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "notFound",
"domain": "global"
}
]
}
}