Local feeds partnership API

स्थानीय प्रॉडक्ट इन्वेंट्री फ़ीड अपलोड करके, स्थानीय प्रॉडक्ट इन्वेंट्री जोड़ी जा सकती है. स्थानीय प्रॉडक्ट इन्वेंट्री फ़ीड में उन सामान की सूची मौजूद होती है जिन्हें स्टोर में बेचा जा सकता है. साथ ही, इसमें एट्रिब्यूट की मदद से उनके बारे में जानकारी दी जाती है.

इन्वेंट्री का डेटा मुहैया कराने वाली कंपनी को Merchant Center में जोड़ने के लिए, इस फ़ॉर्म में उनकी जानकारी दें.

इन्वेंट्री डालें

इन्वेंट्री डालने के लिए, नीचे दिए गए अनुरोध का इस्तेमाल करें:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert

{
 "availability": "in stock",
 "collectionTime": "2024-01-08T08:00:00Z",
 "contentLanguage": "en",
 "gtin": "gtin",
 "offerId": "{offerId}",
 "pickupMethod": "buy",
 "pickupSla": "same day",
 "price": {
   "amountMicros": "1000000",
   "currencyCode": "USD"
 },
 "regionCode": "US",
 "storeCode": "{storeCode}",
 "targetAccount": "{targetMerchantId}"
}

आपको यह जवाब दिख सकता है:

{
 "name": "accounts/{merchantId}/lfpInventories/{targetMerchantId}~{storeCode}~{offerId}",
 "targetAccount": "{targetMerchantId}",
 "storeCode": "123",
 "offerId": "{offerId}",
 "regionCode": "US",
 "contentLanguage": "en",
 "gtin": "gtin",
 "price": {
   "amountMicros": "1000000",
   "currencyCode": "USD"
 },
 "availability": "in stock",
 "collectionTime": "2024-01-08T08:00:00Z",
 "pickupMethod": "buy",
 "pickupSla": "same day",
 "feedLabel": "US"
}

सेल डालना

सेल जोड़ने के लिए, नीचे दिए गए अनुरोध का इस्तेमाल करें:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpSales:insert

{
 "contentLanguage": "en",
 "gtin": "gtin",
 "offerId": "offerId",
 "price": {
   "amountMicros": "1000000",
   "currencyCode": "USD"
 },
 "quantity": 2,
 "regionCode": "US",
 "saleTime": "2024-01-08T08:00:00Z",
 "storeCode": "123",
 "targetAccount": "{targetMerchantId}"
}

आपको यह जवाब दिख सकता है:

{
 "name": "accounts/1000005718521947/lfpSales/{uuid}",
 "targetAccount": "{targetMerchantId}",
 "storeCode": "123",
 "offerId": "offerId",
 "regionCode": "US",
 "contentLanguage": "en",
 "gtin": "gtin",
 "price": {
   "amountMicros": "1000000",
   "currencyCode": "USD"
 },
 "quantity": "2",
 "saleTime": "2024-01-08T08:00:00Z",
 "uid": "{uuid}",
 "feedLabel": "US"
}

स्टोर की जानकारी डालें

स्टोर डालने के लिए, नीचे दिया गया अनुरोध करें:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpStores:insert

{
 "storeAddress": "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA",
 "storeCode": "{storeCode}",
 "targetAccount": "{targetMerchantId}"
}

आपको यह जवाब दिख सकता है:

{
 "name": "accounts/{merchantId}/lfpStores/{targetMerchantId}~{storeCode}",
 "targetAccount": "1000005718454644",
 "storeCode": "{storeCode}",
 "storeAddress": "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA",
 "matchingState": "STORE_MATCHING_STATE_MATCHED"
}