shippingsettings
संसाधन की मदद से, एक से ज़्यादा क्लाइंट वाले खाते (एमसीए) और उससे जुड़े सभी उप-खातों की शिपिंग सेटिंग वापस पाई जा सकती हैं और उन्हें अपडेट किया जा सकता है.
आम तौर पर, एमसीए का इस्तेमाल ऐसे इंटिग्रेटर, एग्रीगेटर, और चैनल पार्टनर करते हैं जो कई व्यापारियों/कंपनियों/कारोबारियों के लिए ऑनलाइन स्टोर और एपीआई सेवाएं मैनेज करते हैं. ऐसे कारोबारी या कंपनियां जिनके पास एक से ज़्यादा ऑनलाइन स्टोर हैं या ऐसे ब्रैंड हैं जो अलग-अलग वेबसाइटों पर बेचे जाते हैं, वे भी एक ही एमसीए में उप-खाते बनाने का विकल्प चुन सकते हैं.
Google कुछ प्रॉडक्ट के लिए, डिलीवरी का अनुमानित समय अपने-आप अपडेट कर सकता है. ज़्यादा जानकारी के लिए, अपने-आप हाेने वाले सुधार चालू करें लेख पढ़ें.
shippingsettings.list
अगर कोई एमसीए खाता मैनेज किया जा रहा है, तो shippingsettings.list
कॉल से किसी खाते या सभी उप-खातों की शिपिंग रिसॉर्स की सभी जानकारी दिखती है.
shippingsettings.list
तरीके के लिए यूआरएल का उदाहरण:
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/shippingsettings
यहां JSON रिस्पॉन्स का सैंपल दिया गया है. इसमें एमसीए खाते के 1111
और 2222
उप-खातों की शिपिंग सेटिंग दिखाई गई हैं:
{
"kind": "content#shippingsettingsListResponse",
"resources": [
{
"accountId": "1111",
"services": [
{
"name": "Standard Shipping",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1,
"transitTimeTable": {
"postalCodeGroupNames": [
"Region1",
"Region2",
"all other locations"
],
"transitTimeLabels": [
"all other labels"
],
"rows": [
{
"values": [
{
"minTransitTimeInDays": 1,
"maxTransitTimeInDays": 2
}
]
},
{
"values": [
{
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 3
}
]
},
{
"values": [
{
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 5
}
]
}
]
}
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "0",
"currency": "USD"
}
},
"name": "Standard Shipping"
}
],
"eligibility": "All scenarios"
},
{
"name": "Expedited",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 2,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "9.99",
"currency": "USD"
}
},
"name": "Expedited"
}
],
"eligibility": "All scenarios"
}
],
"postalCodeGroups": [
{
"name": "Region1",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94035",
"postalCodeRangeEnd": "94070"
}
]
},
{
"name": "Region2",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94071",
"postalCodeRangeEnd": "94082"
}
]
}
]
},
{
"accountId": "2222",
"services": [
{
"name": "FedEx",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 4,
"maxTransitTimeInDays": 6,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 0
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "5.99",
"currency": "USD"
}
},
"name": "All products"
}
],
"eligibility": "All scenarios except Shopping Actions"
},
{
"name": "GSA Shipping - Free Ship Over $49.99",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 7,
"minHandlingTimeInDays": 1,
"maxHandlingTimeInDays": 2
},
"rateGroups": [
{
"mainTable": {
"rowHeaders": {
"prices": [
{
"value": "49.99",
"currency": "USD"
},
{
"value": "infinity",
"currency": "USD"
}
]
},
"rows": [
{
"cells": [
{
"flatRate": {
"value": "6.99",
"currency": "USD"
}
}
]
},
{
"cells": [
{
"flatRate": {
"value": "0",
"currency": "USD"
}
}
]
}
]
},
"name": "Free Ship Over $49.99"
}
],
"eligibility": "Shopping Actions"
}
]
}
]
}
shippingsettings.get
shippingsettings.get
कॉल की मदद से, किसी एमसीए खाते को किसी एक उप-खाते की शिपिंग की सेटिंग की जानकारी मिल सकती है. इसके अलावा, अगर किसी स्टैंडअलोन खाते से अपने खाते की स्थिति की जानकारी मिलती है, तो उसे भी इसकी मदद मिल सकती है.
शिपिंग की सेटिंग की जानकारी पाने के लिए, इस कॉल का इस्तेमाल करें. इसमें merchantId
, एमसीए खाता नंबर और accountId
उसका उप-खाता है. अगर Merchant Center खाता, एक से ज़्यादा क्लाइंट वाला खाता नहीं है, तो
shippingsettings.get
अब भी शिपिंग की सेटिंग की जानकारी लौटा सकता है. इस मामले में, merchantId
और accountId
पैरामीटर के लिए, एक ही Merchant Center खाता नंबर का इस्तेमाल करें.
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/shippingsettings/accountId
यहां उस उप-खाते के लिए JSON रिस्पॉन्स का उदाहरण दिया गया है जिसमें Standard
और Expedited
शिपिंग सेवा, list
कॉल के लिए इस्तेमाल किए गए एमसीए खाते से कॉन्फ़िगर की गई है:
{
"accountId": "1111",
"services": [
{
"name": "Standard Shipping",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1,
"transitTimeTable": {
"postalCodeGroupNames": [
"Region1",
"Region2",
"all other locations"
],
"transitTimeLabels": [
"all other labels"
],
"rows": [
{
"values": [
{
"minTransitTimeInDays": 1,
"maxTransitTimeInDays": 2
}
]
},
{
"values": [
{
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 3
}
]
},
{
"values": [
{
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 5
}
]
}
]
}
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "0",
"currency": "USD"
}
},
"name": "Standard Shipping"
}
],
"eligibility": "All scenarios"
},
{
"name": "Expedited",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 2,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "9.99",
"currency": "USD"
}
},
"name": "Expedited"
}
],
"eligibility": "All scenarios"
}
],
"postalCodeGroups": [
{
"name": "Region1",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94035",
"postalCodeRangeEnd": "94070"
}
]
},
{
"name": "Region2",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94071",
"postalCodeRangeEnd": "94082"
}
]
}
]
}
shippingsettings.update
shippingsettings.update
कॉल की मदद से, एमसीए खाते से किसी उप-खाते या स्टैंडअलोन खाते की शिपिंग सेटिंग की जानकारी अपडेट की जा सकती है.
PUT https://shoppingcontent.googleapis.com/content/v2.1/merchantId/shippingsettings/accountId
10
के एमसीए मर्चेंज आईडी में मौजूद, खाता आईडी 2222
वाले उप-खाते के लिए, शिपिंग सेवा GSA Shipping - Free Ship Over $49.99
के लिए, maxTransitTimeInDays
को 7
में अपडेट करने के लिए, JSON अनुरोध का मुख्य हिस्सा यहां दिया गया है.
{
...
"services": [
{
"name": "FedEx",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 4,
"maxTransitTimeInDays": 6,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 0
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "5.99",
"currency": "USD"
}
},
"name": "All products"
}
],
"eligibility": "All scenarios except Shopping Actions"
},
{
"name": "GSA Shipping - Free Ship Over $49.99",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 7,
"minHandlingTimeInDays": 1,
"maxHandlingTimeInDays": 2
},
"rateGroups": [
{
"mainTable": {
"rowHeaders": {
"prices": [
{
"value": "49.99",
"currency": "USD"
},
{
"value": "infinity",
"currency": "USD"
}
]
},
"rows": [
{
"cells": [
{
"flatRate": {
"value": "6.99",
"currency": "USD"
}
}
]
},
{
"cells": [
{
"flatRate": {
"value": "0",
"currency": "USD"
}
}
]
}
]
},
"name": "Free Ship Over $49.99"
}
],
"eligibility": "Shopping Actions"
}
]
}
}
यहां JSON फ़ॉर्मैट में दिए गए जवाब का मुख्य हिस्सा दिया गया है:
{
"accountId": "2222",
"services": [
{
"name": "FedEx",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 4,
"maxTransitTimeInDays": 6,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 0
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "5.99",
"currency": "USD"
}
},
"name": "All products"
}
],
"eligibility": "All scenarios except Shopping Actions"
},
{
"name": "GSA Shipping - Free Ship Over $49.99",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 7,
"minHandlingTimeInDays": 1,
"maxHandlingTimeInDays": 2
},
"rateGroups": [
{
"mainTable": {
"rowHeaders": {
"prices": [
{
"value": "49.99",
"currency": "USD"
},
{
"value": "infinity",
"currency": "USD"
}
]
},
"rows": [
{
"cells": [
{
"flatRate": {
"value": "6.99",
"currency": "USD"
}
}
]
},
{
"cells": [
{
"flatRate": {
"value": "0",
"currency": "USD"
}
}
]
}
]
},
"name": "Free Ship Over $49.99"
}
],
"eligibility": "Shopping Actions"
}
]
}
shippingsettings.custombatch
shippingsettings.custombatch
कॉल, एक से ज़्यादा क्लाइंट वाले खाते के एक से ज़्यादा उप-खातों के लिए, शिपिंग सेटिंग की जानकारी हासिल या अपडेट करता है.
JSON अनुरोध में, एमसीए खाता नंबर का merchantId
, उप-खाते का accountId
, एक यूनीक batchId
, और शिपिंग की सेटिंग को फिर से पाने के लिए method
को get
पर सेट किया जाता है. साथ ही, शिपिंग की सेटिंग में बदलाव करने के लिए update
को भी सेट किया जाता है.
POST https://shoppingcontent.googleapis.com/content/v2.1/shippingsettings/batch
JSON के अनुरोध के मुख्य हिस्से में ये दो हिस्से हैं:
- खाता आईडी
1111
की शिपिंग सेटिंग वापस पाने के लिए,batchId=1
का इस्तेमाल किया गया. batchId=2
का इस्तेमाल, शिपिंग सेवाGSA Shipping - Free Ship Over $49.99
के लिए,maxTransitTimeInDays
को8
में अपडेट करने के लिए किया जाता है. (यह सेटिंग,shippingsettings.update
के लिए पिछले रिस्पॉन्स के मुख्य हिस्से में दिखाए गए खाता आईडी2222
के लिए,7
से बदली गई थी).
{
"entries": [
{
"accountId": 1111,
"merchantId": 10,
"method": "get",
"batchId": 1
},
{
"accountId": 2222,
"merchantId": 10,
"method": "update",
"batchId": 2,
"shippingSettings": {
"services": [
{
"name": "FedEx",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 4,
"maxTransitTimeInDays": 5,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 0
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "5.99",
"currency": "USD"
}
},
"name": "All products"
}
],
"eligibility": "All scenarios except Shopping Actions"
},
{
"name": "GSA Shipping - Free Ship Over $49.99",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 8,
"minHandlingTimeInDays": 1,
"maxHandlingTimeInDays": 2
},
"rateGroups": [
{
"mainTable": {
"rowHeaders": {
"prices": [
{
"value": "49.99",
"currency": "USD"
},
{
"value": "infinity",
"currency": "USD"
}
]
},
"rows": [
{
"cells": [
{
"flatRate": {
"value": "6.99",
"currency": "USD"
}
}
]
},
{
"cells": [
{
"flatRate": {
"value": "0",
"currency": "USD"
}
}
]
}
]
},
"name": "Free Ship Over $49.99"
}
],
"eligibility": "Shopping Actions"
}
]
}
}
]
}
यहां JSON फ़ॉर्मैट में दिए गए जवाब का मुख्य हिस्सा दिया गया है:
{
"kind": "content#shippingsettingsCustomBatchResponse",
"entries": [
{
"kind": "content#shippingsettingsCustomBatchResponseEntry",
"batchId": 1,
"shippingSettings": {
"accountId": "1111",
"services": [
{
"name": "Standard Shipping",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1,
"transitTimeTable": {
"postalCodeGroupNames": [
"Region1",
"Region2",
"all other locations"
],
"transitTimeLabels": [
"all other labels"
],
"rows": [
{
"values": [
{
"minTransitTimeInDays": 1,
"maxTransitTimeInDays": 2
}
]
},
{
"values": [
{
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 3
}
]
},
{
"values": [
{
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 5
}
]
}
]
}
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "0",
"currency": "USD"
}
},
"name": "Standard Shipping"
}
],
"eligibility": "All scenarios"
},
{
"name": "Expedited",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 2,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "9.99",
"currency": "USD"
}
},
"name": "Expedited"
}
],
"eligibility": "All scenarios"
}
],
"postalCodeGroups": [
{
"name": "Region1",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94035",
"postalCodeRangeEnd": "94070"
}
]
},
{
"name": "Region2",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94071",
"postalCodeRangeEnd": "94082"
}
]
}
]
}
},
{
"kind": "content#shippingsettingsCustomBatchResponseEntry",
"batchId": 2,
"shippingSettings": {
"accountId": "2222",
"services": [
{
"name": "FedEx",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 4,
"maxTransitTimeInDays": 5,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 0
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "5.99",
"currency": "USD"
}
},
"name": "All products"
}
],
"eligibility": "All scenarios except Shopping Actions"
},
{
"name": "GSA Shipping - Free Ship Over $49.99",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 8,
"minHandlingTimeInDays": 1,
"maxHandlingTimeInDays": 2
},
"rateGroups": [
{
"mainTable": {
"rowHeaders": {
"prices": [
{
"value": "49.99",
"currency": "USD"
},
{
"value": "infinity",
"currency": "USD"
}
]
},
"rows": [
{
"cells": [
{
"flatRate": {
"value": "6.99",
"currency": "USD"
}
}
]
},
{
"cells": [
{
"flatRate": {
"value": "0",
"currency": "USD"
}
}
]
}
]
},
"name": "Free Ship Over $49.99"
}
],
"eligibility": "Shopping Actions"
}
]
}
}
]
}
shippingsettings.getsupportedcarriers
shippingsettings.getsupportedcarriers
कॉल की मदद से, किसी एमसीए खाते या स्टैंडअलोन खाते को, मोबाइल और इंटरनेट सेवा देने वाली कंपनी के नेटवर्क का ऐक्सेस मिल जाता है.
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/supportedCarriers
यहां JSON फ़ॉर्मैट में दिए गए जवाब का मुख्य हिस्सा दिया गया है:
{
"kind": "content#shippingsettingsGetSupportedCarriersResponse",
"carriers": [
{
"name": "FedEx",
"country": "US",
"services": [
"Ground",
"Home Delivery",
"Express Saver",
"First Overnight",
"Priority Overnight",
"Standard Overnight",
"2Day"
]
},
{
"name": "UPS",
"country": "US",
"services": [
"2nd Day Air",
"2nd Day Air AM",
"3 Day Select",
"Ground",
"Next Day Air",
"Next Day Air Early AM",
"Next Day Air Saver"
]
},
{
"name": "USPS",
"country": "US",
"services": [
"Priority Mail Express",
"Media Mail",
"Retail Ground",
"Priority Mail",
"First Class Package Service Retail",
"First Class Package Service Commercial Base"
]
},
{
"name": "Australia Post",
"country": "AU",
"services": [
"Regular Parcel",
"Express Post"
]
},
{
"name": "TNT",
"country": "AU",
"services": [
"Road Express",
"Overnight Express"
]
},
{
"name": "TOLL",
"country": "AU",
"services": [
"Road Delivery",
"Overnight Priority"
]
},
{
"name": "DHL",
"country": "DE",
"services": [
"Paket",
"Päckchen"
]
},
{
"name": "DPD",
"country": "DE",
"services": [
"Express 12",
"Express",
"Classic Parcel"
]
},
{
"name": "Hermes",
"country": "DE",
"services": [
"Päckchen",
"Paketklasse S",
"Paketklasse M",
"Paketklasse L"
]
},
{
"name": "UPS",
"country": "DE",
"services": [
"Express",
"Express Saver",
"Standard"
]
},
{
"name": "DHL UK",
"country": "GB",
"services": [
"Express",
"Express 12"
]
},
{
"name": "DPD UK",
"country": "GB",
"services": [
"Express 12",
"Express Next Day",
"Standard Parcel 12",
"Standard Parcel Next Day",
"Standard Parcel Two Day"
]
},
{
"name": "RMG",
"country": "GB",
"services": [
"1st Class Small Parcel",
"1st Class Medium Parcel",
"2nd Class Small Parcel",
"2nd Class Medium Parcel"
]
},
{
"name": "TNT UK",
"country": "GB",
"services": [
"Express",
"Express 10",
"Express 12"
]
},
{
"name": "UPS UK",
"country": "GB",
"services": [
"Express",
"Express Saver",
"Standard"
]
},
{
"name": "Yodel",
"country": "GB",
"services": [
"B2C 48HR",
"B2C 72HR",
"B2C Packet"
]
}
]
}
shippingsettings.getsupportedholidays
shippingsettings.getsupportedholidays
कॉल की मदद से, एमसीए खाते या स्टैंडअलोन खाते को, इस्तेमाल की जा सकने वाली छुट्टियों की जानकारी वापस मिलती है.
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/supportedHolidays
यहां JSON फ़ॉर्मैट में दिए गए जवाब का सैंपल दिया गया है:
{
"kind": "content#shippingsettingsGetSupportedHolidaysResponse",
"holidays": [
{
"id": "FR_Christmas_2019-12-25",
"countryCode": "FR",
"type": "Christmas",
"date": "2019-12-25",
"deliveryGuaranteeDate": "2019-12-24",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Easter_2019-04-21",
"countryCode": "US",
"type": "Easter",
"date": "2019-04-21",
"deliveryGuaranteeDate": "2019-04-20",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Mother's Day_2019-05-12",
"countryCode": "US",
"type": "Mother's Day",
"date": "2019-05-12",
"deliveryGuaranteeDate": "2019-05-11",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Father's Day_2019-06-16",
"countryCode": "US",
"type": "Father's Day",
"date": "2019-06-16",
"deliveryGuaranteeDate": "2019-06-15",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Independence Day (USA)_2019-07-04",
"countryCode": "US",
"type": "Independence Day (USA)",
"date": "2019-07-04",
"deliveryGuaranteeDate": "2019-07-03",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Halloween_2019-10-31",
"countryCode": "US",
"type": "Halloween",
"date": "2019-10-31",
"deliveryGuaranteeDate": "2019-10-30",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Thanksgiving_2019-11-28",
"countryCode": "US",
"type": "Thanksgiving",
"date": "2019-11-28",
"deliveryGuaranteeDate": "2019-11-27",
"deliveryGuaranteeHour": "18"
},
{
"id": "US_Christmas_2019-12-25",
"countryCode": "US",
"type": "Christmas",
"date": "2019-12-25",
"deliveryGuaranteeDate": "2019-12-24",
"deliveryGuaranteeHour": "18"
}
]
}
पिन कोड के ग्रुप सेट करें
Merchant Center में क्षेत्र बनाना आसान है. हालांकि, ऐसे कई क्षेत्रों वाले खातों को मैनेज करने के लिए Content API का इस्तेमाल करें जिनमें बार-बार बदलाव होते हैं.
शिपिंग सेटिंग सेवा की मदद से, शिपिंग की सेटिंग और क्षेत्र सेट किए जा सकते हैं. साथ ही, उन्हें अपडेट और अपडेट किया जा सकता है. एपीआई में,
क्षेत्रों को postalCodeGroups
कहा जाता है.
"postalCodeGroups": [
{
"name": "string,
"country": string,
"postalCodeRanges": [
{
"postalCodeRangeBegin": string,
"postalCodeRangeEnd": string
}
]
}
]
यूज़र इंटरफ़ेस (यूआई) की तरह, postalCodeGroups
पिन कोड, पिन कोड की रेंज, पिन कोड प्रीफ़िक्स या प्रीफ़िक्स रेंज की सामान्य सूची है.
क्षेत्रों की जानकारी हासिल की जाती है और उन्हें शिपिंग की सेटिंग के साथ सेट किया जाता है. इसलिए, सिर्फ़ मौजूदा
शिपिंग सेटिंग
रिसॉर्स की मदद से postalCodeGroups
भरने पर ही शिपिंग सेवाएं मिटती हैं.
एपीआई की मदद से क्षेत्रों को सेट करने का सही तरीका यह है:
- सभी शिपिंग सेवाओं और
postalCodeGroups
(क्षेत्रों) की जानकारी पाने के लिए,get
पर कॉल करें. - शिपिंग सेवाओं को
get
कॉल सेupdate
कॉल में कॉपी करें. अगर आपने अपनी शिपिंग सेवा में ट्रांज़िट समय के लेबल इस्तेमाल नहीं किए हैं, तो अनुरोध के मुख्य हिस्से से यहां दी गई एंट्री हटाएं:
"transitTimeLabels": [ "all other labels" ],
update
कॉल के लिए,postalCodeGroups
सेक्शन में मौजूद इलाकों का डेटा जनरेट करें.शिपिंग सेवा और
postalCodeGroups
सेक्शन, दोनों को भरकरupdate
कॉल करें.
यहां update
कॉल के अनुरोध के मुख्य हिस्से का सैंपल दिया गया है. इसे ऊपर दिए गए get
उदाहरण में इस्तेमाल किया गया है. पहले देश/इलाके 1 में postalCodeGroups
कॉल को 94035
से बदलकर 94036
किया गया है:
{
"services": [
{
"name": "Standard Shipping",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1,
"transitTimeTable": {
"postalCodeGroupNames": [
"Region1",
"Region2",
"all other locations"
],
"rows": [
{
"values": [
{
"minTransitTimeInDays": 1,
"maxTransitTimeInDays": 2
}
]
},
{
"values": [
{
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 3
}
]
},
{
"values": [
{
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 5
}
]
}
]
}
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "0",
"currency": "USD"
}
},
"name": "Standard Shipping"
}
],
"eligibility": "All scenarios"
},
{
"name": "Expedited",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 2,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "9.99",
"currency": "USD"
}
},
"name": "Expedited"
}
],
"eligibility": "All scenarios"
}
],
"postalCodeGroups": [
{
"name": "Region1",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94036",
"postalCodeRangeEnd": "94070"
}
]
},
{
"name": "Region2",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94071",
"postalCodeRangeEnd": "94082"
}
]
}
]
}
यहां JSON फ़ॉर्मैट में दिए गए जवाब का सैंपल दिया गया है:
{
"accountId": "1111",
"services": [
{
"name": "Standard Shipping",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1,
"transitTimeTable": {
"postalCodeGroupNames": [
"Region1",
"Region2",
"all other locations"
],
"rows": [
{
"values": [
{
"minTransitTimeInDays": 1,
"maxTransitTimeInDays": 2
}
]
},
{
"values": [
{
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 3
}
]
},
{
"values": [
{
"minTransitTimeInDays": 3,
"maxTransitTimeInDays": 5
}
]
}
]
}
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "0",
"currency": "USD"
}
},
"name": "Standard Shipping"
}
],
"eligibility": "All scenarios"
},
{
"name": "Expedited",
"active": true,
"deliveryCountry": "US",
"currency": "USD",
"deliveryTime": {
"minTransitTimeInDays": 2,
"maxTransitTimeInDays": 2,
"minHandlingTimeInDays": 0,
"maxHandlingTimeInDays": 1
},
"rateGroups": [
{
"singleValue": {
"flatRate": {
"value": "9.99",
"currency": "USD"
}
},
"name": "Expedited"
}
],
"eligibility": "All scenarios"
}
],
"postalCodeGroups": [
{
"name": "Region1",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94036",
"postalCodeRangeEnd": "94070"
}
]
},
{
"name": "Region2",
"country": "US",
"postalCodeRanges": [
{
"postalCodeRangeBegin": "94071",
"postalCodeRangeEnd": "94082"
}
]
}
]
}
पिकअप/कलेक्शन पॉइंट इस्तेमाल करें
पिकअप/कलेक्शन-पॉइंट ऑर्डर के बारे में ज़्यादा जानकारी के लिए, पिकअप/कलेक्शन पॉइंट गाइड देखें. इसमें यह जानकारी शामिल है कि होम डिलीवरी वाले ऑर्डर और पिकअप की कौनसी जानकारी प्रोसेस करने की ज़रूरत है. साथ ही, इसमें यह जानकारी भी शामिल है.
आदेश वाले दिन वितरण
अगर आपके पास स्थानीय इन्वेंट्री है, तो ऑर्डर वाले दिन प्रॉडक्ट डिलीवर करने की सेवाओं को कॉन्फ़िगर करने के लिए, Content API for Shopping का इस्तेमाल किया जा सकता है.
ऑर्डर वाले दिन प्रॉडक्ट डिलीवर करने की सुविधा देने वाली शिपिंग सेवाओं के लिए, shipmentType
की वैल्यू local_delivery
है. इस समय, local_delivery
की सभी शिपिंग सेवाओं को ऑर्डर वाले दिन ही डिलीवरी माना जाता है. स्थानीय डिलीवरी के लिए, deliveryTime
की जानकारी में बदलाव नहीं किया जा सकता.
अपने स्थानीय इन्वेंट्री प्रॉडक्ट के लिए, ऑर्डर वाले दिन प्रॉडक्ट डिलीवर करने की सुविधा सेट अप करने के लिए, shippingsettings.update
का इस्तेमाल करें.
यहां अनुरोध के मुख्य हिस्से का एक उदाहरण दिया गया है, जो आपके खाते के लिए सभी स्टोर में, ऑर्डर वाले दिन प्रॉडक्ट डिलीवर करने की सेवा जोड़ता है:
लागू करने के लिए नीचे दिए गए सैंपल में इसका इस्तेमाल करने से पहले, उसमें मौजूद सभी वैल्यू को अपडेट करें.
{ "accountId":"accountId", "services":[ { "name": "Local Delivery", "active":true, "shipmentType":"local_delivery", "deliveryCountry":"US", "currency":"USD", "rateGroups":[ { "singleValue":{ "flatRate":{ "value":"0", "currency":"USD" } } } ], "eligibility":"All scenarios", "storeConfig":{ "storeServiceType":"all stores", "storeCodes":[ ], "cutoffConfig":{ "storeCloseOffsetHours":2, "no_delivery_post_cutoff":true }, "serviceRadius":{ "value":4, "unit":"Miles" } } } ] }
अगले दिन वितरण
आपके ऑर्डर वाले दिन ही डिलीवरी के कटऑफ़ समय के बाद दिए गए ऑर्डर, डिफ़ॉल्ट रूप से अगले दिन डिलीवरी के लिए शेड्यूल किए जाते हैं. अगले दिन डिलीवरी की सुविधा बंद करने के लिए, no_delivery_post_cutoff
को true
पर सेट करें. अगर अगले दिन डिलीवरी की सुविधा बंद की जाती है, तो आपकी
शिपिंग सेवाएं हर दिन के कटऑफ़ समय से पहले ही दिखेंगी.
अगले दिन डिलीवरी की सुविधा सिर्फ़ तब मिलेगी, जब shipmentType
local_delivery
होगा.
टेस्ट करना
सभी आइटम प्रोडक्शन में होते हैं. इसलिए, लाइव होने वाले आइटम के लिए ज़रूरी, किसी भी आइटम में बदलाव न करें. खास तौर पर, update()
तरीके में बदलाव करने का यही तरीका है, जो मौजूदा वैल्यू में बदलाव करता है.