오프라인 제품 인벤토리 피드를 업로드하여 오프라인 제품 인벤토리를 추가할 수 있습니다. 오프라인 제품 인벤토리 피드는 매장에서 판매할 수 있는 상품 목록을 설명하는 속성과 함께 제공합니다.
인벤토리 데이터 제공업체를 판매자 센터에 추가하려면 이 양식에 세부정보를 입력합니다.
인벤토리 삽입
인벤토리를 삽입하려면 다음 요청을 사용하세요.
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"
}