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"
}