판매자 API를 사용하여 인벤토리, 매장, 판매 데이터를 Google과 공유하여 가시성과 관리를 개선할 수 있습니다.
요청
오프라인 제품 피드 파트너 API에 다음 요청 URL 형식을 사용합니다.
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert
다음은 인벤토리 삽입 요청에 대한 Content API for Shopping과 오프라인 피드 파트너십 API를 비교한 예시입니다.
Content API | 판매자 API | |
URL |
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} |
다음은 판매 삽입 요청에 대한 Content API for Shopping과 오프라인 피드 파트너십 API를 비교한 예시입니다.
Content API | 판매자 API | |
URL | 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} |
다음은 매장 삽입 요청에 대한 Content API for Shopping과 오프라인 피드 파트너십 API를 비교한 예시입니다.
Content API | 판매자 API | |
URL | 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} |
메서드
오프라인 제품 피드 파트너 API에서 매장 API 메서드에 적용된 변경사항은 다음과 같습니다.
메서드 | Content API for Shopping의 URL | 판매자 API의 URL | Content API for Shopping의 식별자 | 판매자 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}입니다. |
오프라인 제품 피드 파트너 API에서 인벤토리 API 메서드에 적용된 변경사항은 다음과 같습니다.
메서드 | Content API for Shopping의 URL | 판매자 API의 URL | Content API for Shopping의 식별자 | 판매자 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}입니다. |
오프라인 제품 피드 파트너 API에서 판매 API 메서드에 적용된 변경사항은 다음과 같습니다.
메서드 | Content API for Shopping의 URL | 판매자 API의 URL | Content API for Shopping의 식별자 | 판매자 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}입니다. |
자료
오프라인 제품 피드 파트너십 API에서 매장 리소스의 변경사항은 다음과 같습니다. 여기에 포함되지 않은 필드는 변경되지 않았습니다.
Content API for Shopping | 판매자 API | 설명 |
지원되지 않음 | name: string |
여러 매장을 구분하기 위한 새 필드 추가됨 |
지원되지 않음 | targetAccount: integer |
인벤토리를 삽입할 판매자 계정 |
targetCountry: string |
regionCode: string |
targetCountry 에서 regionCode 로 이름이 변경되었습니다. |
websiteUrl: string |
websiteUri: string |
websiteUrl 에서 websiteUri 로 이름이 변경되었습니다. |
kind: string |
지원되지 않음 | kind 은(는) 오프라인 제품 피드 파트너 API에서 지원되지 않습니다. |
인벤토리 삽입과 관련하여 변경된 사항은 다음과 같습니다. 여기에 포함되지 않은 필드는 변경되지 않습니다.
Content API for Shopping | 판매자 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 |
지원되지 않음 | kind 는 오프라인 제품 피드 파트너 API에서 지원되지 않습니다. |
할인 삽입과 관련된 변경사항은 다음과 같습니다. 여기에 포함되지 않은 필드는 변경되지 않습니다.
Content API for Shopping | 판매자 API | 설명 |
지원되지 않음 | name: string |
다양한 인벤토리를 구분하기 위해 새 필드를 추가했습니다. |
지원되지 않음 | targetAccount:integer |
판매를 삽입할 판매자 계정 |
targetCountry: string |
regionCode: string |
제품이 판매되는 국가의 CLDR 지역 코드입니다. |
itemId: string |
offerId: string |
itemId 에서 offerId 로 이름이 변경되었습니다. |
|
|
가격 정의가 변경되었습니다. 자세한 내용은 가격을 참고하세요. |
timestamp: string |
saleTime: string |
timestamp 에서 saleTime 로 이름이 변경되었습니다. |
kind: string |
지원되지 않음 | kind 는 오프라인 제품 피드 파트너 API에서 지원되지 않습니다. |