अपनी इन्वेंट्री, स्टोर, और बिक्री का डेटा Google के साथ शेयर करने के लिए, Merchant API का इस्तेमाल किया जा सकता है. इससे आपके कारोबार को बेहतर तरीके से देखने और मैनेज करने में मदद मिलती है.
अनुरोध
Local feeds partnership API के लिए, अनुरोध वाले इस यूआरएल फ़ॉर्मैट का इस्तेमाल करें:
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert
इन्वेंट्री डालने के अनुरोध के लिए, यहां Shopping के लिए Content API और local feeds partnership API की तुलना का सैंपल दिया गया है:
Content API | मर्चेंट एपीआई | |
यूआरएल |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/inventory
|
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpInventories:insert
|
आइडेंटिफ़ायर |
{merchantId}/pos/ {targetMerchantId}
|
{parent} |
बिक्री का अनुरोध करने के लिए, यहां Shopping के लिए Content API और local feeds partnership API की तुलना का सैंपल दिया गया है:
Content API | मर्चेंट एपीआई | |
यूआरएल | POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/sale |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpSales:insert |
आइडेंटिफ़ायर | {merchantId}/pos/ {targetMerchantId} |
{parent} |
स्टोर जोड़ने के अनुरोध के लिए, Local feeds partnership API और Shopping के लिए Content API की तुलना यहां दी गई है:
Content API | मर्चेंट एपीआई | |
यूआरएल | POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpStores:insert |
आइडेंटिफ़ायर | {merchantId}/pos/ {targetMerchantId} |
{parent} |
तरीके
यहां बताया गया है कि local feeds partnership API में, store API के तरीकों में क्या बदलाव हुए:
तरीका | Content API for Shopping में मौजूद यूआरएल | मर्चेंट एपीआई में यूआरएल | Content API for Shopping में आइडेंटिफ़ायर | Merchant API में आइडेंटिफ़ायर | कंपनी का ब्यौरा |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent=accounts/*}/lfpStores:insert |
{merchantId}/pos /{targetMerchantId} |
{parent} | parent , accounts/{lfpPartnerAccountId} वाले फ़ॉर्मैट में है |
delete |
DELETE https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
DELETE https://merchantapi.googleapis.com/lfp/v1beta/ {name=accounts/*/lfpStores/*} |
{merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
{name} | name , accounts/ {lfpPartnerAccountId}/lfpStores/ {targetMerchantId}~{storeCode} के फ़ॉर्मैट में है |
get |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
GET https://merchantapi.googleapis.com/lfp/v1beta/ {name=accounts/*/lfpStores/*} |
{merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
{name} | name , accounts/ {lfpPartnerAccountId}/lfpStores/ {targetMerchantId}~{storeCode} के फ़ॉर्मैट में है |
list |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
GET https://merchantapi.googleapis.com/lfp/v1beta/ {parent=accounts/*}/lfpStores |
/{merchantId}/pos/ {targetMerchantId} |
{parent} | {parent} , accounts/ {lfpPartnerAccountId} के फ़ॉर्मैट में है |
यहां बताया गया है कि local feeds partnership API में इन्वेंट्री एपीआई के तरीकों में क्या बदलाव हुए हैं:
तरीका | Content API for Shopping में मौजूद यूआरएल | मर्चेंट एपीआई में यूआरएल | Content API for Shopping में आइडेंटिफ़ायर | Merchant API में आइडेंटिफ़ायर | कंपनी का ब्यौरा |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpInventories:insert |
{merchantId}/pos/ {targetMerchantId} |
{parent} | parent , accounts/ {lfpPartnerAccountId} के फ़ॉर्मैट में है |
यहां बताया गया है कि local feeds partnership APIs में, sales API के तरीकों में क्या बदलाव हुआ है:
तरीका | Content API for Shopping में मौजूद यूआरएल | मर्चेंट एपीआई में यूआरएल | Content API for Shopping में आइडेंटिफ़ायर | Merchant API में आइडेंटिफ़ायर | कंपनी का ब्यौरा |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpSales:insert |
{merchantId}/pos/ {targetMerchantId} |
{parent} | {parent} , accounts/ {lfpPartnerAccountId} के फ़ॉर्मैट में है |
रिसॉर्स
यहां बताया गया है कि local feeds partnership API में स्टोर रिसॉर्स में क्या बदलाव हुआ है. यहां शामिल नहीं किए गए फ़ील्ड में कोई बदलाव नहीं किया गया है.
Shopping के लिए Content API | मर्चेंट एपीआई | कंपनी का ब्यौरा |
इनकी अनुमति नहीं है | name: string |
अलग-अलग स्टोर को अलग-अलग दिखाने के लिए, नया फ़ील्ड जोड़ा गया |
इनकी अनुमति नहीं है | targetAccount: integer |
इन्वेंट्री डालने के लिए व्यापारी खाता |
targetCountry: string |
regionCode: string |
targetCountry का नाम बदलकर regionCode कर दिया गया है |
websiteUrl: string |
websiteUri: string |
websiteUrl का नाम बदलकर websiteUri कर दिया गया है |
kind: string |
इनकी अनुमति नहीं है | स्थानीय फ़ीड पार्टनरशिप एपीआई में kind का इस्तेमाल नहीं किया जा सकता |
इन्वेंट्री डालने में हुए बदलाव के बारे में यहां बताया गया है. यहां शामिल नहीं किए गए फ़ील्ड में कोई बदलाव नहीं होता.
Shopping के लिए Content API | मर्चेंट एपीआई | कंपनी का ब्यौरा |
इनकी अनुमति नहीं है | name: string |
अलग-अलग इन्वेंट्री को अलग करने के लिए, नया फ़ील्ड जोड़ा गया |
इनकी अनुमति नहीं है | targetAccount: integer |
वह व्यापारी खाता जिसके लिए इन्वेंट्री शामिल करनी है. |
targetCountry: string |
regionCode: string |
targetCountry का नाम बदलकर regionCode कर दिया गया है. उस देश का CLDR कोड जहां प्रॉडक्ट बेचा जाता है. |
itemId: string |
offerId: string |
itemId का नाम बदलकर offerId कर दिया गया है |
quantity: string |
quantity: string |
quantity को अपडेट करके ज़रूरी नहीं बनाया गया |
इनकी अनुमति नहीं है | availability: string |
availability डालना ज़रूरी है |
|
|
कीमत की परिभाषा बदल गई है. ज़्यादा जानकारी के लिए, कीमत देखें. |
timestamp: string |
collectionTime: string |
timestamp का नाम बदलकर collectionTime कर दिया गया है |
kind: string |
इनकी अनुमति नहीं है | Local feeds partnership API के साथ kind का इस्तेमाल नहीं किया जा सकता. |
यहां बताया गया है कि सेल लागू करने के दौरान क्या बदलाव हुए हैं. यहां शामिल नहीं किए गए फ़ील्ड में कोई बदलाव नहीं होता.
Shopping के लिए Content API | मर्चेंट एपीआई | कंपनी का ब्यौरा |
इनकी अनुमति नहीं है | name: string |
अलग-अलग इन्वेंट्री को अलग करने के लिए, नया फ़ील्ड जोड़ा गया |
इनकी अनुमति नहीं है | targetAccount:integer |
वह व्यापारी खाता जिसके लिए बिक्री की जानकारी देनी है |
targetCountry: string |
regionCode: string |
उस देश का CLDR कोड जहां प्रॉडक्ट बेचा जाता है. |
itemId: string |
offerId: string |
itemId का नाम बदलकर offerId कर दिया गया है |
|
|
कीमत की परिभाषा बदल गई है. ज़्यादा जानकारी के लिए, कीमत देखें. |
timestamp: string |
saleTime: string |
timestamp का नाम बदलकर saleTime कर दिया गया है |
kind: string |
इनकी अनुमति नहीं है | Local feeds partnership API के साथ kind का इस्तेमाल नहीं किया जा सकता. |